@wentianen/opencode-viewer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/index.js +7460 -0
- package/dist/web/assets/index-BsxobLm1.js +40 -0
- package/dist/web/assets/index-Cayn5Wq7.css +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +43 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=s(c);fetch(c.href,d)}})();function Fh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ql={exports:{}},si={},Jl={exports:{}},ie={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var hd;function kg(){if(hd)return ie;hd=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function x(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,A={};function R(k,V,re){this.props=k,this.context=V,this.refs=A,this.updater=re||C}R.prototype.isReactComponent={},R.prototype.setState=function(k,V){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,V,"setState")},R.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function O(){}O.prototype=R.prototype;function z(k,V,re){this.props=k,this.context=V,this.refs=A,this.updater=re||C}var F=z.prototype=new O;F.constructor=z,D(F,R.prototype),F.isPureReactComponent=!0;var U=Array.isArray,Z=Object.prototype.hasOwnProperty,oe={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function te(k,V,re){var se,ae={},ue=null,ge=null;if(V!=null)for(se in V.ref!==void 0&&(ge=V.ref),V.key!==void 0&&(ue=""+V.key),V)Z.call(V,se)&&!fe.hasOwnProperty(se)&&(ae[se]=V[se]);var de=arguments.length-2;if(de===1)ae.children=re;else if(1<de){for(var Pe=Array(de),at=0;at<de;at++)Pe[at]=arguments[at+2];ae.children=Pe}if(k&&k.defaultProps)for(se in de=k.defaultProps,de)ae[se]===void 0&&(ae[se]=de[se]);return{$$typeof:n,type:k,key:ue,ref:ge,props:ae,_owner:oe.current}}function ye(k,V){return{$$typeof:n,type:k.type,key:V,ref:k.ref,props:k.props,_owner:k._owner}}function q(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function pe(k){var V={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(re){return V[re]})}var we=/\/+/g;function Le(k,V){return typeof k=="object"&&k!==null&&k.key!=null?pe(""+k.key):V.toString(36)}function Re(k,V,re,se,ae){var ue=typeof k;(ue==="undefined"||ue==="boolean")&&(k=null);var ge=!1;if(k===null)ge=!0;else switch(ue){case"string":case"number":ge=!0;break;case"object":switch(k.$$typeof){case n:case r:ge=!0}}if(ge)return ge=k,ae=ae(ge),k=se===""?"."+Le(ge,0):se,U(ae)?(re="",k!=null&&(re=k.replace(we,"$&/")+"/"),Re(ae,V,re,"",function(at){return at})):ae!=null&&(q(ae)&&(ae=ye(ae,re+(!ae.key||ge&&ge.key===ae.key?"":(""+ae.key).replace(we,"$&/")+"/")+k)),V.push(ae)),1;if(ge=0,se=se===""?".":se+":",U(k))for(var de=0;de<k.length;de++){ue=k[de];var Pe=se+Le(ue,de);ge+=Re(ue,V,re,Pe,ae)}else if(Pe=x(k),typeof Pe=="function")for(k=Pe.call(k),de=0;!(ue=k.next()).done;)ue=ue.value,Pe=se+Le(ue,de++),ge+=Re(ue,V,re,Pe,ae);else if(ue==="object")throw V=String(k),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return ge}function je(k,V,re){if(k==null)return k;var se=[],ae=0;return Re(k,se,"","",function(ue){return V.call(re,ue,ae++)}),se}function Se(k){if(k._status===-1){var V=k._result;V=V(),V.then(function(re){(k._status===0||k._status===-1)&&(k._status=1,k._result=re)},function(re){(k._status===0||k._status===-1)&&(k._status=2,k._result=re)}),k._status===-1&&(k._status=0,k._result=V)}if(k._status===1)return k._result.default;throw k._result}var Ce={current:null},j={transition:null},Q={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:j,ReactCurrentOwner:oe};function B(){throw Error("act(...) is not supported in production builds of React.")}return ie.Children={map:je,forEach:function(k,V,re){je(k,function(){V.apply(this,arguments)},re)},count:function(k){var V=0;return je(k,function(){V++}),V},toArray:function(k){return je(k,function(V){return V})||[]},only:function(k){if(!q(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ie.Component=R,ie.Fragment=s,ie.Profiler=c,ie.PureComponent=z,ie.StrictMode=l,ie.Suspense=m,ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,ie.act=B,ie.cloneElement=function(k,V,re){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var se=D({},k.props),ae=k.key,ue=k.ref,ge=k._owner;if(V!=null){if(V.ref!==void 0&&(ue=V.ref,ge=oe.current),V.key!==void 0&&(ae=""+V.key),k.type&&k.type.defaultProps)var de=k.type.defaultProps;for(Pe in V)Z.call(V,Pe)&&!fe.hasOwnProperty(Pe)&&(se[Pe]=V[Pe]===void 0&&de!==void 0?de[Pe]:V[Pe])}var Pe=arguments.length-2;if(Pe===1)se.children=re;else if(1<Pe){de=Array(Pe);for(var at=0;at<Pe;at++)de[at]=arguments[at+2];se.children=de}return{$$typeof:n,type:k.type,key:ae,ref:ue,props:se,_owner:ge}},ie.createContext=function(k){return k={$$typeof:f,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:d,_context:k},k.Consumer=k},ie.createElement=te,ie.createFactory=function(k){var V=te.bind(null,k);return V.type=k,V},ie.createRef=function(){return{current:null}},ie.forwardRef=function(k){return{$$typeof:p,render:k}},ie.isValidElement=q,ie.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:Se}},ie.memo=function(k,V){return{$$typeof:g,type:k,compare:V===void 0?null:V}},ie.startTransition=function(k){var V=j.transition;j.transition={};try{k()}finally{j.transition=V}},ie.unstable_act=B,ie.useCallback=function(k,V){return Ce.current.useCallback(k,V)},ie.useContext=function(k){return Ce.current.useContext(k)},ie.useDebugValue=function(){},ie.useDeferredValue=function(k){return Ce.current.useDeferredValue(k)},ie.useEffect=function(k,V){return Ce.current.useEffect(k,V)},ie.useId=function(){return Ce.current.useId()},ie.useImperativeHandle=function(k,V,re){return Ce.current.useImperativeHandle(k,V,re)},ie.useInsertionEffect=function(k,V){return Ce.current.useInsertionEffect(k,V)},ie.useLayoutEffect=function(k,V){return Ce.current.useLayoutEffect(k,V)},ie.useMemo=function(k,V){return Ce.current.useMemo(k,V)},ie.useReducer=function(k,V,re){return Ce.current.useReducer(k,V,re)},ie.useRef=function(k){return Ce.current.useRef(k)},ie.useState=function(k){return Ce.current.useState(k)},ie.useSyncExternalStore=function(k,V,re){return Ce.current.useSyncExternalStore(k,V,re)},ie.useTransition=function(){return Ce.current.useTransition()},ie.version="18.3.1",ie}var pd;function Ha(){return pd||(pd=1,Jl.exports=kg()),Jl.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var md;function Pg(){if(md)return si;md=1;var n=Ha(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function f(p,m,g){var y,w={},x=null,C=null;g!==void 0&&(x=""+g),m.key!==void 0&&(x=""+m.key),m.ref!==void 0&&(C=m.ref);for(y in m)l.call(m,y)&&!d.hasOwnProperty(y)&&(w[y]=m[y]);if(p&&p.defaultProps)for(y in m=p.defaultProps,m)w[y]===void 0&&(w[y]=m[y]);return{$$typeof:r,type:p,key:x,ref:C,props:w,_owner:c.current}}return si.Fragment=s,si.jsx=f,si.jsxs=f,si}var yd;function Eg(){return yd||(yd=1,ql.exports=Pg()),ql.exports}var $=Eg(),J=Ha();const Cg=Fh(J);var Vs={},bl={exports:{}},lt={},ea={exports:{}},ta={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var gd;function Mg(){return gd||(gd=1,(function(n){function r(j,Q){var B=j.length;j.push(Q);e:for(;0<B;){var k=B-1>>>1,V=j[k];if(0<c(V,Q))j[k]=Q,j[B]=V,B=k;else break e}}function s(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var Q=j[0],B=j.pop();if(B!==Q){j[0]=B;e:for(var k=0,V=j.length,re=V>>>1;k<re;){var se=2*(k+1)-1,ae=j[se],ue=se+1,ge=j[ue];if(0>c(ae,B))ue<V&&0>c(ge,ae)?(j[k]=ge,j[ue]=B,k=ue):(j[k]=ae,j[se]=B,k=se);else if(ue<V&&0>c(ge,B))j[k]=ge,j[ue]=B,k=ue;else break e}}return Q}function c(j,Q){var B=j.sortIndex-Q.sortIndex;return B!==0?B:j.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var m=[],g=[],y=1,w=null,x=3,C=!1,D=!1,A=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(j){for(var Q=s(g);Q!==null;){if(Q.callback===null)l(g);else if(Q.startTime<=j)l(g),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=s(g)}}function U(j){if(A=!1,F(j),!D)if(s(m)!==null)D=!0,Se(Z);else{var Q=s(g);Q!==null&&Ce(U,Q.startTime-j)}}function Z(j,Q){D=!1,A&&(A=!1,O(te),te=-1),C=!0;var B=x;try{for(F(Q),w=s(m);w!==null&&(!(w.expirationTime>Q)||j&&!pe());){var k=w.callback;if(typeof k=="function"){w.callback=null,x=w.priorityLevel;var V=k(w.expirationTime<=Q);Q=n.unstable_now(),typeof V=="function"?w.callback=V:w===s(m)&&l(m),F(Q)}else l(m);w=s(m)}if(w!==null)var re=!0;else{var se=s(g);se!==null&&Ce(U,se.startTime-Q),re=!1}return re}finally{w=null,x=B,C=!1}}var oe=!1,fe=null,te=-1,ye=5,q=-1;function pe(){return!(n.unstable_now()-q<ye)}function we(){if(fe!==null){var j=n.unstable_now();q=j;var Q=!0;try{Q=fe(!0,j)}finally{Q?Le():(oe=!1,fe=null)}}else oe=!1}var Le;if(typeof z=="function")Le=function(){z(we)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,je=Re.port2;Re.port1.onmessage=we,Le=function(){je.postMessage(null)}}else Le=function(){R(we,0)};function Se(j){fe=j,oe||(oe=!0,Le())}function Ce(j,Q){te=R(function(){j(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_continueExecution=function(){D||C||(D=!0,Se(Z))},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_getFirstCallbackNode=function(){return s(m)},n.unstable_next=function(j){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var B=x;x=Q;try{return j()}finally{x=B}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var B=x;x=j;try{return Q()}finally{x=B}},n.unstable_scheduleCallback=function(j,Q,B){var k=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?k+B:k):B=k,j){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=B+V,j={id:y++,callback:Q,priorityLevel:j,startTime:B,expirationTime:V,sortIndex:-1},B>k?(j.sortIndex=B,r(g,j),s(m)===null&&j===s(g)&&(A?(O(te),te=-1):A=!0,Ce(U,B-k))):(j.sortIndex=V,r(m,j),D||C||(D=!0,Se(Z))),j},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(j){var Q=x;return function(){var B=x;x=Q;try{return j.apply(this,arguments)}finally{x=B}}}})(ta)),ta}var vd;function Dg(){return vd||(vd=1,ea.exports=Mg()),ea.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var wd;function Rg(){if(wd)return lt;wd=1;var n=Ha(),r=Dg();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);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."}var l=new Set,c={};function d(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,y={},w={};function x(e){return m.call(w,e)?!0:m.call(y,e)?!1:g.test(e)?w[e]=!0:(y[e]=!0,!1)}function C(e,t,i,o){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,t,i,o){if(t===null||typeof t>"u"||C(e,t,i,o))return!0;if(o)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function A(e,t,i,o,a,u,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=h}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new A(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new A(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new A(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){R[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new A(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new A(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new A(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function z(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(O,z);R[t]=new A(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(O,z);R[t]=new A(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(O,z);R[t]=new A(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new A(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new A(e,1,!1,e.toLowerCase(),null,!0,!0)});function F(e,t,i,o){var a=R.hasOwnProperty(t)?R[t]:null;(a!==null?a.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(D(t,i,a,o)&&(i=null),o||a===null?x(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):a.mustUseProperty?e[a.propertyName]=i===null?a.type===3?!1:"":i:(t=a.attributeName,o=a.attributeNamespace,i===null?e.removeAttribute(t):(a=a.type,i=a===3||a===4&&i===!0?"":""+i,o?e.setAttributeNS(o,t,i):e.setAttribute(t,i))))}var U=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),oe=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),pe=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),Le=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),j=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=j&&e[j]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,k;function V(e){if(k===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
34
|
+
`+k+e}var re=!1;function se(e,t){if(!e||re)return"";re=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(M){var o=M}Reflect.construct(e,[],t)}else{try{t.call()}catch(M){o=M}e.call(t.prototype)}else{try{throw Error()}catch(M){o=M}e()}}catch(M){if(M&&o&&typeof M.stack=="string"){for(var a=M.stack.split(`
|
|
35
|
+
`),u=o.stack.split(`
|
|
36
|
+
`),h=a.length-1,v=u.length-1;1<=h&&0<=v&&a[h]!==u[v];)v--;for(;1<=h&&0<=v;h--,v--)if(a[h]!==u[v]){if(h!==1||v!==1)do if(h--,v--,0>v||a[h]!==u[v]){var S=`
|
|
37
|
+
`+a[h].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=h&&0<=v);break}}}finally{re=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?V(e):""}function ae(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=se(e.type,!1),e;case 11:return e=se(e.type.render,!1),e;case 1:return e=se(e.type,!0),e;default:return""}}function ue(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fe:return"Fragment";case oe:return"Portal";case ye:return"Profiler";case te:return"StrictMode";case Le:return"Suspense";case Re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pe:return(e.displayName||"Context")+".Consumer";case q:return(e._context.displayName||"Context")+".Provider";case we:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case je:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case Se:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function ge(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ue(t);case 8:return t===te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function de(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function at(e){var t=Pe(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(h){o=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=at(e))}function vu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Pe(e)?e.checked?"true":"false":e.value),e=o,e!==i?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ro(e,t){var i=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function wu(e,t){var i=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;i=de(t.value!=null?t.value:i),e._wrapperState={initialChecked:o,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Su(e,t){t=t.checked,t!=null&&F(e,"checked",t,!1)}function io(e,t){Su(e,t);var i=de(t.value),o=t.type;if(i!=null)o==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?so(e,t.type,i):t.hasOwnProperty("defaultValue")&&so(e,t.type,de(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xu(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function so(e,t,i){(t!=="number"||Ti(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Sr=Array.isArray;function Bn(e,t,i,o){if(e=e.options,t){t={};for(var a=0;a<i.length;a++)t["$"+i[a]]=!0;for(i=0;i<e.length;i++)a=t.hasOwnProperty("$"+e[i].value),e[i].selected!==a&&(e[i].selected=a),a&&o&&(e[i].defaultSelected=!0)}else{for(i=""+de(i),t=null,a=0;a<e.length;a++){if(e[a].value===i){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function oo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Tu(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(s(92));if(Sr(i)){if(1<i.length)throw Error(s(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:de(i)}}function ku(e,t){var i=de(t.value),o=de(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),o!=null&&(e.defaultValue=""+o)}function Pu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Eu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Eu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ki,Cu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,o,a){MSApp.execUnsafeLocalFunction(function(){return e(t,i,o,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ki=ki||document.createElement("div"),ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mm=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){Mm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Mu(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function Du(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var o=i.indexOf("--")===0,a=Mu(i,t[i],o);i==="float"&&(i="cssFloat"),o?e.setProperty(i,a):e[i]=a}}var Dm=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ao(e,t){if(t){if(Dm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function uo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 co=null;function fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ho=null,Un=null,Wn=null;function Ru(e){if(e=$r(e)){if(typeof ho!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Gi(t),ho(e.stateNode,e.type,t))}}function Au(e){Un?Wn?Wn.push(e):Wn=[e]:Un=e}function Vu(){if(Un){var e=Un,t=Wn;if(Wn=Un=null,Ru(e),t)for(e=0;e<t.length;e++)Ru(t[e])}}function Lu(e,t){return e(t)}function Nu(){}var po=!1;function _u(e,t,i){if(po)return e(t,i);po=!0;try{return Lu(e,t,i)}finally{po=!1,(Un!==null||Wn!==null)&&(Nu(),Vu())}}function kr(e,t){var i=e.stateNode;if(i===null)return null;var o=Gi(i);if(o===null)return null;i=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var mo=!1;if(p)try{var Pr={};Object.defineProperty(Pr,"passive",{get:function(){mo=!0}}),window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{mo=!1}function Rm(e,t,i,o,a,u,h,v,S){var M=Array.prototype.slice.call(arguments,3);try{t.apply(i,M)}catch(N){this.onError(N)}}var Er=!1,Pi=null,Ei=!1,yo=null,Am={onError:function(e){Er=!0,Pi=e}};function Vm(e,t,i,o,a,u,h,v,S){Er=!1,Pi=null,Rm.apply(Am,arguments)}function Lm(e,t,i,o,a,u,h,v,S){if(Vm.apply(this,arguments),Er){if(Er){var M=Pi;Er=!1,Pi=null}else throw Error(s(198));Ei||(Ei=!0,yo=M)}}function xn(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function ju(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 Iu(e){if(xn(e)!==e)throw Error(s(188))}function Nm(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,o=t;;){var a=i.return;if(a===null)break;var u=a.alternate;if(u===null){if(o=a.return,o!==null){i=o;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===i)return Iu(a),e;if(u===o)return Iu(a),t;u=u.sibling}throw Error(s(188))}if(i.return!==o.return)i=a,o=u;else{for(var h=!1,v=a.child;v;){if(v===i){h=!0,i=a,o=u;break}if(v===o){h=!0,o=a,i=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===i){h=!0,i=u,o=a;break}if(v===o){h=!0,o=u,i=a;break}v=v.sibling}if(!h)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function Ou(e){return e=Nm(e),e!==null?Fu(e):null}function Fu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fu(e);if(t!==null)return t;e=e.sibling}return null}var zu=r.unstable_scheduleCallback,Bu=r.unstable_cancelCallback,_m=r.unstable_shouldYield,jm=r.unstable_requestPaint,Ne=r.unstable_now,Im=r.unstable_getCurrentPriorityLevel,go=r.unstable_ImmediatePriority,Uu=r.unstable_UserBlockingPriority,Ci=r.unstable_NormalPriority,Om=r.unstable_LowPriority,Wu=r.unstable_IdlePriority,Mi=null,Lt=null;function Fm(e){if(Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Mi,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:Um,zm=Math.log,Bm=Math.LN2;function Um(e){return e>>>=0,e===0?32:31-(zm(e)/Bm|0)|0}var Di=64,Ri=4194304;function Cr(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ai(e,t){var i=e.pendingLanes;if(i===0)return 0;var o=0,a=e.suspendedLanes,u=e.pingedLanes,h=i&268435455;if(h!==0){var v=h&~a;v!==0?o=Cr(v):(u&=h,u!==0&&(o=Cr(u)))}else h=i&~a,h!==0?o=Cr(h):u!==0&&(o=Cr(u));if(o===0)return 0;if(t!==0&&t!==o&&(t&a)===0&&(a=o&-o,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((o&4)!==0&&(o|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)i=31-Tt(t),a=1<<i,o|=e[i],t&=~a;return o}function Wm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hm(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var h=31-Tt(u),v=1<<h,S=a[h];S===-1?((v&i)===0||(v&o)!==0)&&(a[h]=Wm(v,t)):S<=t&&(e.expiredLanes|=v),u&=~v}}function vo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hu(){var e=Di;return Di<<=1,(Di&4194240)===0&&(Di=64),e}function wo(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Mr(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=i}function $m(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<i;){var a=31-Tt(i),u=1<<a;t[a]=0,o[a]=-1,e[a]=-1,i&=~u}}function So(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var o=31-Tt(i),a=1<<o;a&t|e[o]&t&&(e[o]|=t),i&=~a}}var he=0;function $u(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ku,xo,Gu,Qu,Yu,To=!1,Vi=[],Xt=null,Zt=null,qt=null,Dr=new Map,Rr=new Map,Jt=[],Km="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 submit".split(" ");function Xu(e,t){switch(e){case"focusin":case"focusout":Xt=null;break;case"dragenter":case"dragleave":Zt=null;break;case"mouseover":case"mouseout":qt=null;break;case"pointerover":case"pointerout":Dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function Ar(e,t,i,o,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:i,eventSystemFlags:o,nativeEvent:u,targetContainers:[a]},t!==null&&(t=$r(t),t!==null&&xo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Gm(e,t,i,o,a){switch(t){case"focusin":return Xt=Ar(Xt,e,t,i,o,a),!0;case"dragenter":return Zt=Ar(Zt,e,t,i,o,a),!0;case"mouseover":return qt=Ar(qt,e,t,i,o,a),!0;case"pointerover":var u=a.pointerId;return Dr.set(u,Ar(Dr.get(u)||null,e,t,i,o,a)),!0;case"gotpointercapture":return u=a.pointerId,Rr.set(u,Ar(Rr.get(u)||null,e,t,i,o,a)),!0}return!1}function Zu(e){var t=Tn(e.target);if(t!==null){var i=xn(t);if(i!==null){if(t=i.tag,t===13){if(t=ju(i),t!==null){e.blockedOn=t,Yu(e.priority,function(){Gu(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);co=o,i.target.dispatchEvent(o),co=null}else return t=$r(i),t!==null&&xo(t),e.blockedOn=i,!1;t.shift()}return!0}function qu(e,t,i){Li(e)&&i.delete(t)}function Qm(){To=!1,Xt!==null&&Li(Xt)&&(Xt=null),Zt!==null&&Li(Zt)&&(Zt=null),qt!==null&&Li(qt)&&(qt=null),Dr.forEach(qu),Rr.forEach(qu)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Qm)))}function Lr(e){function t(a){return Vr(a,e)}if(0<Vi.length){Vr(Vi[0],e);for(var i=1;i<Vi.length;i++){var o=Vi[i];o.blockedOn===e&&(o.blockedOn=null)}}for(Xt!==null&&Vr(Xt,e),Zt!==null&&Vr(Zt,e),qt!==null&&Vr(qt,e),Dr.forEach(t),Rr.forEach(t),i=0;i<Jt.length;i++)o=Jt[i],o.blockedOn===e&&(o.blockedOn=null);for(;0<Jt.length&&(i=Jt[0],i.blockedOn===null);)Zu(i),i.blockedOn===null&&Jt.shift()}var Hn=U.ReactCurrentBatchConfig,Ni=!0;function Ym(e,t,i,o){var a=he,u=Hn.transition;Hn.transition=null;try{he=1,ko(e,t,i,o)}finally{he=a,Hn.transition=u}}function Xm(e,t,i,o){var a=he,u=Hn.transition;Hn.transition=null;try{he=4,ko(e,t,i,o)}finally{he=a,Hn.transition=u}}function ko(e,t,i,o){if(Ni){var a=Po(e,t,i,o);if(a===null)Uo(e,t,o,_i,i),Xu(e,o);else if(Gm(a,e,t,i,o))o.stopPropagation();else if(Xu(e,o),t&4&&-1<Km.indexOf(e)){for(;a!==null;){var u=$r(a);if(u!==null&&Ku(u),u=Po(e,t,i,o),u===null&&Uo(e,t,o,_i,i),u===a)break;a=u}a!==null&&o.stopPropagation()}else Uo(e,t,o,null,i)}}var _i=null;function Po(e,t,i,o){if(_i=null,e=fo(o),e=Tn(e),e!==null)if(t=xn(e),t===null)e=null;else if(i=t.tag,i===13){if(e=ju(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _i=e,null}function Ju(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Im()){case go:return 1;case Uu:return 4;case Ci:case Om:return 16;case Wu:return 536870912;default:return 16}default:return 16}}var bt=null,Eo=null,ji=null;function bu(){if(ji)return ji;var e,t=Eo,i=t.length,o,a="value"in bt?bt.value:bt.textContent,u=a.length;for(e=0;e<i&&t[e]===a[e];e++);var h=i-e;for(o=1;o<=h&&t[i-o]===a[u-o];o++);return ji=a.slice(e,1<o?1-o:void 0)}function Ii(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 Oi(){return!0}function ec(){return!1}function ut(e){function t(i,o,a,u,h){this._reactName=i,this._targetInst=a,this.type=o,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(i=e[v],this[v]=i?i(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Oi:ec,this.isPropagationStopped=ec,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=ut($n),Nr=B({},$n,{view:0,detail:0}),Zm=ut(Nr),Mo,Do,_r,Fi=B({},Nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ao,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!==_r&&(_r&&e.type==="mousemove"?(Mo=e.screenX-_r.screenX,Do=e.screenY-_r.screenY):Do=Mo=0,_r=e),Mo)},movementY:function(e){return"movementY"in e?e.movementY:Do}}),tc=ut(Fi),qm=B({},Fi,{dataTransfer:0}),Jm=ut(qm),bm=B({},Nr,{relatedTarget:0}),Ro=ut(bm),ey=B({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=ut(ey),ny=B({},$n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ry=ut(ny),iy=B({},$n,{data:0}),nc=ut(iy),sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oy={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"},ly={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ay(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ly[e])?!!t[e]:!1}function Ao(){return ay}var uy=B({},Nr,{key:function(e){if(e.key){var t=sy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ii(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ao,charCode:function(e){return e.type==="keypress"?Ii(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ii(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cy=ut(uy),fy=B({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rc=ut(fy),dy=B({},Nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ao}),hy=ut(dy),py=B({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),my=ut(py),yy=B({},Fi,{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}),gy=ut(yy),vy=[9,13,27,32],Vo=p&&"CompositionEvent"in window,jr=null;p&&"documentMode"in document&&(jr=document.documentMode);var wy=p&&"TextEvent"in window&&!jr,ic=p&&(!Vo||jr&&8<jr&&11>=jr),sc=" ",oc=!1;function lc(e,t){switch(e){case"keyup":return vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ac(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kn=!1;function Sy(e,t){switch(e){case"compositionend":return ac(t);case"keypress":return t.which!==32?null:(oc=!0,sc);case"textInput":return e=t.data,e===sc&&oc?null:e;default:return null}}function xy(e,t){if(Kn)return e==="compositionend"||!Vo&&lc(e,t)?(e=bu(),ji=Eo=bt=null,Kn=!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 ic&&t.locale!=="ko"?null:t.data;default:return null}}var Ty={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 uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ty[e.type]:t==="textarea"}function cc(e,t,i,o){Au(o),t=Hi(t,"onChange"),0<t.length&&(i=new Co("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Ir=null,Or=null;function ky(e){Dc(e,0)}function zi(e){var t=Zn(e);if(vu(t))return e}function Py(e,t){if(e==="change")return t}var fc=!1;if(p){var Lo;if(p){var No="oninput"in document;if(!No){var dc=document.createElement("div");dc.setAttribute("oninput","return;"),No=typeof dc.oninput=="function"}Lo=No}else Lo=!1;fc=Lo&&(!document.documentMode||9<document.documentMode)}function hc(){Ir&&(Ir.detachEvent("onpropertychange",pc),Or=Ir=null)}function pc(e){if(e.propertyName==="value"&&zi(Or)){var t=[];cc(t,Or,e,fo(e)),_u(ky,t)}}function Ey(e,t,i){e==="focusin"?(hc(),Ir=t,Or=i,Ir.attachEvent("onpropertychange",pc)):e==="focusout"&&hc()}function Cy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(Or)}function My(e,t){if(e==="click")return zi(t)}function Dy(e,t){if(e==="input"||e==="change")return zi(t)}function Ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kt=typeof Object.is=="function"?Object.is:Ry;function Fr(e,t){if(kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var a=i[o];if(!m.call(t,a)||!kt(e[a],t[a]))return!1}return!0}function mc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yc(e,t){var i=mc(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=t&&o>=t)return{node:i,offset:t-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=mc(i)}}function gc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vc(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Ti(e.document)}return t}function _o(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")}function Ay(e){var t=vc(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&gc(i.ownerDocument.documentElement,i)){if(o!==null&&_o(i)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=i.textContent.length,u=Math.min(o.start,a);o=o.end===void 0?u:Math.min(o.end,a),!e.extend&&u>o&&(a=o,o=u,u=a),a=yc(i,u);var h=yc(i,o);a&&h&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vy=p&&"documentMode"in document&&11>=document.documentMode,Gn=null,jo=null,zr=null,Io=!1;function wc(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Io||Gn==null||Gn!==Ti(o)||(o=Gn,"selectionStart"in o&&_o(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),zr&&Fr(zr,o)||(zr=o,o=Hi(jo,"onSelect"),0<o.length&&(t=new Co("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=Gn)))}function Bi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Qn={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionend:Bi("Transition","TransitionEnd")},Oo={},Sc={};p&&(Sc=document.createElement("div").style,"AnimationEvent"in window||(delete Qn.animationend.animation,delete Qn.animationiteration.animation,delete Qn.animationstart.animation),"TransitionEvent"in window||delete Qn.transitionend.transition);function Ui(e){if(Oo[e])return Oo[e];if(!Qn[e])return e;var t=Qn[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Sc)return Oo[e]=t[i];return e}var xc=Ui("animationend"),Tc=Ui("animationiteration"),kc=Ui("animationstart"),Pc=Ui("transitionend"),Ec=new Map,Cc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function en(e,t){Ec.set(e,t),d(t,[e])}for(var Fo=0;Fo<Cc.length;Fo++){var zo=Cc[Fo],Ly=zo.toLowerCase(),Ny=zo[0].toUpperCase()+zo.slice(1);en(Ly,"on"+Ny)}en(xc,"onAnimationEnd"),en(Tc,"onAnimationIteration"),en(kc,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(Pc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),_y=new Set("cancel close invalid load scroll toggle".split(" ").concat(Br));function Mc(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Lm(o,t,void 0,e),e.currentTarget=null}function Dc(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],a=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var h=o.length-1;0<=h;h--){var v=o[h],S=v.instance,M=v.currentTarget;if(v=v.listener,S!==u&&a.isPropagationStopped())break e;Mc(a,v,M),u=S}else for(h=0;h<o.length;h++){if(v=o[h],S=v.instance,M=v.currentTarget,v=v.listener,S!==u&&a.isPropagationStopped())break e;Mc(a,v,M),u=S}}}if(Ei)throw e=yo,Ei=!1,yo=null,e}function xe(e,t){var i=t[Qo];i===void 0&&(i=t[Qo]=new Set);var o=e+"__bubble";i.has(o)||(Rc(t,e,2,!1),i.add(o))}function Bo(e,t,i){var o=0;t&&(o|=4),Rc(i,e,o,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Wi]){e[Wi]=!0,l.forEach(function(i){i!=="selectionchange"&&(_y.has(i)||Bo(i,!1,e),Bo(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Bo("selectionchange",!1,t))}}function Rc(e,t,i,o){switch(Ju(t)){case 1:var a=Ym;break;case 4:a=Xm;break;default:a=ko}i=a.bind(null,t,i,e),a=void 0,!mo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(t,i,{capture:!0,passive:a}):e.addEventListener(t,i,!0):a!==void 0?e.addEventListener(t,i,{passive:a}):e.addEventListener(t,i,!1)}function Uo(e,t,i,o,a){var u=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var h=o.tag;if(h===3||h===4){var v=o.stateNode.containerInfo;if(v===a||v.nodeType===8&&v.parentNode===a)break;if(h===4)for(h=o.return;h!==null;){var S=h.tag;if((S===3||S===4)&&(S=h.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;h=h.return}for(;v!==null;){if(h=Tn(v),h===null)return;if(S=h.tag,S===5||S===6){o=u=h;continue e}v=v.parentNode}}o=o.return}_u(function(){var M=u,N=fo(i),_=[];e:{var L=Ec.get(e);if(L!==void 0){var W=Co,K=e;switch(e){case"keypress":if(Ii(i)===0)break e;case"keydown":case"keyup":W=cy;break;case"focusin":K="focus",W=Ro;break;case"focusout":K="blur",W=Ro;break;case"beforeblur":case"afterblur":W=Ro;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=tc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=Jm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=hy;break;case xc:case Tc:case kc:W=ty;break;case Pc:W=my;break;case"scroll":W=Zm;break;case"wheel":W=gy;break;case"copy":case"cut":case"paste":W=ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=rc}var Y=(t&4)!==0,_e=!Y&&e==="scroll",P=Y?L!==null?L+"Capture":null:L;Y=[];for(var T=M,E;T!==null;){E=T;var I=E.stateNode;if(E.tag===5&&I!==null&&(E=I,P!==null&&(I=kr(T,P),I!=null&&Y.push(Wr(T,I,E)))),_e)break;T=T.return}0<Y.length&&(L=new W(L,K,null,i,N),_.push({event:L,listeners:Y}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",L&&i!==co&&(K=i.relatedTarget||i.fromElement)&&(Tn(K)||K[Ut]))break e;if((W||L)&&(L=N.window===N?N:(L=N.ownerDocument)?L.defaultView||L.parentWindow:window,W?(K=i.relatedTarget||i.toElement,W=M,K=K?Tn(K):null,K!==null&&(_e=xn(K),K!==_e||K.tag!==5&&K.tag!==6)&&(K=null)):(W=null,K=M),W!==K)){if(Y=tc,I="onMouseLeave",P="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(Y=rc,I="onPointerLeave",P="onPointerEnter",T="pointer"),_e=W==null?L:Zn(W),E=K==null?L:Zn(K),L=new Y(I,T+"leave",W,i,N),L.target=_e,L.relatedTarget=E,I=null,Tn(N)===M&&(Y=new Y(P,T+"enter",K,i,N),Y.target=E,Y.relatedTarget=_e,I=Y),_e=I,W&&K)t:{for(Y=W,P=K,T=0,E=Y;E;E=Yn(E))T++;for(E=0,I=P;I;I=Yn(I))E++;for(;0<T-E;)Y=Yn(Y),T--;for(;0<E-T;)P=Yn(P),E--;for(;T--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=Yn(Y),P=Yn(P)}Y=null}else Y=null;W!==null&&Ac(_,L,W,Y,!1),K!==null&&_e!==null&&Ac(_,_e,K,Y,!0)}}e:{if(L=M?Zn(M):window,W=L.nodeName&&L.nodeName.toLowerCase(),W==="select"||W==="input"&&L.type==="file")var X=Py;else if(uc(L))if(fc)X=Dy;else{X=Cy;var b=Ey}else(W=L.nodeName)&&W.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(X=My);if(X&&(X=X(e,M))){cc(_,X,i,N);break e}b&&b(e,L,M),e==="focusout"&&(b=L._wrapperState)&&b.controlled&&L.type==="number"&&so(L,"number",L.value)}switch(b=M?Zn(M):window,e){case"focusin":(uc(b)||b.contentEditable==="true")&&(Gn=b,jo=M,zr=null);break;case"focusout":zr=jo=Gn=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,wc(_,i,N);break;case"selectionchange":if(Vy)break;case"keydown":case"keyup":wc(_,i,N)}var ee;if(Vo)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else Kn?lc(e,i)&&(ne="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ne="onCompositionStart");ne&&(ic&&i.locale!=="ko"&&(Kn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&Kn&&(ee=bu()):(bt=N,Eo="value"in bt?bt.value:bt.textContent,Kn=!0)),b=Hi(M,ne),0<b.length&&(ne=new nc(ne,e,null,i,N),_.push({event:ne,listeners:b}),ee?ne.data=ee:(ee=ac(i),ee!==null&&(ne.data=ee)))),(ee=wy?Sy(e,i):xy(e,i))&&(M=Hi(M,"onBeforeInput"),0<M.length&&(N=new nc("onBeforeInput","beforeinput",null,i,N),_.push({event:N,listeners:M}),N.data=ee))}Dc(_,t)})}function Wr(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Hi(e,t){for(var i=t+"Capture",o=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=kr(e,i),u!=null&&o.unshift(Wr(e,u,a)),u=kr(e,t),u!=null&&o.push(Wr(e,u,a))),e=e.return}return o}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ac(e,t,i,o,a){for(var u=t._reactName,h=[];i!==null&&i!==o;){var v=i,S=v.alternate,M=v.stateNode;if(S!==null&&S===o)break;v.tag===5&&M!==null&&(v=M,a?(S=kr(i,u),S!=null&&h.unshift(Wr(i,S,v))):a||(S=kr(i,u),S!=null&&h.push(Wr(i,S,v)))),i=i.return}h.length!==0&&e.push({event:t,listeners:h})}var jy=/\r\n?/g,Iy=/\u0000|\uFFFD/g;function Vc(e){return(typeof e=="string"?e:""+e).replace(jy,`
|
|
38
|
+
`).replace(Iy,"")}function $i(e,t,i){if(t=Vc(t),Vc(e)!==t&&i)throw Error(s(425))}function Ki(){}var Wo=null,Ho=null;function $o(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ko=typeof setTimeout=="function"?setTimeout:void 0,Oy=typeof clearTimeout=="function"?clearTimeout:void 0,Lc=typeof Promise=="function"?Promise:void 0,Fy=typeof queueMicrotask=="function"?queueMicrotask:typeof Lc<"u"?function(e){return Lc.resolve(null).then(e).catch(zy)}:Ko;function zy(e){setTimeout(function(){throw e})}function Go(e,t){var i=t,o=0;do{var a=i.nextSibling;if(e.removeChild(i),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(o===0){e.removeChild(a),Lr(t);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=a}while(i);Lr(t)}function tn(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==="$?")break;if(t==="/$")return null}}return e}function Nc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var Xn=Math.random().toString(36).slice(2),Nt="__reactFiber$"+Xn,Hr="__reactProps$"+Xn,Ut="__reactContainer$"+Xn,Qo="__reactEvents$"+Xn,By="__reactListeners$"+Xn,Uy="__reactHandles$"+Xn;function Tn(e){var t=e[Nt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Ut]||i[Nt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Nc(e);e!==null;){if(i=e[Nt])return i;e=Nc(e)}return t}e=i,i=e.parentNode}return null}function $r(e){return e=e[Nt]||e[Ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Gi(e){return e[Hr]||null}var Yo=[],qn=-1;function nn(e){return{current:e}}function Te(e){0>qn||(e.current=Yo[qn],Yo[qn]=null,qn--)}function ve(e,t){qn++,Yo[qn]=e.current,e.current=t}var rn={},Ye=nn(rn),nt=nn(!1),kn=rn;function Jn(e,t){var i=e.type.contextTypes;if(!i)return rn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in i)a[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function rt(e){return e=e.childContextTypes,e!=null}function Qi(){Te(nt),Te(Ye)}function _c(e,t,i){if(Ye.current!==rn)throw Error(s(168));ve(Ye,t),ve(nt,i)}function jc(e,t,i){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return i;o=o.getChildContext();for(var a in o)if(!(a in t))throw Error(s(108,ge(e)||"Unknown",a));return B({},i,o)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,kn=Ye.current,ve(Ye,e),ve(nt,nt.current),!0}function Ic(e,t,i){var o=e.stateNode;if(!o)throw Error(s(169));i?(e=jc(e,t,kn),o.__reactInternalMemoizedMergedChildContext=e,Te(nt),Te(Ye),ve(Ye,e)):Te(nt),ve(nt,i)}var Wt=null,Xi=!1,Xo=!1;function Oc(e){Wt===null?Wt=[e]:Wt.push(e)}function Wy(e){Xi=!0,Oc(e)}function sn(){if(!Xo&&Wt!==null){Xo=!0;var e=0,t=he;try{var i=Wt;for(he=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}Wt=null,Xi=!1}catch(a){throw Wt!==null&&(Wt=Wt.slice(e+1)),zu(go,sn),a}finally{he=t,Xo=!1}}return null}var bn=[],er=0,Zi=null,qi=0,pt=[],mt=0,Pn=null,Ht=1,$t="";function En(e,t){bn[er++]=qi,bn[er++]=Zi,Zi=e,qi=t}function Fc(e,t,i){pt[mt++]=Ht,pt[mt++]=$t,pt[mt++]=Pn,Pn=e;var o=Ht;e=$t;var a=32-Tt(o)-1;o&=~(1<<a),i+=1;var u=32-Tt(t)+a;if(30<u){var h=a-a%5;u=(o&(1<<h)-1).toString(32),o>>=h,a-=h,Ht=1<<32-Tt(t)+a|i<<a|o,$t=u+e}else Ht=1<<u|i<<a|o,$t=e}function Zo(e){e.return!==null&&(En(e,1),Fc(e,1,0))}function qo(e){for(;e===Zi;)Zi=bn[--er],bn[er]=null,qi=bn[--er],bn[er]=null;for(;e===Pn;)Pn=pt[--mt],pt[mt]=null,$t=pt[--mt],pt[mt]=null,Ht=pt[--mt],pt[mt]=null}var ct=null,ft=null,Ee=!1,Pt=null;function zc(e,t){var i=wt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function Bc(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ft=tn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Pn!==null?{id:Ht,overflow:$t}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=wt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,ct=e,ft=null,!0):!1;default:return!1}}function Jo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bo(e){if(Ee){var t=ft;if(t){var i=t;if(!Bc(e,t)){if(Jo(e))throw Error(s(418));t=tn(i.nextSibling);var o=ct;t&&Bc(e,t)?zc(o,i):(e.flags=e.flags&-4097|2,Ee=!1,ct=e)}}else{if(Jo(e))throw Error(s(418));e.flags=e.flags&-4097|2,Ee=!1,ct=e}}}function Uc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function Ji(e){if(e!==ct)return!1;if(!Ee)return Uc(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$o(e.type,e.memoizedProps)),t&&(t=ft)){if(Jo(e))throw Wc(),Error(s(418));for(;t;)zc(e,t),t=tn(t.nextSibling)}if(Uc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){ft=tn(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=ct?tn(e.stateNode.nextSibling):null;return!0}function Wc(){for(var e=ft;e;)e=tn(e.nextSibling)}function tr(){ft=ct=null,Ee=!1}function el(e){Pt===null?Pt=[e]:Pt.push(e)}var Hy=U.ReactCurrentBatchConfig;function Kr(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(s(309));var o=i.stateNode}if(!o)throw Error(s(147,e));var a=o,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(h){var v=a.refs;h===null?delete v[u]:v[u]=h},t._stringRef=u,t)}if(typeof e!="string")throw Error(s(284));if(!i._owner)throw Error(s(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hc(e){var t=e._init;return t(e._payload)}function $c(e){function t(P,T){if(e){var E=P.deletions;E===null?(P.deletions=[T],P.flags|=16):E.push(T)}}function i(P,T){if(!e)return null;for(;T!==null;)t(P,T),T=T.sibling;return null}function o(P,T){for(P=new Map;T!==null;)T.key!==null?P.set(T.key,T):P.set(T.index,T),T=T.sibling;return P}function a(P,T){return P=hn(P,T),P.index=0,P.sibling=null,P}function u(P,T,E){return P.index=E,e?(E=P.alternate,E!==null?(E=E.index,E<T?(P.flags|=2,T):E):(P.flags|=2,T)):(P.flags|=1048576,T)}function h(P){return e&&P.alternate===null&&(P.flags|=2),P}function v(P,T,E,I){return T===null||T.tag!==6?(T=Kl(E,P.mode,I),T.return=P,T):(T=a(T,E),T.return=P,T)}function S(P,T,E,I){var X=E.type;return X===fe?N(P,T,E.props.children,I,E.key):T!==null&&(T.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===Se&&Hc(X)===T.type)?(I=a(T,E.props),I.ref=Kr(P,T,E),I.return=P,I):(I=ks(E.type,E.key,E.props,null,P.mode,I),I.ref=Kr(P,T,E),I.return=P,I)}function M(P,T,E,I){return T===null||T.tag!==4||T.stateNode.containerInfo!==E.containerInfo||T.stateNode.implementation!==E.implementation?(T=Gl(E,P.mode,I),T.return=P,T):(T=a(T,E.children||[]),T.return=P,T)}function N(P,T,E,I,X){return T===null||T.tag!==7?(T=Nn(E,P.mode,I,X),T.return=P,T):(T=a(T,E),T.return=P,T)}function _(P,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return T=Kl(""+T,P.mode,E),T.return=P,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Z:return E=ks(T.type,T.key,T.props,null,P.mode,E),E.ref=Kr(P,null,T),E.return=P,E;case oe:return T=Gl(T,P.mode,E),T.return=P,T;case Se:var I=T._init;return _(P,I(T._payload),E)}if(Sr(T)||Q(T))return T=Nn(T,P.mode,E,null),T.return=P,T;bi(P,T)}return null}function L(P,T,E,I){var X=T!==null?T.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return X!==null?null:v(P,T,""+E,I);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:return E.key===X?S(P,T,E,I):null;case oe:return E.key===X?M(P,T,E,I):null;case Se:return X=E._init,L(P,T,X(E._payload),I)}if(Sr(E)||Q(E))return X!==null?null:N(P,T,E,I,null);bi(P,E)}return null}function W(P,T,E,I,X){if(typeof I=="string"&&I!==""||typeof I=="number")return P=P.get(E)||null,v(T,P,""+I,X);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Z:return P=P.get(I.key===null?E:I.key)||null,S(T,P,I,X);case oe:return P=P.get(I.key===null?E:I.key)||null,M(T,P,I,X);case Se:var b=I._init;return W(P,T,E,b(I._payload),X)}if(Sr(I)||Q(I))return P=P.get(E)||null,N(T,P,I,X,null);bi(T,I)}return null}function K(P,T,E,I){for(var X=null,b=null,ee=T,ne=T=0,He=null;ee!==null&&ne<E.length;ne++){ee.index>ne?(He=ee,ee=null):He=ee.sibling;var ce=L(P,ee,E[ne],I);if(ce===null){ee===null&&(ee=He);break}e&&ee&&ce.alternate===null&&t(P,ee),T=u(ce,T,ne),b===null?X=ce:b.sibling=ce,b=ce,ee=He}if(ne===E.length)return i(P,ee),Ee&&En(P,ne),X;if(ee===null){for(;ne<E.length;ne++)ee=_(P,E[ne],I),ee!==null&&(T=u(ee,T,ne),b===null?X=ee:b.sibling=ee,b=ee);return Ee&&En(P,ne),X}for(ee=o(P,ee);ne<E.length;ne++)He=W(ee,P,ne,E[ne],I),He!==null&&(e&&He.alternate!==null&&ee.delete(He.key===null?ne:He.key),T=u(He,T,ne),b===null?X=He:b.sibling=He,b=He);return e&&ee.forEach(function(pn){return t(P,pn)}),Ee&&En(P,ne),X}function Y(P,T,E,I){var X=Q(E);if(typeof X!="function")throw Error(s(150));if(E=X.call(E),E==null)throw Error(s(151));for(var b=X=null,ee=T,ne=T=0,He=null,ce=E.next();ee!==null&&!ce.done;ne++,ce=E.next()){ee.index>ne?(He=ee,ee=null):He=ee.sibling;var pn=L(P,ee,ce.value,I);if(pn===null){ee===null&&(ee=He);break}e&&ee&&pn.alternate===null&&t(P,ee),T=u(pn,T,ne),b===null?X=pn:b.sibling=pn,b=pn,ee=He}if(ce.done)return i(P,ee),Ee&&En(P,ne),X;if(ee===null){for(;!ce.done;ne++,ce=E.next())ce=_(P,ce.value,I),ce!==null&&(T=u(ce,T,ne),b===null?X=ce:b.sibling=ce,b=ce);return Ee&&En(P,ne),X}for(ee=o(P,ee);!ce.done;ne++,ce=E.next())ce=W(ee,P,ne,ce.value,I),ce!==null&&(e&&ce.alternate!==null&&ee.delete(ce.key===null?ne:ce.key),T=u(ce,T,ne),b===null?X=ce:b.sibling=ce,b=ce);return e&&ee.forEach(function(Tg){return t(P,Tg)}),Ee&&En(P,ne),X}function _e(P,T,E,I){if(typeof E=="object"&&E!==null&&E.type===fe&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:e:{for(var X=E.key,b=T;b!==null;){if(b.key===X){if(X=E.type,X===fe){if(b.tag===7){i(P,b.sibling),T=a(b,E.props.children),T.return=P,P=T;break e}}else if(b.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===Se&&Hc(X)===b.type){i(P,b.sibling),T=a(b,E.props),T.ref=Kr(P,b,E),T.return=P,P=T;break e}i(P,b);break}else t(P,b);b=b.sibling}E.type===fe?(T=Nn(E.props.children,P.mode,I,E.key),T.return=P,P=T):(I=ks(E.type,E.key,E.props,null,P.mode,I),I.ref=Kr(P,T,E),I.return=P,P=I)}return h(P);case oe:e:{for(b=E.key;T!==null;){if(T.key===b)if(T.tag===4&&T.stateNode.containerInfo===E.containerInfo&&T.stateNode.implementation===E.implementation){i(P,T.sibling),T=a(T,E.children||[]),T.return=P,P=T;break e}else{i(P,T);break}else t(P,T);T=T.sibling}T=Gl(E,P.mode,I),T.return=P,P=T}return h(P);case Se:return b=E._init,_e(P,T,b(E._payload),I)}if(Sr(E))return K(P,T,E,I);if(Q(E))return Y(P,T,E,I);bi(P,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,T!==null&&T.tag===6?(i(P,T.sibling),T=a(T,E),T.return=P,P=T):(i(P,T),T=Kl(E,P.mode,I),T.return=P,P=T),h(P)):i(P,T)}return _e}var nr=$c(!0),Kc=$c(!1),es=nn(null),ts=null,rr=null,tl=null;function nl(){tl=rr=ts=null}function rl(e){var t=es.current;Te(es),e._currentValue=t}function il(e,t,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===i)break;e=e.return}}function ir(e,t){ts=e,tl=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(it=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(tl!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(ts===null)throw Error(s(308));rr=e,ts.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Cn=null;function sl(e){Cn===null?Cn=[e]:Cn.push(e)}function Gc(e,t,i,o){var a=t.interleaved;return a===null?(i.next=i,sl(t)):(i.next=a.next,a.next=i),t.interleaved=i,Kt(e,o)}function Kt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var on=!1;function ol(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(le&2)!==0){var a=o.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),o.pending=t,Kt(e,i)}return a=o.interleaved,a===null?(t.next=t,sl(o)):(t.next=a.next,a.next=t),o.interleaved=t,Kt(e,i)}function ns(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,So(e,i)}}function Yc(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var a=null,u=null;if(i=i.firstBaseUpdate,i!==null){do{var h={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};u===null?a=u=h:u=u.next=h,i=i.next}while(i!==null);u===null?a=u=t:u=u.next=t}else a=u=t;i={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function rs(e,t,i,o){var a=e.updateQueue;on=!1;var u=a.firstBaseUpdate,h=a.lastBaseUpdate,v=a.shared.pending;if(v!==null){a.shared.pending=null;var S=v,M=S.next;S.next=null,h===null?u=M:h.next=M,h=S;var N=e.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==h&&(v===null?N.firstBaseUpdate=M:v.next=M,N.lastBaseUpdate=S))}if(u!==null){var _=a.baseState;h=0,N=M=S=null,v=u;do{var L=v.lane,W=v.eventTime;if((o&L)===L){N!==null&&(N=N.next={eventTime:W,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var K=e,Y=v;switch(L=t,W=i,Y.tag){case 1:if(K=Y.payload,typeof K=="function"){_=K.call(W,_,L);break e}_=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=Y.payload,L=typeof K=="function"?K.call(W,_,L):K,L==null)break e;_=B({},_,L);break e;case 2:on=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,L=a.effects,L===null?a.effects=[v]:L.push(v))}else W={eventTime:W,lane:L,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(M=N=W,S=_):N=N.next=W,h|=L;if(v=v.next,v===null){if(v=a.shared.pending,v===null)break;L=v,v=L.next,L.next=null,a.lastBaseUpdate=L,a.shared.pending=null}}while(!0);if(N===null&&(S=_),a.baseState=S,a.firstBaseUpdate=M,a.lastBaseUpdate=N,t=a.shared.interleaved,t!==null){a=t;do h|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Rn|=h,e.lanes=h,e.memoizedState=_}}function Xc(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(a!==null){if(o.callback=null,o=i,typeof a!="function")throw Error(s(191,a));a.call(o)}}}var Gr={},_t=nn(Gr),Qr=nn(Gr),Yr=nn(Gr);function Mn(e){if(e===Gr)throw Error(s(174));return e}function ll(e,t){switch(ve(Yr,t),ve(Qr,e),ve(_t,Gr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lo(t,e)}Te(_t),ve(_t,t)}function sr(){Te(_t),Te(Qr),Te(Yr)}function Zc(e){Mn(Yr.current);var t=Mn(_t.current),i=lo(t,e.type);t!==i&&(ve(Qr,e),ve(_t,i))}function al(e){Qr.current===e&&(Te(_t),Te(Qr))}var Me=nn(0);function is(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 ul=[];function cl(){for(var e=0;e<ul.length;e++)ul[e]._workInProgressVersionPrimary=null;ul.length=0}var ss=U.ReactCurrentDispatcher,fl=U.ReactCurrentBatchConfig,Dn=0,De=null,Fe=null,Ue=null,os=!1,Xr=!1,Zr=0,$y=0;function Xe(){throw Error(s(321))}function dl(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!kt(e[i],t[i]))return!1;return!0}function hl(e,t,i,o,a,u){if(Dn=u,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=e===null||e.memoizedState===null?Yy:Xy,e=i(o,a),Xr){u=0;do{if(Xr=!1,Zr=0,25<=u)throw Error(s(301));u+=1,Ue=Fe=null,t.updateQueue=null,ss.current=Zy,e=i(o,a)}while(Xr)}if(ss.current=us,t=Fe!==null&&Fe.next!==null,Dn=0,Ue=Fe=De=null,os=!1,t)throw Error(s(300));return e}function pl(){var e=Zr!==0;return Zr=0,e}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?De.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function gt(){if(Fe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=Ue===null?De.memoizedState:Ue.next;if(t!==null)Ue=t,Fe=e;else{if(e===null)throw Error(s(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Ue===null?De.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function qr(e,t){return typeof t=="function"?t(e):t}function ml(e){var t=gt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=Fe,a=o.baseQueue,u=i.pending;if(u!==null){if(a!==null){var h=a.next;a.next=u.next,u.next=h}o.baseQueue=a=u,i.pending=null}if(a!==null){u=a.next,o=o.baseState;var v=h=null,S=null,M=u;do{var N=M.lane;if((Dn&N)===N)S!==null&&(S=S.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),o=M.hasEagerState?M.eagerState:e(o,M.action);else{var _={lane:N,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};S===null?(v=S=_,h=o):S=S.next=_,De.lanes|=N,Rn|=N}M=M.next}while(M!==null&&M!==u);S===null?h=o:S.next=v,kt(o,t.memoizedState)||(it=!0),t.memoizedState=o,t.baseState=h,t.baseQueue=S,i.lastRenderedState=o}if(e=i.interleaved,e!==null){a=e;do u=a.lane,De.lanes|=u,Rn|=u,a=a.next;while(a!==e)}else a===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function yl(e){var t=gt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=i.dispatch,a=i.pending,u=t.memoizedState;if(a!==null){i.pending=null;var h=a=a.next;do u=e(u,h.action),h=h.next;while(h!==a);kt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),i.lastRenderedState=u}return[u,o]}function qc(){}function Jc(e,t){var i=De,o=gt(),a=t(),u=!kt(o.memoizedState,a);if(u&&(o.memoizedState=a,it=!0),o=o.queue,gl(tf.bind(null,i,o,e),[e]),o.getSnapshot!==t||u||Ue!==null&&Ue.memoizedState.tag&1){if(i.flags|=2048,Jr(9,ef.bind(null,i,o,a,t),void 0,null),We===null)throw Error(s(349));(Dn&30)!==0||bc(i,t,a)}return a}function bc(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function ef(e,t,i,o){t.value=i,t.getSnapshot=o,nf(t)&&rf(e)}function tf(e,t,i){return i(function(){nf(t)&&rf(e)})}function nf(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!kt(e,i)}catch{return!0}}function rf(e){var t=Kt(e,1);t!==null&&Dt(t,e,1,-1)}function sf(e){var t=jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:e},t.queue=e,e=e.dispatch=Qy.bind(null,De,e),[t.memoizedState,e]}function Jr(e,t,i,o){return e={tag:e,create:t,destroy:i,deps:o,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,t.lastEffect=e)),e}function of(){return gt().memoizedState}function ls(e,t,i,o){var a=jt();De.flags|=e,a.memoizedState=Jr(1|t,i,void 0,o===void 0?null:o)}function as(e,t,i,o){var a=gt();o=o===void 0?null:o;var u=void 0;if(Fe!==null){var h=Fe.memoizedState;if(u=h.destroy,o!==null&&dl(o,h.deps)){a.memoizedState=Jr(t,i,u,o);return}}De.flags|=e,a.memoizedState=Jr(1|t,i,u,o)}function lf(e,t){return ls(8390656,8,e,t)}function gl(e,t){return as(2048,8,e,t)}function af(e,t){return as(4,2,e,t)}function uf(e,t){return as(4,4,e,t)}function cf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ff(e,t,i){return i=i!=null?i.concat([e]):null,as(4,4,cf.bind(null,t,e),i)}function vl(){}function df(e,t){var i=gt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&dl(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function hf(e,t){var i=gt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&dl(t,o[1])?o[0]:(e=e(),i.memoizedState=[e,t],e)}function pf(e,t,i){return(Dn&21)===0?(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=i):(kt(i,t)||(i=Hu(),De.lanes|=i,Rn|=i,e.baseState=!0),t)}function Ky(e,t){var i=he;he=i!==0&&4>i?i:4,e(!0);var o=fl.transition;fl.transition={};try{e(!1),t()}finally{he=i,fl.transition=o}}function mf(){return gt().memoizedState}function Gy(e,t,i){var o=fn(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},yf(e))gf(t,i);else if(i=Gc(e,t,i,o),i!==null){var a=be();Dt(i,e,o,a),vf(i,t,o)}}function Qy(e,t,i){var o=fn(e),a={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(yf(e))gf(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,i);if(a.hasEagerState=!0,a.eagerState=v,kt(v,h)){var S=t.interleaved;S===null?(a.next=a,sl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}i=Gc(e,t,a,o),i!==null&&(a=be(),Dt(i,e,o,a),vf(i,t,o))}}function yf(e){var t=e.alternate;return e===De||t!==null&&t===De}function gf(e,t){Xr=os=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function vf(e,t,i){if((i&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,So(e,i)}}var us={readContext:yt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},Yy={readContext:yt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:lf,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,ls(4194308,4,cf.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return ls(4,2,e,t)},useMemo:function(e,t){var i=jt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var o=jt();return t=i!==void 0?i(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Gy.bind(null,De,e),[o.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:sf,useDebugValue:vl,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=sf(!1),t=e[0];return e=Ky.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var o=De,a=jt();if(Ee){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),We===null)throw Error(s(349));(Dn&30)!==0||bc(o,t,i)}a.memoizedState=i;var u={value:i,getSnapshot:t};return a.queue=u,lf(tf.bind(null,o,u,e),[e]),o.flags|=2048,Jr(9,ef.bind(null,o,u,i,t),void 0,null),i},useId:function(){var e=jt(),t=We.identifierPrefix;if(Ee){var i=$t,o=Ht;i=(o&~(1<<32-Tt(o)-1)).toString(32)+i,t=":"+t+"R"+i,i=Zr++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=$y++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xy={readContext:yt,useCallback:df,useContext:yt,useEffect:gl,useImperativeHandle:ff,useInsertionEffect:af,useLayoutEffect:uf,useMemo:hf,useReducer:ml,useRef:of,useState:function(){return ml(qr)},useDebugValue:vl,useDeferredValue:function(e){var t=gt();return pf(t,Fe.memoizedState,e)},useTransition:function(){var e=ml(qr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:qc,useSyncExternalStore:Jc,useId:mf,unstable_isNewReconciler:!1},Zy={readContext:yt,useCallback:df,useContext:yt,useEffect:gl,useImperativeHandle:ff,useInsertionEffect:af,useLayoutEffect:uf,useMemo:hf,useReducer:yl,useRef:of,useState:function(){return yl(qr)},useDebugValue:vl,useDeferredValue:function(e){var t=gt();return Fe===null?t.memoizedState=e:pf(t,Fe.memoizedState,e)},useTransition:function(){var e=yl(qr)[0],t=gt().memoizedState;return[e,t]},useMutableSource:qc,useSyncExternalStore:Jc,useId:mf,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function wl(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:B({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var cs={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var o=be(),a=fn(e),u=Gt(o,a);u.payload=t,i!=null&&(u.callback=i),t=ln(e,u,a),t!==null&&(Dt(t,e,a,o),ns(t,e,a))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=be(),a=fn(e),u=Gt(o,a);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=ln(e,u,a),t!==null&&(Dt(t,e,a,o),ns(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=be(),o=fn(e),a=Gt(i,o);a.tag=2,t!=null&&(a.callback=t),t=ln(e,a,o),t!==null&&(Dt(t,e,o,i),ns(t,e,o))}};function wf(e,t,i,o,a,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,h):t.prototype&&t.prototype.isPureReactComponent?!Fr(i,o)||!Fr(a,u):!0}function Sf(e,t,i){var o=!1,a=rn,u=t.contextType;return typeof u=="object"&&u!==null?u=yt(u):(a=rt(t)?kn:Ye.current,o=t.contextTypes,u=(o=o!=null)?Jn(e,a):rn),t=new t(i,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function xf(e,t,i,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==e&&cs.enqueueReplaceState(t,t.state,null)}function Sl(e,t,i,o){var a=e.stateNode;a.props=i,a.state=e.memoizedState,a.refs={},ol(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=yt(u):(u=rt(t)?kn:Ye.current,a.context=Jn(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(wl(e,t,u,i),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&cs.enqueueReplaceState(a,a.state,null),rs(e,i,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function or(e,t){try{var i="",o=t;do i+=ae(o),o=o.return;while(o);var a=i}catch(u){a=`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}return{value:e,source:t,stack:a,digest:null}}function xl(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function Tl(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var qy=typeof WeakMap=="function"?WeakMap:Map;function Tf(e,t,i){i=Gt(-1,i),i.tag=3,i.payload={element:null};var o=t.value;return i.callback=function(){gs||(gs=!0,Ol=o),Tl(e,t)},i}function kf(e,t,i){i=Gt(-1,i),i.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=t.value;i.payload=function(){return o(a)},i.callback=function(){Tl(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(i.callback=function(){Tl(e,t),typeof o!="function"&&(un===null?un=new Set([this]):un.add(this));var h=t.stack;this.componentDidCatch(t.value,{componentStack:h!==null?h:""})}),i}function Pf(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new qy;var a=new Set;o.set(t,a)}else a=o.get(t),a===void 0&&(a=new Set,o.set(t,a));a.has(i)||(a.add(i),e=fg.bind(null,e,t,i),t.then(e,e))}function Ef(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Cf(e,t,i,o,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Gt(-1,1),t.tag=2,ln(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Jy=U.ReactCurrentOwner,it=!1;function Je(e,t,i,o){t.child=e===null?Kc(t,null,i,o):nr(t,e.child,i,o)}function Mf(e,t,i,o,a){i=i.render;var u=t.ref;return ir(t,a),o=hl(e,t,i,o,u,a),i=pl(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qt(e,t,a)):(Ee&&i&&Zo(t),t.flags|=1,Je(e,t,o,a),t.child)}function Df(e,t,i,o,a){if(e===null){var u=i.type;return typeof u=="function"&&!$l(u)&&u.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=u,Rf(e,t,u,o,a)):(e=ks(i.type,null,o,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var h=u.memoizedProps;if(i=i.compare,i=i!==null?i:Fr,i(h,o)&&e.ref===t.ref)return Qt(e,t,a)}return t.flags|=1,e=hn(u,o),e.ref=t.ref,e.return=t,t.child=e}function Rf(e,t,i,o,a){if(e!==null){var u=e.memoizedProps;if(Fr(u,o)&&e.ref===t.ref)if(it=!1,t.pendingProps=o=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Qt(e,t,a)}return kl(e,t,i,o,a)}function Af(e,t,i){var o=t.pendingProps,a=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(ar,dt),dt|=i;else{if((i&1073741824)===0)return e=u!==null?u.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(ar,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:i,ve(ar,dt),dt|=o}else u!==null?(o=u.baseLanes|i,t.memoizedState=null):o=i,ve(ar,dt),dt|=o;return Je(e,t,a,i),t.child}function Vf(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function kl(e,t,i,o,a){var u=rt(i)?kn:Ye.current;return u=Jn(t,u),ir(t,a),i=hl(e,t,i,o,u,a),o=pl(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Qt(e,t,a)):(Ee&&o&&Zo(t),t.flags|=1,Je(e,t,i,a),t.child)}function Lf(e,t,i,o,a){if(rt(i)){var u=!0;Yi(t)}else u=!1;if(ir(t,a),t.stateNode===null)ds(e,t),Sf(t,i,o),Sl(t,i,o,a),o=!0;else if(e===null){var h=t.stateNode,v=t.memoizedProps;h.props=v;var S=h.context,M=i.contextType;typeof M=="object"&&M!==null?M=yt(M):(M=rt(i)?kn:Ye.current,M=Jn(t,M));var N=i.getDerivedStateFromProps,_=typeof N=="function"||typeof h.getSnapshotBeforeUpdate=="function";_||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==o||S!==M)&&xf(t,h,o,M),on=!1;var L=t.memoizedState;h.state=L,rs(t,o,h,a),S=t.memoizedState,v!==o||L!==S||nt.current||on?(typeof N=="function"&&(wl(t,i,N,o),S=t.memoizedState),(v=on||wf(t,i,v,o,L,S,M))?(_||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=S),h.props=o,h.state=S,h.context=M,o=v):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{h=t.stateNode,Qc(e,t),v=t.memoizedProps,M=t.type===t.elementType?v:Et(t.type,v),h.props=M,_=t.pendingProps,L=h.context,S=i.contextType,typeof S=="object"&&S!==null?S=yt(S):(S=rt(i)?kn:Ye.current,S=Jn(t,S));var W=i.getDerivedStateFromProps;(N=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==_||L!==S)&&xf(t,h,o,S),on=!1,L=t.memoizedState,h.state=L,rs(t,o,h,a);var K=t.memoizedState;v!==_||L!==K||nt.current||on?(typeof W=="function"&&(wl(t,i,W,o),K=t.memoizedState),(M=on||wf(t,i,M,o,L,K,S)||!1)?(N||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,K,S),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,K,S)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),h.props=o,h.state=K,h.context=S,o=M):(typeof h.componentDidUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),o=!1)}return Pl(e,t,i,o,u,a)}function Pl(e,t,i,o,a,u){Vf(e,t);var h=(t.flags&128)!==0;if(!o&&!h)return a&&Ic(t,i,!1),Qt(e,t,u);o=t.stateNode,Jy.current=t;var v=h&&typeof i.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&h?(t.child=nr(t,e.child,null,u),t.child=nr(t,null,v,u)):Je(e,t,v,u),t.memoizedState=o.state,a&&Ic(t,i,!0),t.child}function Nf(e){var t=e.stateNode;t.pendingContext?_c(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_c(e,t.context,!1),ll(e,t.containerInfo)}function _f(e,t,i,o,a){return tr(),el(a),t.flags|=256,Je(e,t,i,o),t.child}var El={dehydrated:null,treeContext:null,retryLane:0};function Cl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jf(e,t,i){var o=t.pendingProps,a=Me.current,u=!1,h=(t.flags&128)!==0,v;if((v=h)||(v=e!==null&&e.memoizedState===null?!1:(a&2)!==0),v?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ve(Me,a&1),e===null)return bo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(h=o.children,e=o.fallback,u?(o=t.mode,u=t.child,h={mode:"hidden",children:h},(o&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=h):u=Ps(h,o,0,null),e=Nn(e,o,i,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Cl(i),t.memoizedState=El,e):Ml(t,h));if(a=e.memoizedState,a!==null&&(v=a.dehydrated,v!==null))return by(e,t,h,o,v,a,i);if(u){u=o.fallback,h=t.mode,a=e.child,v=a.sibling;var S={mode:"hidden",children:o.children};return(h&1)===0&&t.child!==a?(o=t.child,o.childLanes=0,o.pendingProps=S,t.deletions=null):(o=hn(a,S),o.subtreeFlags=a.subtreeFlags&14680064),v!==null?u=hn(v,u):(u=Nn(u,h,i,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,h=e.child.memoizedState,h=h===null?Cl(i):{baseLanes:h.baseLanes|i,cachePool:null,transitions:h.transitions},u.memoizedState=h,u.childLanes=e.childLanes&~i,t.memoizedState=El,o}return u=e.child,e=u.sibling,o=hn(u,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=i),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function Ml(e,t){return t=Ps({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fs(e,t,i,o){return o!==null&&el(o),nr(t,e.child,null,i),e=Ml(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function by(e,t,i,o,a,u,h){if(i)return t.flags&256?(t.flags&=-257,o=xl(Error(s(422))),fs(e,t,h,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,a=t.mode,o=Ps({mode:"visible",children:o.children},a,0,null),u=Nn(u,a,h,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,(t.mode&1)!==0&&nr(t,e.child,null,h),t.child.memoizedState=Cl(h),t.memoizedState=El,u);if((t.mode&1)===0)return fs(e,t,h,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var v=o.dgst;return o=v,u=Error(s(419)),o=xl(u,o,void 0),fs(e,t,h,o)}if(v=(h&e.childLanes)!==0,it||v){if(o=We,o!==null){switch(h&-h){case 4:a=2;break;case 16:a=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(o.suspendedLanes|h))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Kt(e,a),Dt(o,e,a,-1))}return Hl(),o=xl(Error(s(421))),fs(e,t,h,o)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=dg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,ft=tn(a.nextSibling),ct=t,Ee=!0,Pt=null,e!==null&&(pt[mt++]=Ht,pt[mt++]=$t,pt[mt++]=Pn,Ht=e.id,$t=e.overflow,Pn=t),t=Ml(t,o.children),t.flags|=4096,t)}function If(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),il(e.return,t,i)}function Dl(e,t,i,o,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=i,u.tailMode=a)}function Of(e,t,i){var o=t.pendingProps,a=o.revealOrder,u=o.tail;if(Je(e,t,o.children,i),o=Me.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&If(e,i,t);else if(e.tag===19)If(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(ve(Me,o),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(i=t.child,a=null;i!==null;)e=i.alternate,e!==null&&is(e)===null&&(a=i),i=i.sibling;i=a,i===null?(a=t.child,t.child=null):(a=i.sibling,i.sibling=null),Dl(t,!1,a,i,u);break;case"backwards":for(i=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&is(e)===null){t.child=a;break}e=a.sibling,a.sibling=i,i=a,a=e}Dl(t,!0,i,null,u);break;case"together":Dl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ds(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qt(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=hn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=hn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function eg(e,t,i){switch(t.tag){case 3:Nf(t),tr();break;case 5:Zc(t);break;case 1:rt(t.type)&&Yi(t);break;case 4:ll(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,a=t.memoizedProps.value;ve(es,o._currentValue),o._currentValue=a;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ve(Me,Me.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?jf(e,t,i):(ve(Me,Me.current&1),e=Qt(e,t,i),e!==null?e.sibling:null);ve(Me,Me.current&1);break;case 19:if(o=(i&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Of(e,t,i);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ve(Me,Me.current),o)break;return null;case 22:case 23:return t.lanes=0,Af(e,t,i)}return Qt(e,t,i)}var Ff,Rl,zf,Bf;Ff=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Rl=function(){},zf=function(e,t,i,o){var a=e.memoizedProps;if(a!==o){e=t.stateNode,Mn(_t.current);var u=null;switch(i){case"input":a=ro(e,a),o=ro(e,o),u=[];break;case"select":a=B({},a,{value:void 0}),o=B({},o,{value:void 0}),u=[];break;case"textarea":a=oo(e,a),o=oo(e,o),u=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Ki)}ao(i,o);var h;i=null;for(M in a)if(!o.hasOwnProperty(M)&&a.hasOwnProperty(M)&&a[M]!=null)if(M==="style"){var v=a[M];for(h in v)v.hasOwnProperty(h)&&(i||(i={}),i[h]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(c.hasOwnProperty(M)?u||(u=[]):(u=u||[]).push(M,null));for(M in o){var S=o[M];if(v=a!=null?a[M]:void 0,o.hasOwnProperty(M)&&S!==v&&(S!=null||v!=null))if(M==="style")if(v){for(h in v)!v.hasOwnProperty(h)||S&&S.hasOwnProperty(h)||(i||(i={}),i[h]="");for(h in S)S.hasOwnProperty(h)&&v[h]!==S[h]&&(i||(i={}),i[h]=S[h])}else i||(u||(u=[]),u.push(M,i)),i=S;else M==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,v=v?v.__html:void 0,S!=null&&v!==S&&(u=u||[]).push(M,S)):M==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(M,""+S):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(c.hasOwnProperty(M)?(S!=null&&M==="onScroll"&&xe("scroll",e),u||v===S||(u=[])):(u=u||[]).push(M,S))}i&&(u=u||[]).push("style",i);var M=u;(t.updateQueue=M)&&(t.flags|=4)}},Bf=function(e,t,i,o){i!==o&&(t.flags|=4)};function br(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(t)for(var a=e.child;a!==null;)i|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)i|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=i,t}function tg(e,t,i){var o=t.pendingProps;switch(qo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return rt(t.type)&&Qi(),Ze(t),null;case 3:return o=t.stateNode,sr(),Te(nt),Te(Ye),cl(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pt!==null&&(Bl(Pt),Pt=null))),Rl(e,t),Ze(t),null;case 5:al(t);var a=Mn(Yr.current);if(i=t.type,e!==null&&t.stateNode!=null)zf(e,t,i,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Ze(t),null}if(e=Mn(_t.current),Ji(t)){o=t.stateNode,i=t.type;var u=t.memoizedProps;switch(o[Nt]=t,o[Hr]=u,e=(t.mode&1)!==0,i){case"dialog":xe("cancel",o),xe("close",o);break;case"iframe":case"object":case"embed":xe("load",o);break;case"video":case"audio":for(a=0;a<Br.length;a++)xe(Br[a],o);break;case"source":xe("error",o);break;case"img":case"image":case"link":xe("error",o),xe("load",o);break;case"details":xe("toggle",o);break;case"input":wu(o,u),xe("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!u.multiple},xe("invalid",o);break;case"textarea":Tu(o,u),xe("invalid",o)}ao(i,u),a=null;for(var h in u)if(u.hasOwnProperty(h)){var v=u[h];h==="children"?typeof v=="string"?o.textContent!==v&&(u.suppressHydrationWarning!==!0&&$i(o.textContent,v,e),a=["children",v]):typeof v=="number"&&o.textContent!==""+v&&(u.suppressHydrationWarning!==!0&&$i(o.textContent,v,e),a=["children",""+v]):c.hasOwnProperty(h)&&v!=null&&h==="onScroll"&&xe("scroll",o)}switch(i){case"input":xi(o),xu(o,u,!0);break;case"textarea":xi(o),Pu(o);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(o.onclick=Ki)}o=a,t.updateQueue=o,o!==null&&(t.flags|=4)}else{h=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Eu(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=h.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=h.createElement(i,{is:o.is}):(e=h.createElement(i),i==="select"&&(h=e,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):e=h.createElementNS(e,i),e[Nt]=t,e[Hr]=o,Ff(e,t,!1,!1),t.stateNode=e;e:{switch(h=uo(i,o),i){case"dialog":xe("cancel",e),xe("close",e),a=o;break;case"iframe":case"object":case"embed":xe("load",e),a=o;break;case"video":case"audio":for(a=0;a<Br.length;a++)xe(Br[a],e);a=o;break;case"source":xe("error",e),a=o;break;case"img":case"image":case"link":xe("error",e),xe("load",e),a=o;break;case"details":xe("toggle",e),a=o;break;case"input":wu(e,o),a=ro(e,o),xe("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=B({},o,{value:void 0}),xe("invalid",e);break;case"textarea":Tu(e,o),a=oo(e,o),xe("invalid",e);break;default:a=o}ao(i,a),v=a;for(u in v)if(v.hasOwnProperty(u)){var S=v[u];u==="style"?Du(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Cu(e,S)):u==="children"?typeof S=="string"?(i!=="textarea"||S!=="")&&xr(e,S):typeof S=="number"&&xr(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&xe("scroll",e):S!=null&&F(e,u,S,h))}switch(i){case"input":xi(e),xu(e,o,!1);break;case"textarea":xi(e),Pu(e);break;case"option":o.value!=null&&e.setAttribute("value",""+de(o.value));break;case"select":e.multiple=!!o.multiple,u=o.value,u!=null?Bn(e,!!o.multiple,u,!1):o.defaultValue!=null&&Bn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Ki)}switch(i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)Bf(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(i=Mn(Yr.current),Mn(_t.current),Ji(t)){if(o=t.stateNode,i=t.memoizedProps,o[Nt]=t,(u=o.nodeValue!==i)&&(e=ct,e!==null))switch(e.tag){case 3:$i(o.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$i(o.nodeValue,i,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(i.nodeType===9?i:i.ownerDocument).createTextNode(o),o[Nt]=t,t.stateNode=o}return Ze(t),null;case 13:if(Te(Me),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wc(),tr(),t.flags|=98560,u=!1;else if(u=Ji(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Nt]=t}else tr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),u=!1}else Pt!==null&&(Bl(Pt),Pt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Me.current&1)!==0?ze===0&&(ze=3):Hl())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return sr(),Rl(e,t),e===null&&Ur(t.stateNode.containerInfo),Ze(t),null;case 10:return rl(t.type._context),Ze(t),null;case 17:return rt(t.type)&&Qi(),Ze(t),null;case 19:if(Te(Me),u=t.memoizedState,u===null)return Ze(t),null;if(o=(t.flags&128)!==0,h=u.rendering,h===null)if(o)br(u,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=is(e),h!==null){for(t.flags|=128,br(u,!1),o=h.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=i,i=t.child;i!==null;)u=i,e=o,u.flags&=14680066,h=u.alternate,h===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=h.childLanes,u.lanes=h.lanes,u.child=h.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=h.memoizedProps,u.memoizedState=h.memoizedState,u.updateQueue=h.updateQueue,u.type=h.type,e=h.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return ve(Me,Me.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ne()>ur&&(t.flags|=128,o=!0,br(u,!1),t.lanes=4194304)}else{if(!o)if(e=is(h),e!==null){if(t.flags|=128,o=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),br(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Ee)return Ze(t),null}else 2*Ne()-u.renderingStartTime>ur&&i!==1073741824&&(t.flags|=128,o=!0,br(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(i=u.last,i!==null?i.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ne(),t.sibling=null,i=Me.current,ve(Me,o?i&1|2:i&1),t):(Ze(t),null);case 22:case 23:return Wl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(dt&1073741824)!==0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function ng(e,t){switch(qo(t),t.tag){case 1:return rt(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),Te(nt),Te(Ye),cl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return al(t),null;case 13:if(Te(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Me),null;case 4:return sr(),null;case 10:return rl(t.type._context),null;case 22:case 23:return Wl(),null;case 24:return null;default:return null}}var hs=!1,qe=!1,rg=typeof WeakSet=="function"?WeakSet:Set,H=null;function lr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(o){Ae(e,t,o)}else i.current=null}function Al(e,t,i){try{i()}catch(o){Ae(e,t,o)}}var Uf=!1;function ig(e,t){if(Wo=Ni,e=vc(),_o(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var a=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{i.nodeType,u.nodeType}catch{i=null;break e}var h=0,v=-1,S=-1,M=0,N=0,_=e,L=null;t:for(;;){for(var W;_!==i||a!==0&&_.nodeType!==3||(v=h+a),_!==u||o!==0&&_.nodeType!==3||(S=h+o),_.nodeType===3&&(h+=_.nodeValue.length),(W=_.firstChild)!==null;)L=_,_=W;for(;;){if(_===e)break t;if(L===i&&++M===a&&(v=h),L===u&&++N===o&&(S=h),(W=_.nextSibling)!==null)break;_=L,L=_.parentNode}_=W}i=v===-1||S===-1?null:{start:v,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ho={focusedElem:e,selectionRange:i},Ni=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var Y=K.memoizedProps,_e=K.memoizedState,P=t.stateNode,T=P.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Et(t.type,Y),_e);P.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(I){Ae(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return K=Uf,Uf=!1,K}function ei(e,t,i){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Al(t,i,u)}a=a.next}while(a!==o)}}function ps(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var o=i.create;i.destroy=o()}i=i.next}while(i!==t)}}function Vl(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[Hr],delete t[Qo],delete t[By],delete t[Uy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hf(e){return e.tag===5||e.tag===3||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hf(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ll(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Ki));else if(o!==4&&(e=e.child,e!==null))for(Ll(e,t,i),e=e.sibling;e!==null;)Ll(e,t,i),e=e.sibling}function Nl(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Nl(e,t,i),e=e.sibling;e!==null;)Nl(e,t,i),e=e.sibling}var $e=null,Ct=!1;function an(e,t,i){for(i=i.child;i!==null;)Kf(e,t,i),i=i.sibling}function Kf(e,t,i){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Mi,i)}catch{}switch(i.tag){case 5:qe||lr(i,t);case 6:var o=$e,a=Ct;$e=null,an(e,t,i),$e=o,Ct=a,$e!==null&&(Ct?(e=$e,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):$e.removeChild(i.stateNode));break;case 18:$e!==null&&(Ct?(e=$e,i=i.stateNode,e.nodeType===8?Go(e.parentNode,i):e.nodeType===1&&Go(e,i),Lr(e)):Go($e,i.stateNode));break;case 4:o=$e,a=Ct,$e=i.stateNode.containerInfo,Ct=!0,an(e,t,i),$e=o,Ct=a;break;case 0:case 11:case 14:case 15:if(!qe&&(o=i.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var u=a,h=u.destroy;u=u.tag,h!==void 0&&((u&2)!==0||(u&4)!==0)&&Al(i,t,h),a=a.next}while(a!==o)}an(e,t,i);break;case 1:if(!qe&&(lr(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(v){Ae(i,t,v)}an(e,t,i);break;case 21:an(e,t,i);break;case 22:i.mode&1?(qe=(o=qe)||i.memoizedState!==null,an(e,t,i),qe=o):an(e,t,i);break;default:an(e,t,i)}}function Gf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new rg),t.forEach(function(o){var a=hg.bind(null,e,o);i.has(o)||(i.add(o),o.then(a,a))})}}function Mt(e,t){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var a=i[o];try{var u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 5:$e=v.stateNode,Ct=!1;break e;case 3:$e=v.stateNode.containerInfo,Ct=!0;break e;case 4:$e=v.stateNode.containerInfo,Ct=!0;break e}v=v.return}if($e===null)throw Error(s(160));Kf(u,h,a),$e=null,Ct=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(M){Ae(a,t,M)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qf(t,e),t=t.sibling}function Qf(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(t,e),It(e),o&4){try{ei(3,e,e.return),ps(3,e)}catch(Y){Ae(e,e.return,Y)}try{ei(5,e,e.return)}catch(Y){Ae(e,e.return,Y)}}break;case 1:Mt(t,e),It(e),o&512&&i!==null&&lr(i,i.return);break;case 5:if(Mt(t,e),It(e),o&512&&i!==null&&lr(i,i.return),e.flags&32){var a=e.stateNode;try{xr(a,"")}catch(Y){Ae(e,e.return,Y)}}if(o&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,h=i!==null?i.memoizedProps:u,v=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{v==="input"&&u.type==="radio"&&u.name!=null&&Su(a,u),uo(v,h);var M=uo(v,u);for(h=0;h<S.length;h+=2){var N=S[h],_=S[h+1];N==="style"?Du(a,_):N==="dangerouslySetInnerHTML"?Cu(a,_):N==="children"?xr(a,_):F(a,N,_,M)}switch(v){case"input":io(a,u);break;case"textarea":ku(a,u);break;case"select":var L=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var W=u.value;W!=null?Bn(a,!!u.multiple,W,!1):L!==!!u.multiple&&(u.defaultValue!=null?Bn(a,!!u.multiple,u.defaultValue,!0):Bn(a,!!u.multiple,u.multiple?[]:"",!1))}a[Hr]=u}catch(Y){Ae(e,e.return,Y)}}break;case 6:if(Mt(t,e),It(e),o&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(Y){Ae(e,e.return,Y)}}break;case 3:if(Mt(t,e),It(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Lr(t.containerInfo)}catch(Y){Ae(e,e.return,Y)}break;case 4:Mt(t,e),It(e);break;case 13:Mt(t,e),It(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Il=Ne())),o&4&&Gf(e);break;case 22:if(N=i!==null&&i.memoizedState!==null,e.mode&1?(qe=(M=qe)||N,Mt(t,e),qe=M):Mt(t,e),It(e),o&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!N&&(e.mode&1)!==0)for(H=e,N=e.child;N!==null;){for(_=H=N;H!==null;){switch(L=H,W=L.child,L.tag){case 0:case 11:case 14:case 15:ei(4,L,L.return);break;case 1:lr(L,L.return);var K=L.stateNode;if(typeof K.componentWillUnmount=="function"){o=L,i=L.return;try{t=o,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(Y){Ae(o,i,Y)}}break;case 5:lr(L,L.return);break;case 22:if(L.memoizedState!==null){Zf(_);continue}}W!==null?(W.return=L,H=W):Zf(_)}N=N.sibling}e:for(N=null,_=e;;){if(_.tag===5){if(N===null){N=_;try{a=_.stateNode,M?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(v=_.stateNode,S=_.memoizedProps.style,h=S!=null&&S.hasOwnProperty("display")?S.display:null,v.style.display=Mu("display",h))}catch(Y){Ae(e,e.return,Y)}}}else if(_.tag===6){if(N===null)try{_.stateNode.nodeValue=M?"":_.memoizedProps}catch(Y){Ae(e,e.return,Y)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;N===_&&(N=null),_=_.return}N===_&&(N=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:Mt(t,e),It(e),o&4&&Gf(e);break;case 21:break;default:Mt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(Hf(i)){var o=i;break e}i=i.return}throw Error(s(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(xr(a,""),o.flags&=-33);var u=$f(e);Nl(e,u,a);break;case 3:case 4:var h=o.stateNode.containerInfo,v=$f(e);Ll(e,v,h);break;default:throw Error(s(161))}}catch(S){Ae(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sg(e,t,i){H=e,Yf(e)}function Yf(e,t,i){for(var o=(e.mode&1)!==0;H!==null;){var a=H,u=a.child;if(a.tag===22&&o){var h=a.memoizedState!==null||hs;if(!h){var v=a.alternate,S=v!==null&&v.memoizedState!==null||qe;v=hs;var M=qe;if(hs=h,(qe=S)&&!M)for(H=a;H!==null;)h=H,S=h.child,h.tag===22&&h.memoizedState!==null?qf(a):S!==null?(S.return=h,H=S):qf(a);for(;u!==null;)H=u,Yf(u),u=u.sibling;H=a,hs=v,qe=M}Xf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,H=u):Xf(e)}}function Xf(e){for(;H!==null;){var t=H;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:qe||ps(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!qe)if(i===null)o.componentDidMount();else{var a=t.elementType===t.type?i.memoizedProps:Et(t.type,i.memoizedProps);o.componentDidUpdate(a,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Xc(t,u,o);break;case 3:var h=t.updateQueue;if(h!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}Xc(t,h,i)}break;case 5:var v=t.stateNode;if(i===null&&t.flags&4){i=v;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&i.focus();break;case"img":S.src&&(i.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var M=t.alternate;if(M!==null){var N=M.memoizedState;if(N!==null){var _=N.dehydrated;_!==null&&Lr(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}qe||t.flags&512&&Vl(t)}catch(L){Ae(t,t.return,L)}}if(t===e){H=null;break}if(i=t.sibling,i!==null){i.return=t.return,H=i;break}H=t.return}}function Zf(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var i=t.sibling;if(i!==null){i.return=t.return,H=i;break}H=t.return}}function qf(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{ps(4,t)}catch(S){Ae(t,i,S)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var a=t.return;try{o.componentDidMount()}catch(S){Ae(t,a,S)}}var u=t.return;try{Vl(t)}catch(S){Ae(t,u,S)}break;case 5:var h=t.return;try{Vl(t)}catch(S){Ae(t,h,S)}}}catch(S){Ae(t,t.return,S)}if(t===e){H=null;break}var v=t.sibling;if(v!==null){v.return=t.return,H=v;break}H=t.return}}var og=Math.ceil,ms=U.ReactCurrentDispatcher,_l=U.ReactCurrentOwner,vt=U.ReactCurrentBatchConfig,le=0,We=null,Ie=null,Ke=0,dt=0,ar=nn(0),ze=0,ti=null,Rn=0,ys=0,jl=0,ni=null,st=null,Il=0,ur=1/0,Yt=null,gs=!1,Ol=null,un=null,vs=!1,cn=null,ws=0,ri=0,Fl=null,Ss=-1,xs=0;function be(){return(le&6)!==0?Ne():Ss!==-1?Ss:Ss=Ne()}function fn(e){return(e.mode&1)===0?1:(le&2)!==0&&Ke!==0?Ke&-Ke:Hy.transition!==null?(xs===0&&(xs=Hu()),xs):(e=he,e!==0||(e=window.event,e=e===void 0?16:Ju(e.type)),e)}function Dt(e,t,i,o){if(50<ri)throw ri=0,Fl=null,Error(s(185));Mr(e,i,o),((le&2)===0||e!==We)&&(e===We&&((le&2)===0&&(ys|=i),ze===4&&dn(e,Ke)),ot(e,o),i===1&&le===0&&(t.mode&1)===0&&(ur=Ne()+500,Xi&&sn()))}function ot(e,t){var i=e.callbackNode;Hm(e,t);var o=Ai(e,e===We?Ke:0);if(o===0)i!==null&&Bu(i),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(i!=null&&Bu(i),t===1)e.tag===0?Wy(bf.bind(null,e)):Oc(bf.bind(null,e)),Fy(function(){(le&6)===0&&sn()}),i=null;else{switch($u(o)){case 1:i=go;break;case 4:i=Uu;break;case 16:i=Ci;break;case 536870912:i=Wu;break;default:i=Ci}i=ld(i,Jf.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function Jf(e,t){if(Ss=-1,xs=0,(le&6)!==0)throw Error(s(327));var i=e.callbackNode;if(cr()&&e.callbackNode!==i)return null;var o=Ai(e,e===We?Ke:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=Ts(e,o);else{t=o;var a=le;le|=2;var u=td();(We!==e||Ke!==t)&&(Yt=null,ur=Ne()+500,Vn(e,t));do try{ug();break}catch(v){ed(e,v)}while(!0);nl(),ms.current=u,le=a,Ie!==null?t=0:(We=null,Ke=0,t=ze)}if(t!==0){if(t===2&&(a=vo(e),a!==0&&(o=a,t=zl(e,a))),t===1)throw i=ti,Vn(e,0),dn(e,o),ot(e,Ne()),i;if(t===6)dn(e,o);else{if(a=e.current.alternate,(o&30)===0&&!lg(a)&&(t=Ts(e,o),t===2&&(u=vo(e),u!==0&&(o=u,t=zl(e,u))),t===1))throw i=ti,Vn(e,0),dn(e,o),ot(e,Ne()),i;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:Ln(e,st,Yt);break;case 3:if(dn(e,o),(o&130023424)===o&&(t=Il+500-Ne(),10<t)){if(Ai(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){be(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ko(Ln.bind(null,e,st,Yt),t);break}Ln(e,st,Yt);break;case 4:if(dn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,a=-1;0<o;){var h=31-Tt(o);u=1<<h,h=t[h],h>a&&(a=h),o&=~u}if(o=a,o=Ne()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*og(o/1960))-o,10<o){e.timeoutHandle=Ko(Ln.bind(null,e,st,Yt),o);break}Ln(e,st,Yt);break;case 5:Ln(e,st,Yt);break;default:throw Error(s(329))}}}return ot(e,Ne()),e.callbackNode===i?Jf.bind(null,e):null}function zl(e,t){var i=ni;return e.current.memoizedState.isDehydrated&&(Vn(e,t).flags|=256),e=Ts(e,t),e!==2&&(t=st,st=i,t!==null&&Bl(t)),e}function Bl(e){st===null?st=e:st.push.apply(st,e)}function lg(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var o=0;o<i.length;o++){var a=i[o],u=a.getSnapshot;a=a.value;try{if(!kt(u(),a))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 dn(e,t){for(t&=~jl,t&=~ys,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-Tt(t),o=1<<i;e[i]=-1,t&=~o}}function bf(e){if((le&6)!==0)throw Error(s(327));cr();var t=Ai(e,0);if((t&1)===0)return ot(e,Ne()),null;var i=Ts(e,t);if(e.tag!==0&&i===2){var o=vo(e);o!==0&&(t=o,i=zl(e,o))}if(i===1)throw i=ti,Vn(e,0),dn(e,t),ot(e,Ne()),i;if(i===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ln(e,st,Yt),ot(e,Ne()),null}function Ul(e,t){var i=le;le|=1;try{return e(t)}finally{le=i,le===0&&(ur=Ne()+500,Xi&&sn())}}function An(e){cn!==null&&cn.tag===0&&(le&6)===0&&cr();var t=le;le|=1;var i=vt.transition,o=he;try{if(vt.transition=null,he=1,e)return e()}finally{he=o,vt.transition=i,le=t,(le&6)===0&&sn()}}function Wl(){dt=ar.current,Te(ar)}function Vn(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,Oy(i)),Ie!==null)for(i=Ie.return;i!==null;){var o=i;switch(qo(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Qi();break;case 3:sr(),Te(nt),Te(Ye),cl();break;case 5:al(o);break;case 4:sr();break;case 13:Te(Me);break;case 19:Te(Me);break;case 10:rl(o.type._context);break;case 22:case 23:Wl()}i=i.return}if(We=e,Ie=e=hn(e.current,null),Ke=dt=t,ze=0,ti=null,jl=ys=Rn=0,st=ni=null,Cn!==null){for(t=0;t<Cn.length;t++)if(i=Cn[t],o=i.interleaved,o!==null){i.interleaved=null;var a=o.next,u=i.pending;if(u!==null){var h=u.next;u.next=a,o.next=h}i.pending=o}Cn=null}return e}function ed(e,t){do{var i=Ie;try{if(nl(),ss.current=us,os){for(var o=De.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}os=!1}if(Dn=0,Ue=Fe=De=null,Xr=!1,Zr=0,_l.current=null,i===null||i.return===null){ze=1,ti=t,Ie=null;break}e:{var u=e,h=i.return,v=i,S=t;if(t=Ke,v.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=S,N=v,_=N.tag;if((N.mode&1)===0&&(_===0||_===11||_===15)){var L=N.alternate;L?(N.updateQueue=L.updateQueue,N.memoizedState=L.memoizedState,N.lanes=L.lanes):(N.updateQueue=null,N.memoizedState=null)}var W=Ef(h);if(W!==null){W.flags&=-257,Cf(W,h,v,u,t),W.mode&1&&Pf(u,M,t),t=W,S=M;var K=t.updateQueue;if(K===null){var Y=new Set;Y.add(S),t.updateQueue=Y}else K.add(S);break e}else{if((t&1)===0){Pf(u,M,t),Hl();break e}S=Error(s(426))}}else if(Ee&&v.mode&1){var _e=Ef(h);if(_e!==null){(_e.flags&65536)===0&&(_e.flags|=256),Cf(_e,h,v,u,t),el(or(S,v));break e}}u=S=or(S,v),ze!==4&&(ze=2),ni===null?ni=[u]:ni.push(u),u=h;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var P=Tf(u,S,t);Yc(u,P);break e;case 1:v=S;var T=u.type,E=u.stateNode;if((u.flags&128)===0&&(typeof T.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(un===null||!un.has(E)))){u.flags|=65536,t&=-t,u.lanes|=t;var I=kf(u,v,t);Yc(u,I);break e}}u=u.return}while(u!==null)}rd(i)}catch(X){t=X,Ie===i&&i!==null&&(Ie=i=i.return);continue}break}while(!0)}function td(){var e=ms.current;return ms.current=us,e===null?us:e}function Hl(){(ze===0||ze===3||ze===2)&&(ze=4),We===null||(Rn&268435455)===0&&(ys&268435455)===0||dn(We,Ke)}function Ts(e,t){var i=le;le|=2;var o=td();(We!==e||Ke!==t)&&(Yt=null,Vn(e,t));do try{ag();break}catch(a){ed(e,a)}while(!0);if(nl(),le=i,ms.current=o,Ie!==null)throw Error(s(261));return We=null,Ke=0,ze}function ag(){for(;Ie!==null;)nd(Ie)}function ug(){for(;Ie!==null&&!_m();)nd(Ie)}function nd(e){var t=od(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?rd(e):Ie=t,_l.current=null}function rd(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=tg(i,t,dt),i!==null){Ie=i;return}}else{if(i=ng(i,t),i!==null){i.flags&=32767,Ie=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Ie=null;return}}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);ze===0&&(ze=5)}function Ln(e,t,i){var o=he,a=vt.transition;try{vt.transition=null,he=1,cg(e,t,i,o)}finally{vt.transition=a,he=o}return null}function cg(e,t,i,o){do cr();while(cn!==null);if((le&6)!==0)throw Error(s(327));i=e.finishedWork;var a=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var u=i.lanes|i.childLanes;if($m(e,u),e===We&&(Ie=We=null,Ke=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||vs||(vs=!0,ld(Ci,function(){return cr(),null})),u=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||u){u=vt.transition,vt.transition=null;var h=he;he=1;var v=le;le|=4,_l.current=null,ig(e,i),Qf(i,e),Ay(Ho),Ni=!!Wo,Ho=Wo=null,e.current=i,sg(i),jm(),le=v,he=h,vt.transition=u}else e.current=i;if(vs&&(vs=!1,cn=e,ws=a),u=e.pendingLanes,u===0&&(un=null),Fm(i.stateNode),ot(e,Ne()),t!==null)for(o=e.onRecoverableError,i=0;i<t.length;i++)a=t[i],o(a.value,{componentStack:a.stack,digest:a.digest});if(gs)throw gs=!1,e=Ol,Ol=null,e;return(ws&1)!==0&&e.tag!==0&&cr(),u=e.pendingLanes,(u&1)!==0?e===Fl?ri++:(ri=0,Fl=e):ri=0,sn(),null}function cr(){if(cn!==null){var e=$u(ws),t=vt.transition,i=he;try{if(vt.transition=null,he=16>e?16:e,cn===null)var o=!1;else{if(e=cn,cn=null,ws=0,(le&6)!==0)throw Error(s(331));var a=le;for(le|=4,H=e.current;H!==null;){var u=H,h=u.child;if((H.flags&16)!==0){var v=u.deletions;if(v!==null){for(var S=0;S<v.length;S++){var M=v[S];for(H=M;H!==null;){var N=H;switch(N.tag){case 0:case 11:case 15:ei(8,N,u)}var _=N.child;if(_!==null)_.return=N,H=_;else for(;H!==null;){N=H;var L=N.sibling,W=N.return;if(Wf(N),N===M){H=null;break}if(L!==null){L.return=W,H=L;break}H=W}}}var K=u.alternate;if(K!==null){var Y=K.child;if(Y!==null){K.child=null;do{var _e=Y.sibling;Y.sibling=null,Y=_e}while(Y!==null)}}H=u}}if((u.subtreeFlags&2064)!==0&&h!==null)h.return=u,H=h;else e:for(;H!==null;){if(u=H,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:ei(9,u,u.return)}var P=u.sibling;if(P!==null){P.return=u.return,H=P;break e}H=u.return}}var T=e.current;for(H=T;H!==null;){h=H;var E=h.child;if((h.subtreeFlags&2064)!==0&&E!==null)E.return=h,H=E;else e:for(h=T;H!==null;){if(v=H,(v.flags&2048)!==0)try{switch(v.tag){case 0:case 11:case 15:ps(9,v)}}catch(X){Ae(v,v.return,X)}if(v===h){H=null;break e}var I=v.sibling;if(I!==null){I.return=v.return,H=I;break e}H=v.return}}if(le=a,sn(),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Mi,e)}catch{}o=!0}return o}finally{he=i,vt.transition=t}}return!1}function id(e,t,i){t=or(i,t),t=Tf(e,t,1),e=ln(e,t,1),t=be(),e!==null&&(Mr(e,1,t),ot(e,t))}function Ae(e,t,i){if(e.tag===3)id(e,e,i);else for(;t!==null;){if(t.tag===3){id(t,e,i);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(un===null||!un.has(o))){e=or(i,e),e=kf(t,e,1),t=ln(t,e,1),e=be(),t!==null&&(Mr(t,1,e),ot(t,e));break}}t=t.return}}function fg(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),t=be(),e.pingedLanes|=e.suspendedLanes&i,We===e&&(Ke&i)===i&&(ze===4||ze===3&&(Ke&130023424)===Ke&&500>Ne()-Il?Vn(e,0):jl|=i),ot(e,t)}function sd(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ri,Ri<<=1,(Ri&130023424)===0&&(Ri=4194304)));var i=be();e=Kt(e,t),e!==null&&(Mr(e,t,i),ot(e,i))}function dg(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),sd(e,i)}function hg(e,t){var i=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(i=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),sd(e,i)}var od;od=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)it=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return it=!1,eg(e,t,i);it=(e.flags&131072)!==0}else it=!1,Ee&&(t.flags&1048576)!==0&&Fc(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ds(e,t),e=t.pendingProps;var a=Jn(t,Ye.current);ir(t,i),a=hl(null,t,o,e,a,i);var u=pl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(o)?(u=!0,Yi(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ol(t),a.updater=cs,t.stateNode=a,a._reactInternals=t,Sl(t,o,e,i),t=Pl(null,t,o,!0,u,i)):(t.tag=0,Ee&&u&&Zo(t),Je(null,t,a,i),t=t.child),t;case 16:o=t.elementType;e:{switch(ds(e,t),e=t.pendingProps,a=o._init,o=a(o._payload),t.type=o,a=t.tag=mg(o),e=Et(o,e),a){case 0:t=kl(null,t,o,e,i);break e;case 1:t=Lf(null,t,o,e,i);break e;case 11:t=Mf(null,t,o,e,i);break e;case 14:t=Df(null,t,o,Et(o.type,e),i);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),kl(e,t,o,a,i);case 1:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),Lf(e,t,o,a,i);case 3:e:{if(Nf(t),e===null)throw Error(s(387));o=t.pendingProps,u=t.memoizedState,a=u.element,Qc(e,t),rs(t,o,null,i);var h=t.memoizedState;if(o=h.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=or(Error(s(423)),t),t=_f(e,t,o,i,a);break e}else if(o!==a){a=or(Error(s(424)),t),t=_f(e,t,o,i,a);break e}else for(ft=tn(t.stateNode.containerInfo.firstChild),ct=t,Ee=!0,Pt=null,i=Kc(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(tr(),o===a){t=Qt(e,t,i);break e}Je(e,t,o,i)}t=t.child}return t;case 5:return Zc(t),e===null&&bo(t),o=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,h=a.children,$o(o,a)?h=null:u!==null&&$o(o,u)&&(t.flags|=32),Vf(e,t),Je(e,t,h,i),t.child;case 6:return e===null&&bo(t),null;case 13:return jf(e,t,i);case 4:return ll(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=nr(t,null,o,i):Je(e,t,o,i),t.child;case 11:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),Mf(e,t,o,a,i);case 7:return Je(e,t,t.pendingProps,i),t.child;case 8:return Je(e,t,t.pendingProps.children,i),t.child;case 12:return Je(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,u=t.memoizedProps,h=a.value,ve(es,o._currentValue),o._currentValue=h,u!==null)if(kt(u.value,h)){if(u.children===a.children&&!nt.current){t=Qt(e,t,i);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var v=u.dependencies;if(v!==null){h=u.child;for(var S=v.firstContext;S!==null;){if(S.context===o){if(u.tag===1){S=Gt(-1,i&-i),S.tag=2;var M=u.updateQueue;if(M!==null){M=M.shared;var N=M.pending;N===null?S.next=S:(S.next=N.next,N.next=S),M.pending=S}}u.lanes|=i,S=u.alternate,S!==null&&(S.lanes|=i),il(u.return,i,t),v.lanes|=i;break}S=S.next}}else if(u.tag===10)h=u.type===t.type?null:u.child;else if(u.tag===18){if(h=u.return,h===null)throw Error(s(341));h.lanes|=i,v=h.alternate,v!==null&&(v.lanes|=i),il(h,i,t),h=u.sibling}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===t){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}Je(e,t,a.children,i),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,ir(t,i),a=yt(a),o=o(a),t.flags|=1,Je(e,t,o,i),t.child;case 14:return o=t.type,a=Et(o,t.pendingProps),a=Et(o.type,a),Df(e,t,o,a,i);case 15:return Rf(e,t,t.type,t.pendingProps,i);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Et(o,a),ds(e,t),t.tag=1,rt(o)?(e=!0,Yi(t)):e=!1,ir(t,i),Sf(t,o,a),Sl(t,o,a,i),Pl(null,t,o,!0,e,i);case 19:return Of(e,t,i);case 22:return Af(e,t,i)}throw Error(s(156,t.tag))};function ld(e,t){return zu(e,t)}function pg(e,t,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,i,o){return new pg(e,t,i,o)}function $l(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mg(e){if(typeof e=="function")return $l(e)?1:0;if(e!=null){if(e=e.$$typeof,e===we)return 11;if(e===je)return 14}return 2}function hn(e,t){var i=e.alternate;return i===null?(i=wt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function ks(e,t,i,o,a,u){var h=2;if(o=e,typeof e=="function")$l(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case fe:return Nn(i.children,a,u,t);case te:h=8,a|=8;break;case ye:return e=wt(12,i,t,a|2),e.elementType=ye,e.lanes=u,e;case Le:return e=wt(13,i,t,a),e.elementType=Le,e.lanes=u,e;case Re:return e=wt(19,i,t,a),e.elementType=Re,e.lanes=u,e;case Ce:return Ps(i,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:h=10;break e;case pe:h=9;break e;case we:h=11;break e;case je:h=14;break e;case Se:h=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=wt(h,i,t,a),t.elementType=e,t.type=o,t.lanes=u,t}function Nn(e,t,i,o){return e=wt(7,e,o,t),e.lanes=i,e}function Ps(e,t,i,o){return e=wt(22,e,o,t),e.elementType=Ce,e.lanes=i,e.stateNode={isHidden:!1},e}function Kl(e,t,i){return e=wt(6,e,null,t),e.lanes=i,e}function Gl(e,t,i){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yg(e,t,i,o,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ql(e,t,i,o,a,u,h,v,S){return e=new yg(e,t,i,v,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=wt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},ol(u),e}function gg(e,t,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oe,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}function ad(e){if(!e)return rn;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var i=e.type;if(rt(i))return jc(e,i,t)}return t}function ud(e,t,i,o,a,u,h,v,S){return e=Ql(i,o,!0,e,a,u,h,v,S),e.context=ad(null),i=e.current,o=be(),a=fn(i),u=Gt(o,a),u.callback=t??null,ln(i,u,a),e.current.lanes=a,Mr(e,a,o),ot(e,o),e}function Es(e,t,i,o){var a=t.current,u=be(),h=fn(a);return i=ad(i),t.context===null?t.context=i:t.pendingContext=i,t=Gt(u,h),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=ln(a,t,h),e!==null&&(Dt(e,a,h,u),ns(e,a,h)),h}function Cs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Yl(e,t){cd(e,t),(e=e.alternate)&&cd(e,t)}function vg(){return null}var fd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xl(e){this._internalRoot=e}Ms.prototype.render=Xl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Es(e,t,null,null)},Ms.prototype.unmount=Xl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){Es(null,e,null,null)}),t[Ut]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qu();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Jt.length&&t!==0&&t<Jt[i].priority;i++);Jt.splice(i,0,e),i===0&&Zu(e)}};function Zl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dd(){}function wg(e,t,i,o,a){if(a){if(typeof o=="function"){var u=o;o=function(){var M=Cs(h);u.call(M)}}var h=ud(t,o,e,0,null,!1,!1,"",dd);return e._reactRootContainer=h,e[Ut]=h.current,Ur(e.nodeType===8?e.parentNode:e),An(),h}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var v=o;o=function(){var M=Cs(S);v.call(M)}}var S=Ql(e,0,!1,null,null,!1,!1,"",dd);return e._reactRootContainer=S,e[Ut]=S.current,Ur(e.nodeType===8?e.parentNode:e),An(function(){Es(t,S,i,o)}),S}function Rs(e,t,i,o,a){var u=i._reactRootContainer;if(u){var h=u;if(typeof a=="function"){var v=a;a=function(){var S=Cs(h);v.call(S)}}Es(t,h,e,a)}else h=wg(i,t,e,a,o);return Cs(h)}Ku=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=Cr(t.pendingLanes);i!==0&&(So(t,i|1),ot(t,Ne()),(le&6)===0&&(ur=Ne()+500,sn()))}break;case 13:An(function(){var o=Kt(e,1);if(o!==null){var a=be();Dt(o,e,1,a)}}),Yl(e,1)}},xo=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var i=be();Dt(t,e,134217728,i)}Yl(e,134217728)}},Gu=function(e){if(e.tag===13){var t=fn(e),i=Kt(e,t);if(i!==null){var o=be();Dt(i,e,t,o)}Yl(e,t)}},Qu=function(){return he},Yu=function(e,t){var i=he;try{return he=e,t()}finally{he=i}},ho=function(e,t,i){switch(t){case"input":if(io(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var o=i[t];if(o!==e&&o.form===e.form){var a=Gi(o);if(!a)throw Error(s(90));vu(o),io(o,a)}}}break;case"textarea":ku(e,i);break;case"select":t=i.value,t!=null&&Bn(e,!!i.multiple,t,!1)}},Lu=Ul,Nu=An;var Sg={usingClientEntryPoint:!1,Events:[$r,Zn,Gi,Au,Vu,Ul]},ii={findFiberByHostInstance:Tn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xg={bundleType:ii.bundleType,version:ii.version,rendererPackageName:ii.rendererPackageName,rendererConfig:ii.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ou(e),e===null?null:e.stateNode},findFiberByHostInstance:ii.findFiberByHostInstance||vg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var As=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!As.isDisabled&&As.supportsFiber)try{Mi=As.inject(xg),Lt=As}catch{}}return lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sg,lt.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zl(t))throw Error(s(200));return gg(e,t,null,i)},lt.createRoot=function(e,t){if(!Zl(e))throw Error(s(299));var i=!1,o="",a=fd;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Ql(e,1,!1,null,null,i,!1,o,a),e[Ut]=t.current,Ur(e.nodeType===8?e.parentNode:e),new Xl(t)},lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Ou(t),e=e===null?null:e.stateNode,e},lt.flushSync=function(e){return An(e)},lt.hydrate=function(e,t,i){if(!Ds(t))throw Error(s(200));return Rs(null,e,t,!0,i)},lt.hydrateRoot=function(e,t,i){if(!Zl(e))throw Error(s(405));var o=i!=null&&i.hydratedSources||null,a=!1,u="",h=fd;if(i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),t=ud(t,null,e,1,i??null,a,!1,u,h),e[Ut]=t.current,Ur(e),o)for(e=0;e<o.length;e++)i=o[e],a=i._getVersion,a=a(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,a]:t.mutableSourceEagerHydrationData.push(i,a);return new Ms(t)},lt.render=function(e,t,i){if(!Ds(t))throw Error(s(200));return Rs(null,e,t,!1,i)},lt.unmountComponentAtNode=function(e){if(!Ds(e))throw Error(s(40));return e._reactRootContainer?(An(function(){Rs(null,null,e,!1,function(){e._reactRootContainer=null,e[Ut]=null})}),!0):!1},lt.unstable_batchedUpdates=Ul,lt.unstable_renderSubtreeIntoContainer=function(e,t,i,o){if(!Ds(i))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Rs(e,t,i,!1,o)},lt.version="18.3.1-next-f1338f8080-20240426",lt}var Sd;function Ag(){if(Sd)return bl.exports;Sd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),bl.exports=Rg(),bl.exports}var xd;function Vg(){if(xd)return Vs;xd=1;var n=Ag();return Vs.createRoot=n.createRoot,Vs.hydrateRoot=n.hydrateRoot,Vs}var Lg=Vg();const Ng=Fh(Lg),zh=J.createContext({});function _g(n){const r=J.useRef(null);return r.current===null&&(r.current=n()),r.current}const jg=typeof window<"u",Ig=jg?J.useLayoutEffect:J.useEffect,$a=J.createContext(null);function Ka(n,r){n.indexOf(r)===-1&&n.push(r)}function $s(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}const Bt=(n,r,s)=>s>r?r:s<n?n:s;let Ga=()=>{};const vn={},Bh=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Uh(n){return typeof n=="object"&&n!==null}const Wh=n=>/^0[^.\s]+$/u.test(n);function Hh(n){let r;return()=>(r===void 0&&(r=n()),r)}const xt=n=>n,Og=(n,r)=>s=>r(n(s)),gi=(...n)=>n.reduce(Og),hi=(n,r,s)=>{const l=r-n;return l===0?1:(s-n)/l};class Qa{constructor(){this.subscriptions=[]}add(r){return Ka(this.subscriptions,r),()=>$s(this.subscriptions,r)}notify(r,s,l){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](r,s,l);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(r,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ht=n=>n*1e3,St=n=>n/1e3;function $h(n,r){return r?n*(1e3/r):0}const Kh=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,Fg=1e-7,zg=12;function Bg(n,r,s,l,c){let d,f,p=0;do f=r+(s-r)/2,d=Kh(f,l,c)-n,d>0?s=f:r=f;while(Math.abs(d)>Fg&&++p<zg);return f}function vi(n,r,s,l){if(n===r&&s===l)return xt;const c=d=>Bg(d,0,1,n,s);return d=>d===0||d===1?d:Kh(c(d),r,l)}const Gh=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,Qh=n=>r=>1-n(1-r),Yh=vi(.33,1.53,.69,.99),Ya=Qh(Yh),Xh=Gh(Ya),Zh=n=>n>=1?1:(n*=2)<1?.5*Ya(n):.5*(2-Math.pow(2,-10*(n-1))),Xa=n=>1-Math.sin(Math.acos(n)),qh=Qh(Xa),Jh=Gh(Xa),Ug=vi(.42,0,1,1),Wg=vi(0,0,.58,1),bh=vi(.42,0,.58,1),Hg=n=>Array.isArray(n)&&typeof n[0]!="number",ep=n=>Array.isArray(n)&&typeof n[0]=="number",$g={linear:xt,easeIn:Ug,easeInOut:bh,easeOut:Wg,circIn:Xa,circInOut:Jh,circOut:qh,backIn:Ya,backInOut:Xh,backOut:Yh,anticipate:Zh},Kg=n=>typeof n=="string",Td=n=>{if(ep(n)){Ga(n.length===4);const[r,s,l,c]=n;return vi(r,s,l,c)}else if(Kg(n))return $g[n];return n},Ls=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Gg(n,r){let s=new Set,l=new Set,c=!1,d=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(g.schedule(y),n()),y(p)}const g={schedule:(y,w=!1,x=!1)=>{const D=x&&c?s:l;return w&&f.add(y),D.add(y),y},cancel:y=>{l.delete(y),f.delete(y)},process:y=>{if(p=y,c){d=!0;return}c=!0;const w=s;s=l,l=w,s.forEach(m),s.clear(),c=!1,d&&(d=!1,g.process(y))}};return g}const Qg=40;function tp(n,r){let s=!1,l=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=Ls.reduce((F,U)=>(F[U]=Gg(d),F),{}),{setup:p,read:m,resolveKeyframes:g,preUpdate:y,update:w,preRender:x,render:C,postRender:D}=f,A=()=>{const F=vn.useManualTiming,U=F?c.timestamp:performance.now();s=!1,F||(c.delta=l?1e3/60:Math.max(Math.min(U-c.timestamp,Qg),1)),c.timestamp=U,c.isProcessing=!0,p.process(c),m.process(c),g.process(c),y.process(c),w.process(c),x.process(c),C.process(c),D.process(c),c.isProcessing=!1,s&&r&&(l=!1,n(A))},R=()=>{s=!0,l=!0,c.isProcessing||n(A)};return{schedule:Ls.reduce((F,U)=>{const Z=f[U];return F[U]=(oe,fe=!1,te=!1)=>(s||R(),Z.schedule(oe,fe,te)),F},{}),cancel:F=>{for(let U=0;U<Ls.length;U++)f[Ls[U]].cancel(F)},state:c,steps:f}}const{schedule:me,cancel:wn,state:Ge,steps:na}=tp(typeof requestAnimationFrame<"u"?requestAnimationFrame:xt,!0);let Os;function Yg(){Os=void 0}const et={now:()=>(Os===void 0&&et.set(Ge.isProcessing||vn.useManualTiming?Ge.timestamp:performance.now()),Os),set:n=>{Os=n,queueMicrotask(Yg)}},np=n=>r=>typeof r=="string"&&r.startsWith(n),rp=np("--"),Xg=np("var(--"),Za=n=>Xg(n)?Zg.test(n.split("/*")[0].trim()):!1,Zg=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kd(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const gr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},pi={...gr,transform:n=>Bt(0,1,n)},Ns={...gr,default:1},ui=n=>Math.round(n*1e5)/1e5,qa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qg(n){return n==null}const Jg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ja=(n,r)=>s=>!!(typeof s=="string"&&Jg.test(s)&&s.startsWith(n)||r&&!qg(s)&&Object.prototype.hasOwnProperty.call(s,r)),ip=(n,r,s)=>l=>{if(typeof l!="string")return l;const[c,d,f,p]=l.match(qa);return{[n]:parseFloat(c),[r]:parseFloat(d),[s]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},bg=n=>Bt(0,255,n),ra={...gr,transform:n=>Math.round(bg(n))},In={test:Ja("rgb","red"),parse:ip("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:l=1})=>"rgba("+ra.transform(n)+", "+ra.transform(r)+", "+ra.transform(s)+", "+ui(pi.transform(l))+")"};function ev(n){let r="",s="",l="",c="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),l=n.substring(5,7),c=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),l=n.substring(3,4),c=n.substring(4,5),r+=r,s+=s,l+=l,c+=c),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(l,16),alpha:c?parseInt(c,16)/255:1}}const wa={test:Ja("#"),parse:ev,transform:In.transform},wi=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),mn=wi("deg"),zt=wi("%"),G=wi("px"),tv=wi("vh"),nv=wi("vw"),Pd={...zt,parse:n=>zt.parse(n)/100,transform:n=>zt.transform(n*100)},dr={test:Ja("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:l=1})=>"hsla("+Math.round(n)+", "+zt.transform(ui(r))+", "+zt.transform(ui(s))+", "+ui(pi.transform(l))+")"},Oe={test:n=>In.test(n)||wa.test(n)||dr.test(n),parse:n=>In.test(n)?In.parse(n):dr.test(n)?dr.parse(n):wa.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?In.transform(n):dr.transform(n),getAnimatableNone:n=>{const r=Oe.parse(n);return r.alpha=0,Oe.transform(r)}},rv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iv(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(qa))==null?void 0:r.length)||0)+(((s=n.match(rv))==null?void 0:s.length)||0)>0}const sp="number",op="color",sv="var",ov="var(",Ed="${}",lv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mr(n){const r=n.toString(),s=[],l={color:[],number:[],var:[]},c=[];let d=0;const p=r.replace(lv,m=>(Oe.test(m)?(l.color.push(d),c.push(op),s.push(Oe.parse(m))):m.startsWith(ov)?(l.var.push(d),c.push(sv),s.push(m)):(l.number.push(d),c.push(sp),s.push(parseFloat(m))),++d,Ed)).split(Ed);return{values:s,split:p,indexes:l,types:c}}function av(n){return mr(n).values}function lp({split:n,types:r}){const s=n.length;return l=>{let c="";for(let d=0;d<s;d++)if(c+=n[d],l[d]!==void 0){const f=r[d];f===sp?c+=ui(l[d]):f===op?c+=Oe.transform(l[d]):c+=l[d]}return c}}function uv(n){return lp(mr(n))}const cv=n=>typeof n=="number"?0:Oe.test(n)?Oe.getAnimatableNone(n):n,fv=(n,r)=>typeof n=="number"?r!=null&&r.trim().endsWith("/")?n:0:cv(n);function dv(n){const r=mr(n);return lp(r)(r.values.map((l,c)=>fv(l,r.split[c])))}const Vt={test:iv,parse:av,createTransformer:uv,getAnimatableNone:dv};function ia(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function hv({hue:n,saturation:r,lightness:s,alpha:l}){n/=360,r/=100,s/=100;let c=0,d=0,f=0;if(!r)c=d=f=s;else{const p=s<.5?s*(1+r):s+r-s*r,m=2*s-p;c=ia(m,p,n+1/3),d=ia(m,p,n),f=ia(m,p,n-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:l}}function Ks(n,r){return s=>s>0?r:n}const ke=(n,r,s)=>n+(r-n)*s,sa=(n,r,s)=>{const l=n*n,c=s*(r*r-l)+l;return c<0?0:Math.sqrt(c)},pv=[wa,In,dr],mv=n=>pv.find(r=>r.test(n));function Cd(n){const r=mv(n);if(!r)return!1;let s=r.parse(n);return r===dr&&(s=hv(s)),s}const Md=(n,r)=>{const s=Cd(n),l=Cd(r);if(!s||!l)return Ks(n,r);const c={...s};return d=>(c.red=sa(s.red,l.red,d),c.green=sa(s.green,l.green,d),c.blue=sa(s.blue,l.blue,d),c.alpha=ke(s.alpha,l.alpha,d),In.transform(c))},Sa=new Set(["none","hidden"]);function yv(n,r){return Sa.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function gv(n,r){return s=>ke(n,r,s)}function ba(n){return typeof n=="number"?gv:typeof n=="string"?Za(n)?Ks:Oe.test(n)?Md:Sv:Array.isArray(n)?ap:typeof n=="object"?Oe.test(n)?Md:vv:Ks}function ap(n,r){const s=[...n],l=s.length,c=n.map((d,f)=>ba(d)(d,r[f]));return d=>{for(let f=0;f<l;f++)s[f]=c[f](d);return s}}function vv(n,r){const s={...n,...r},l={};for(const c in s)n[c]!==void 0&&r[c]!==void 0&&(l[c]=ba(n[c])(n[c],r[c]));return c=>{for(const d in l)s[d]=l[d](c);return s}}function wv(n,r){const s=[],l={color:0,var:0,number:0};for(let c=0;c<r.values.length;c++){const d=r.types[c],f=n.indexes[d][l[d]],p=n.values[f]??0;s[c]=p,l[d]++}return s}const Sv=(n,r)=>{const s=Vt.createTransformer(r),l=mr(n),c=mr(r);return l.indexes.var.length===c.indexes.var.length&&l.indexes.color.length===c.indexes.color.length&&l.indexes.number.length>=c.indexes.number.length?Sa.has(n)&&!c.values.length||Sa.has(r)&&!l.values.length?yv(n,r):gi(ap(wv(l,c),c.values),s):Ks(n,r)};function up(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?ke(n,r,s):ba(n)(n,r)}const xv=n=>{const r=({timestamp:s})=>n(s);return{start:(s=!0)=>me.update(r,s),stop:()=>wn(r),now:()=>Ge.isProcessing?Ge.timestamp:et.now()}},cp=(n,r,s=10)=>{let l="";const c=Math.max(Math.round(r/s),2);for(let d=0;d<c;d++)l+=Math.round(n(d/(c-1))*1e4)/1e4+", ";return`linear(${l.substring(0,l.length-2)})`},Gs=2e4;function eu(n){let r=0;const s=50;let l=n.next(r);for(;!l.done&&r<Gs;)r+=s,l=n.next(r);return r>=Gs?1/0:r}function Tv(n,r=100,s){const l=s({...n,keyframes:[0,r]}),c=Math.min(eu(l),Gs);return{type:"keyframes",ease:d=>l.next(c*d).value/r,duration:St(c)}}const Ve={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function xa(n,r){return n*Math.sqrt(1-r*r)}const kv=12;function Pv(n,r,s){let l=s;for(let c=1;c<kv;c++)l=l-n(l)/r(l);return l}const oa=.001;function Ev({duration:n=Ve.duration,bounce:r=Ve.bounce,velocity:s=Ve.velocity,mass:l=Ve.mass}){let c,d,f=1-r;f=Bt(Ve.minDamping,Ve.maxDamping,f),n=Bt(Ve.minDuration,Ve.maxDuration,St(n)),f<1?(c=g=>{const y=g*f,w=y*n,x=y-s,C=xa(g,f),D=Math.exp(-w);return oa-x/C*D},d=g=>{const w=g*f*n,x=w*s+s,C=Math.pow(f,2)*Math.pow(g,2)*n,D=Math.exp(-w),A=xa(Math.pow(g,2),f);return(-c(g)+oa>0?-1:1)*((x-C)*D)/A}):(c=g=>{const y=Math.exp(-g*n),w=(g-s)*n+1;return-oa+y*w},d=g=>{const y=Math.exp(-g*n),w=(s-g)*(n*n);return y*w});const p=5/n,m=Pv(c,d,p);if(n=ht(n),isNaN(m))return{stiffness:Ve.stiffness,damping:Ve.damping,duration:n};{const g=Math.pow(m,2)*l;return{stiffness:g,damping:f*2*Math.sqrt(l*g),duration:n}}}const Cv=["duration","bounce"],Mv=["stiffness","damping","mass"];function Dd(n,r){return r.some(s=>n[s]!==void 0)}function Dv(n){let r={velocity:Ve.velocity,stiffness:Ve.stiffness,damping:Ve.damping,mass:Ve.mass,isResolvedFromDuration:!1,...n};if(!Dd(n,Mv)&&Dd(n,Cv))if(r.velocity=0,n.visualDuration){const s=n.visualDuration,l=2*Math.PI/(s*1.2),c=l*l,d=2*Bt(.05,1,1-(n.bounce||0))*Math.sqrt(c);r={...r,mass:Ve.mass,stiffness:c,damping:d}}else{const s=Ev({...n,velocity:0});r={...r,...s,mass:Ve.mass},r.isResolvedFromDuration=!0}return r}function Qs(n=Ve.visualDuration,r=Ve.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:l,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:w,velocity:x,isResolvedFromDuration:C}=Dv({...s,velocity:-St(s.velocity||0)}),D=x||0,A=g/(2*Math.sqrt(m*y)),R=f-d,O=St(Math.sqrt(m/y)),z=Math.abs(R)<5;l||(l=z?Ve.restSpeed.granular:Ve.restSpeed.default),c||(c=z?Ve.restDelta.granular:Ve.restDelta.default);let F,U,Z,oe,fe,te;if(A<1)Z=xa(O,A),oe=(D+A*O*R)/Z,F=q=>{const pe=Math.exp(-A*O*q);return f-pe*(oe*Math.sin(Z*q)+R*Math.cos(Z*q))},fe=A*O*oe+R*Z,te=A*O*R-oe*Z,U=q=>Math.exp(-A*O*q)*(fe*Math.sin(Z*q)+te*Math.cos(Z*q));else if(A===1){F=pe=>f-Math.exp(-O*pe)*(R+(D+O*R)*pe);const q=D+O*R;U=pe=>Math.exp(-O*pe)*(O*q*pe-D)}else{const q=O*Math.sqrt(A*A-1);F=Re=>{const je=Math.exp(-A*O*Re),Se=Math.min(q*Re,300);return f-je*((D+A*O*R)*Math.sinh(Se)+q*R*Math.cosh(Se))/q};const pe=(D+A*O*R)/q,we=A*O*pe-R*q,Le=A*O*R-pe*q;U=Re=>{const je=Math.exp(-A*O*Re),Se=Math.min(q*Re,300);return je*(we*Math.sinh(Se)+Le*Math.cosh(Se))}}const ye={calculatedDuration:C&&w||null,velocity:q=>ht(U(q)),next:q=>{if(!C&&A<1){const we=Math.exp(-A*O*q),Le=Math.sin(Z*q),Re=Math.cos(Z*q),je=f-we*(oe*Le+R*Re),Se=ht(we*(fe*Le+te*Re));return p.done=Math.abs(Se)<=l&&Math.abs(f-je)<=c,p.value=p.done?f:je,p}const pe=F(q);if(C)p.done=q>=w;else{const we=ht(U(q));p.done=Math.abs(we)<=l&&Math.abs(f-pe)<=c}return p.value=p.done?f:pe,p},toString:()=>{const q=Math.min(eu(ye),Gs),pe=cp(we=>ye.next(q*we).value,q,30);return q+"ms "+pe},toTransition:()=>{}};return ye}Qs.applyToOptions=n=>{const r=Tv(n,100,Qs);return n.ease=r.ease,n.duration=ht(r.duration),n.type="keyframes",n};const Rv=5;function fp(n,r,s){const l=Math.max(r-Rv,0);return $h(s-n(l),r-l)}function Ta({keyframes:n,velocity:r=0,power:s=.8,timeConstant:l=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:m,restDelta:g=.5,restSpeed:y}){const w=n[0],x={done:!1,value:w},C=te=>p!==void 0&&te<p||m!==void 0&&te>m,D=te=>p===void 0?m:m===void 0||Math.abs(p-te)<Math.abs(m-te)?p:m;let A=s*r;const R=w+A,O=f===void 0?R:f(R);O!==R&&(A=O-w);const z=te=>-A*Math.exp(-te/l),F=te=>O+z(te),U=te=>{const ye=z(te),q=F(te);x.done=Math.abs(ye)<=g,x.value=x.done?O:q};let Z,oe;const fe=te=>{C(x.value)&&(Z=te,oe=Qs({keyframes:[x.value,D(x.value)],velocity:fp(F,te,x.value),damping:c,stiffness:d,restDelta:g,restSpeed:y}))};return fe(0),{calculatedDuration:null,next:te=>{let ye=!1;return!oe&&Z===void 0&&(ye=!0,U(te),fe(te)),Z!==void 0&&te>=Z?oe.next(te-Z):(!ye&&U(te),x)}}}function Av(n,r,s){const l=[],c=s||vn.mix||up,d=n.length-1;for(let f=0;f<d;f++){let p=c(n[f],n[f+1]);if(r){const m=Array.isArray(r)?r[f]||xt:r;p=gi(m,p)}l.push(p)}return l}function Vv(n,r,{clamp:s=!0,ease:l,mixer:c}={}){const d=n.length;if(Ga(d===r.length),d===1)return()=>r[0];if(d===2&&r[0]===r[1])return()=>r[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),r=[...r].reverse());const p=Av(r,l,c),m=p.length,g=y=>{if(f&&y<n[0])return r[0];let w=0;if(m>1)for(;w<n.length-2&&!(y<n[w+1]);w++);const x=hi(n[w],n[w+1],y);return p[w](x)};return s?y=>g(Bt(n[0],n[d-1],y)):g}function Lv(n,r){const s=n[n.length-1];for(let l=1;l<=r;l++){const c=hi(0,r,l);n.push(ke(s,1,c))}}function Nv(n){const r=[0];return Lv(r,n.length-1),r}function _v(n,r){return n.map(s=>s*r)}function jv(n,r){return n.map(()=>r||bh).splice(0,n.length-1)}function ci({duration:n=300,keyframes:r,times:s,ease:l="easeInOut"}){const c=Hg(l)?l.map(Td):Td(l),d={done:!1,value:r[0]},f=_v(s&&s.length===r.length?s:Nv(r),n),p=Vv(f,r,{ease:Array.isArray(c)?c:jv(r,c)});return{calculatedDuration:n,next:m=>(d.value=p(m),d.done=m>=n,d)}}const Iv=n=>n!==null;function bs(n,{repeat:r,repeatType:s="loop"},l,c=1){const d=n.filter(Iv),p=c<0||r&&s!=="loop"&&r%2===1?0:d.length-1;return!p||l===void 0?d[p]:l}const Ov={decay:Ta,inertia:Ta,tween:ci,keyframes:ci,spring:Qs};function dp(n){typeof n.type=="string"&&(n.type=Ov[n.type])}class tu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,s){return this.finished.then(r,s)}}const Fv=n=>n/100;class Ys extends tu{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var l,c;const{motionValue:s}=this.options;s&&s.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(l=this.options).onStop)==null||c.call(l))},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;dp(r);const{type:s=ci,repeat:l=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=r;let{keyframes:p}=r;const m=s||ci;m!==ci&&typeof p[0]!="number"&&(this.mixKeyframes=gi(Fv,up(p[0],p[1])),p=[0,100]);const g=m({...r,keyframes:p});d==="mirror"&&(this.mirroredGenerator=m({...r,keyframes:[...p].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=eu(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(l+1)-c,this.generator=g}updateTime(r){const s=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(r,s=!1){const{generator:l,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:m}=this;if(this.startTime===null)return l.next(0);const{delay:g=0,keyframes:y,repeat:w,repeatType:x,repeatDelay:C,type:D,onUpdate:A,finalKeyframe:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-c/this.speed,this.startTime)),s?this.currentTime=r:this.updateTime(r);const O=this.currentTime-g*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?O<0:O>c;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let F=this.currentTime,U=l;if(w){const te=Math.min(this.currentTime,c)/p;let ye=Math.floor(te),q=te%1;!q&&te>=1&&(q=1),q===1&&ye--,ye=Math.min(ye,w+1),!!(ye%2)&&(x==="reverse"?(q=1-q,C&&(q-=C/p)):x==="mirror"&&(U=f)),F=Bt(0,1,q)*p}let Z;z?(this.delayState.value=y[0],Z=this.delayState):Z=U.next(F),d&&!z&&(Z.value=d(Z.value));let{done:oe}=Z;!z&&m!==null&&(oe=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const fe=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&oe);return fe&&D!==Ta&&(Z.value=bs(y,this.options,R,this.speed)),A&&A(Z.value),fe&&this.finish(),Z}then(r,s){return this.finished.then(r,s)}get duration(){return St(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+St(r)}get time(){return St(this.currentTime)}set time(r){r=ht(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=r,this.tick(r))}getGeneratorVelocity(){const r=this.currentTime;if(r<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(r);const s=this.generator.next(r).value;return fp(l=>this.generator.next(l).value,r,s)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;s&&this.driver&&this.updateTime(et.now()),this.playbackSpeed=r,s&&this.driver&&(this.time=St(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:r=xv,startTime:s}=this.options;this.driver||(this.driver=r(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=s??l),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(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var r,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(r=this.options).onComplete)==null||s.call(r)}cancel(){var r,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(r=this.options).onCancel)==null||s.call(r)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),r.observe(this)}}function zv(n){for(let r=1;r<n.length;r++)n[r]??(n[r]=n[r-1])}const On=n=>n*180/Math.PI,ka=n=>{const r=On(Math.atan2(n[1],n[0]));return Pa(r)},Bv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:ka,rotateZ:ka,skewX:n=>On(Math.atan(n[1])),skewY:n=>On(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Pa=n=>(n=n%360,n<0&&(n+=360),n),Rd=ka,Ad=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Vd=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),Uv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ad,scaleY:Vd,scale:n=>(Ad(n)+Vd(n))/2,rotateX:n=>Pa(On(Math.atan2(n[6],n[5]))),rotateY:n=>Pa(On(Math.atan2(-n[2],n[0]))),rotateZ:Rd,rotate:Rd,skewX:n=>On(Math.atan(n[4])),skewY:n=>On(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Ea(n){return n.includes("scale")?1:0}function Ca(n,r){if(!n||n==="none")return Ea(r);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let l,c;if(s)l=Uv,c=s;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);l=Bv,c=p}if(!c)return Ea(r);const d=l[r],f=c[1].split(",").map(Hv);return typeof d=="function"?d(f):f[d]}const Wv=(n,r)=>{const{transform:s="none"}=getComputedStyle(n);return Ca(s,r)};function Hv(n){return parseFloat(n.trim())}const vr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wr=new Set(vr),Ld=n=>n===gr||n===G,$v=new Set(["x","y","z"]),Kv=vr.filter(n=>!$v.has(n));function Gv(n){const r=[];return Kv.forEach(s=>{const l=n.getValue(s);l!==void 0&&(r.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),r}const gn={width:({x:n},{paddingLeft:r="0",paddingRight:s="0",boxSizing:l})=>{const c=n.max-n.min;return l==="border-box"?c:c-parseFloat(r)-parseFloat(s)},height:({y:n},{paddingTop:r="0",paddingBottom:s="0",boxSizing:l})=>{const c=n.max-n.min;return l==="border-box"?c:c-parseFloat(r)-parseFloat(s)},top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:(n,{transform:r})=>Ca(r,"x"),y:(n,{transform:r})=>Ca(r,"y")};gn.translateX=gn.x;gn.translateY=gn.y;const Fn=new Set;let Ma=!1,Da=!1,Ra=!1;function hp(){if(Da){const n=Array.from(Fn).filter(l=>l.needsMeasurement),r=new Set(n.map(l=>l.element)),s=new Map;r.forEach(l=>{const c=Gv(l);c.length&&(s.set(l,c),l.render())}),n.forEach(l=>l.measureInitialState()),r.forEach(l=>{l.render();const c=s.get(l);c&&c.forEach(([d,f])=>{var p;(p=l.getValue(d))==null||p.set(f)})}),n.forEach(l=>l.measureEndState()),n.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}Da=!1,Ma=!1,Fn.forEach(n=>n.complete(Ra)),Fn.clear()}function pp(){Fn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Da=!0)})}function Qv(){Ra=!0,pp(),hp(),Ra=!1}class nu{constructor(r,s,l,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=l,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Fn.add(this),Ma||(Ma=!0,me.read(pp),me.resolveKeyframes(hp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:l,motionValue:c}=this;if(r[0]===null){const d=c==null?void 0:c.get(),f=r[r.length-1];if(d!==void 0)r[0]=d;else if(l&&s){const p=l.readValue(s,f);p!=null&&(r[0]=p)}r[0]===void 0&&(r[0]=f),c&&d===void 0&&c.set(r[0])}zv(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Fn.delete(this)}cancel(){this.state==="scheduled"&&(Fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Yv=n=>n.startsWith("--");function mp(n,r,s){Yv(r)?n.style.setProperty(r,s):n.style[r]=s}const Xv={};function yp(n,r){const s=Hh(n);return()=>Xv[r]??s()}const Zv=yp(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),gp=yp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ai=([n,r,s,l])=>`cubic-bezier(${n}, ${r}, ${s}, ${l})`,Nd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ai([0,.65,.55,1]),circOut:ai([.55,0,1,.45]),backIn:ai([.31,.01,.66,-.59]),backOut:ai([.33,1.53,.69,.99])};function vp(n,r){if(n)return typeof n=="function"?gp()?cp(n,r):"ease-out":ep(n)?ai(n):Array.isArray(n)?n.map(s=>vp(s,r)||Nd.easeOut):Nd[n]}function qv(n,r,s,{delay:l=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeOut",times:m}={},g=void 0){const y={[r]:s};m&&(y.offset=m);const w=vp(p,c);Array.isArray(w)&&(y.easing=w);const x={delay:l,duration:c,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return g&&(x.pseudoElement=g),n.animate(y,x)}function wp(n){return typeof n=="function"&&"applyToOptions"in n}function Jv({type:n,...r}){return wp(n)&&gp()?n.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class Sp extends tu{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!r)return;const{element:s,name:l,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:p,onComplete:m}=r;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=r,Ga(typeof r.type!="string");const g=Jv(r);this.animation=qv(s,l,c,g,d),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=bs(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(y),mp(s,l,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var r,s;(s=(r=this.animation).finish)==null||s.call(r)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,l,c;const r=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(r!=null&&r.isConnected)&&((c=(l=this.animation).commitStyles)==null||c.call(l))}get duration(){var s,l;const r=((l=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:l.call(s).duration)||0;return St(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+St(r)}get time(){return St(Number(this.animation.currentTime)||0)}set time(r){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ht(r),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(r){this.manualStartTime=this.animation.startTime=r}attachTimeline({timeline:r,rangeStart:s,rangeEnd:l,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,r&&Zv()?(this.animation.timeline=r,s&&(this.animation.rangeStart=s),l&&(this.animation.rangeEnd=l),xt):c(this)}}const xp={anticipate:Zh,backInOut:Xh,circInOut:Jh};function bv(n){return n in xp}function e0(n){typeof n.ease=="string"&&bv(n.ease)&&(n.ease=xp[n.ease])}const la=10;class t0 extends Sp{constructor(r){e0(r),dp(r),super(r),r.startTime!==void 0&&r.autoplay!==!1&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:s,onUpdate:l,onComplete:c,element:d,...f}=this.options;if(!s)return;if(r!==void 0){s.set(r);return}const p=new Ys({...f,autoplay:!1}),m=Math.max(la,et.now()-this.startTime),g=Bt(0,la,m-la),y=p.sample(m).value,{name:w}=this.options;d&&w&&mp(d,w,y),s.setWithVelocity(p.sample(Math.max(0,m-g)).value,y,g),p.stop()}}const _d=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Vt.test(n)||n==="0")&&!n.startsWith("url("));function n0(n){const r=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==r)return!0}function r0(n,r,s,l){const c=n[0];if(c===null)return!1;if(r==="display"||r==="visibility")return!0;const d=n[n.length-1],f=_d(c,r),p=_d(d,r);return!f||!p?!1:n0(n)||(s==="spring"||wp(s))&&l}function Aa(n){n.duration=0,n.type="keyframes"}const Tp=new Set(["opacity","clipPath","filter","transform"]),i0=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function s0(n){for(let r=0;r<n.length;r++)if(typeof n[r]=="string"&&i0.test(n[r]))return!0;return!1}const o0=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),l0=Hh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function a0(n){var w;const{motionValue:r,name:s,repeatDelay:l,repeatType:c,damping:d,type:f,keyframes:p}=n;if(!(((w=r==null?void 0:r.owner)==null?void 0:w.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=r.owner.getProps();return l0()&&s&&(Tp.has(s)||o0.has(s)&&s0(p))&&(s!=="transform"||!y)&&!g&&!l&&c!=="mirror"&&d!==0&&f!=="inertia"}const u0=40;class c0 extends tu{constructor({autoplay:r=!0,delay:s=0,type:l="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:p,name:m,motionValue:g,element:y,...w}){var D;super(),this.stop=()=>{var A,R;this._animation&&(this._animation.stop(),(A=this.stopTimeline)==null||A.call(this)),(R=this.keyframeResolver)==null||R.cancel()},this.createdAt=et.now();const x={autoplay:r,delay:s,type:l,repeat:c,repeatDelay:d,repeatType:f,name:m,motionValue:g,element:y,...w},C=(y==null?void 0:y.KeyframeResolver)||nu;this.keyframeResolver=new C(p,(A,R,O)=>this.onKeyframesResolved(A,R,x,!O),m,g,y),(D=this.keyframeResolver)==null||D.scheduleResolve()}onKeyframesResolved(r,s,l,c){var O,z;this.keyframeResolver=void 0;const{name:d,type:f,velocity:p,delay:m,isHandoff:g,onUpdate:y}=l;this.resolvedAt=et.now();let w=!0;r0(r,d,f,p)||(w=!1,(vn.instantAnimations||!m)&&(y==null||y(bs(r,l,s))),r[0]=r[r.length-1],Aa(l),l.repeat=0);const C={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>u0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...l,keyframes:r},D=w&&!g&&a0(C),A=(z=(O=C.motionValue)==null?void 0:O.owner)==null?void 0:z.current;let R;if(D)try{R=new t0({...C,element:A})}catch{R=new Ys(C)}else R=new Ys(C);R.finished.then(()=>{this.notifyFinished()}).catch(xt),this.pendingTimeline&&(this.stopTimeline=R.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=R}get finished(){return this._animation?this.animation.finished:this._finished}then(r,s){return this.finished.finally(r).then(()=>{})}get animation(){var r;return this._animation||((r=this.keyframeResolver)==null||r.resume(),Qv()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var r;this._animation&&this.animation.cancel(),(r=this.keyframeResolver)==null||r.cancel()}}function kp(n,r,s,l=0,c=1){const d=Array.from(n).sort((g,y)=>g.sortNodePosition(y)).indexOf(r),f=n.size,p=(f-1)*l;return typeof s=="function"?s(d,f):c===1?d*l:p-d*l}const f0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function d0(n){const r=f0.exec(n);if(!r)return[,];const[,s,l,c]=r;return[`--${s??l}`,c]}function Pp(n,r,s=1){const[l,c]=d0(n);if(!l)return;const d=window.getComputedStyle(r).getPropertyValue(l);if(d){const f=d.trim();return Bh(f)?parseFloat(f):f}return Za(c)?Pp(c,r,s+1):c}const h0={type:"spring",stiffness:500,damping:25,restSpeed:10},p0=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),m0={type:"keyframes",duration:.8},y0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},g0=(n,{keyframes:r})=>r.length>2?m0:wr.has(n)?n.startsWith("scale")?p0(r[1]):h0:y0;function Ep(n,r){if(n!=null&&n.inherit&&r){const{inherit:s,...l}=n;return{...r,...l}}return n}function ru(n,r){const s=(n==null?void 0:n[r])??(n==null?void 0:n.default)??n;return s!==n?Ep(s,n):s}const v0=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function w0(n){for(const r in n)if(!v0.has(r))return!0;return!1}const iu=(n,r,s,l={},c,d)=>f=>{const p=ru(l,n)||{},m=p.delay||l.delay||0;let{elapsed:g=0}=l;g=g-ht(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...p,delay:-g,onUpdate:x=>{r.set(x),p.onUpdate&&p.onUpdate(x)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:r,element:d?void 0:c};w0(p)||Object.assign(y,g0(n,y)),y.duration&&(y.duration=ht(y.duration)),y.repeatDelay&&(y.repeatDelay=ht(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let w=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Aa(y),y.delay===0&&(w=!0)),(vn.instantAnimations||vn.skipAnimations||c!=null&&c.shouldSkipAnimations)&&(w=!0,Aa(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,w&&!d&&r.get()!==void 0){const x=bs(y.keyframes,p);if(x!==void 0){me.update(()=>{y.onUpdate(x),y.onComplete()});return}}return p.isSync?new Ys(y):new c0(y)};function jd(n){const r=[{},{}];return n==null||n.values.forEach((s,l)=>{r[0][l]=s.get(),r[1][l]=s.getVelocity()}),r}function su(n,r,s,l){if(typeof r=="function"){const[c,d]=jd(l);r=r(s!==void 0?s:n.custom,c,d)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[c,d]=jd(l);r=r(s!==void 0?s:n.custom,c,d)}return r}function zn(n,r,s){const l=n.getProps();return su(l,r,s!==void 0?s:l.custom,n)}const Cp=new Set(["width","height","top","left","right","bottom",...vr]),Id=30,S0=n=>!isNaN(parseFloat(n));class x0{constructor(r,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=l=>{var d;const c=et.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=et.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=S0(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new Qa);const l=this.events[r].add(s);return r==="change"?()=>{l(),me.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-l}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var r;(r=this.events.change)==null||r.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>Id)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Id);return $h(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var r,s;(r=this.dependents)==null||r.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yr(n,r){return new x0(n,r)}const Va=n=>Array.isArray(n);function T0(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,yr(s))}function k0(n){return Va(n)?n[n.length-1]||0:n}function P0(n,r){const s=zn(n,r);let{transitionEnd:l={},transition:c={},...d}=s||{};d={...d,...l};for(const f in d){const p=k0(d[f]);T0(n,f,p)}}const Qe=n=>!!(n&&n.getVelocity);function E0(n){return!!(Qe(n)&&n.add)}function La(n,r){const s=n.getValue("willChange");if(E0(s))return s.add(r);if(!s&&vn.WillChange){const l=new vn.WillChange("auto");n.addValue("willChange",l),l.add(r)}}function ou(n){return n.replace(/([A-Z])/g,r=>`-${r.toLowerCase()}`)}const C0="framerAppearId",Mp="data-"+ou(C0);function Dp(n){return n.props[Mp]}function M0({protectedKeys:n,needsAnimating:r},s){const l=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,l}function Rp(n,r,{delay:s=0,transitionOverride:l,type:c}={}){let{transition:d,transitionEnd:f,...p}=r;const m=n.getDefaultTransition();d=d?Ep(d,m):m;const g=d==null?void 0:d.reduceMotion;l&&(d=l);const y=[],w=c&&n.animationState&&n.animationState.getState()[c];for(const x in p){const C=n.getValue(x,n.latestValues[x]??null),D=p[x];if(D===void 0||w&&M0(w,x))continue;const A={delay:s,...ru(d||{},x)},R=C.get();if(R!==void 0&&!C.isAnimating()&&!Array.isArray(D)&&D===R&&!A.velocity){me.update(()=>C.set(D));continue}let O=!1;if(window.MotionHandoffAnimation){const U=Dp(n);if(U){const Z=window.MotionHandoffAnimation(U,x,me);Z!==null&&(A.startTime=Z,O=!0)}}La(n,x);const z=g??n.shouldReduceMotion;C.start(iu(x,C,D,z&&Cp.has(x)?{type:!1}:A,n,O));const F=C.animation;F&&y.push(F)}if(f){const x=()=>me.update(()=>{f&&P0(n,f)});y.length?Promise.all(y).then(x):x()}return y}function Na(n,r,s={}){var m;const l=zn(n,r,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:c=n.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(c=s.transitionOverride);const d=l?()=>Promise.all(Rp(n,l,s)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:w,staggerDirection:x}=c;return D0(n,r,g,y,w,x,s)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,y]=p==="beforeChildren"?[d,f]:[f,d];return g().then(()=>y())}else return Promise.all([d(),f(s.delay)])}function D0(n,r,s=0,l=0,c=0,d=1,f){const p=[];for(const m of n.variantChildren)m.notify("AnimationStart",r),p.push(Na(m,r,{...f,delay:s+(typeof l=="function"?0:l)+kp(n.variantChildren,m,l,c,d)}).then(()=>m.notify("AnimationComplete",r)));return Promise.all(p)}function R0(n,r,s={}){n.notify("AnimationStart",r);let l;if(Array.isArray(r)){const c=r.map(d=>Na(n,d,s));l=Promise.all(c)}else if(typeof r=="string")l=Na(n,r,s);else{const c=typeof r=="function"?zn(n,r,s.custom):r;l=Promise.all(Rp(n,c,s))}return l.then(()=>{n.notify("AnimationComplete",r)})}const A0={test:n=>n==="auto",parse:n=>n},Ap=n=>r=>r.test(n),Vp=[gr,G,zt,mn,nv,tv,A0],Od=n=>Vp.find(Ap(n));function V0(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Wh(n):!0}const L0=new Set(["brightness","contrast","saturate","opacity"]);function N0(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[l]=s.match(qa)||[];if(!l)return n;const c=s.replace(l,"");let d=L0.has(r)?1:0;return l!==s&&(d*=100),r+"("+d+c+")"}const _0=/\b([a-z-]*)\(.*?\)/gu,_a={...Vt,getAnimatableNone:n=>{const r=n.match(_0);return r?r.map(N0).join(" "):n}},ja={...Vt,getAnimatableNone:n=>{const r=Vt.parse(n);return Vt.createTransformer(n)(r.map(l=>typeof l=="number"?0:typeof l=="object"?{...l,alpha:1}:l))}},Fd={...gr,transform:Math.round},j0={rotate:mn,rotateX:mn,rotateY:mn,rotateZ:mn,scale:Ns,scaleX:Ns,scaleY:Ns,scaleZ:Ns,skew:mn,skewX:mn,skewY:mn,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:pi,originX:Pd,originY:Pd,originZ:G},lu={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,...j0,zIndex:Fd,fillOpacity:pi,strokeOpacity:pi,numOctaves:Fd},I0={...lu,color:Oe,backgroundColor:Oe,outlineColor:Oe,fill:Oe,stroke:Oe,borderColor:Oe,borderTopColor:Oe,borderRightColor:Oe,borderBottomColor:Oe,borderLeftColor:Oe,filter:_a,WebkitFilter:_a,mask:ja,WebkitMask:ja},Lp=n=>I0[n],O0=new Set([_a,ja]);function Np(n,r){let s=Lp(n);return O0.has(s)||(s=Vt),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const F0=new Set(["auto","none","0"]);function z0(n,r,s){let l=0,c;for(;l<n.length&&!c;){const d=n[l];typeof d=="string"&&!F0.has(d)&&mr(d).values.length&&(c=n[l]),l++}if(c&&s)for(const d of r)n[d]=Np(s,c)}class B0 extends nu{constructor(r,s,l,c,d){super(r,s,l,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<r.length;y++){let w=r[y];if(typeof w=="string"&&(w=w.trim(),Za(w))){const x=Pp(w,s.current);x!==void 0&&(r[y]=x),y===r.length-1&&(this.finalKeyframe=w)}}if(this.resolveNoneKeyframes(),!Cp.has(l)||r.length!==2)return;const[c,d]=r,f=Od(c),p=Od(d),m=kd(c),g=kd(d);if(m!==g&&gn[l]){this.needsMeasurement=!0;return}if(f!==p)if(Ld(f)&&Ld(p))for(let y=0;y<r.length;y++){const w=r[y];typeof w=="string"&&(r[y]=parseFloat(w))}else gn[l]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:s}=this,l=[];for(let c=0;c<r.length;c++)(r[c]===null||V0(r[c]))&&l.push(c);l.length&&z0(r,l,s)}measureInitialState(){const{element:r,unresolvedKeyframes:s,name:l}=this;if(!r||!r.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gn[l](r.measureViewportBox(),window.getComputedStyle(r.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&r.getValue(l,c).jump(c,!1)}measureEndState(){var p;const{element:r,name:s,unresolvedKeyframes:l}=this;if(!r||!r.current)return;const c=r.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=l.length-1,f=l[d];l[d]=gn[s](r.measureViewportBox(),window.getComputedStyle(r.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([m,g])=>{r.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function _p(n,r,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let l=document;const c=(s==null?void 0:s[n])??l.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n).filter(l=>l!=null)}const jp=(n,r)=>r&&typeof n=="number"?r.transform(n):n;function U0(n){return Uh(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:au}=tp(queueMicrotask,!1),At={x:!1,y:!1};function Ip(){return At.x||At.y}function W0(n){return n==="x"||n==="y"?At[n]?null:(At[n]=!0,()=>{At[n]=!1}):At.x||At.y?null:(At.x=At.y=!0,()=>{At.x=At.y=!1})}function Op(n,r){const s=_p(n),l=new AbortController,c={passive:!0,...r,signal:l.signal};return[s,c,()=>l.abort()]}function H0(n){return!(n.pointerType==="touch"||Ip())}function $0(n,r,s={}){const[l,c,d]=Op(n,s);return l.forEach(f=>{let p=!1,m=!1,g;const y=()=>{f.removeEventListener("pointerleave",D)},w=R=>{g&&(g(R),g=void 0),y()},x=R=>{p=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),m&&(m=!1,w(R))},C=()=>{p=!0,window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",x,c)},D=R=>{if(R.pointerType!=="touch"){if(p){m=!0;return}w(R)}},A=R=>{if(!H0(R))return;m=!1;const O=r(f,R);typeof O=="function"&&(g=O,f.addEventListener("pointerleave",D,c))};f.addEventListener("pointerenter",A,c),f.addEventListener("pointerdown",C,c)}),d}const Fp=(n,r)=>r?n===r?!0:Fp(n,r.parentElement):!1,uu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,K0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G0(n){return K0.has(n.tagName)||n.isContentEditable===!0}const Q0=new Set(["INPUT","SELECT","TEXTAREA"]);function Y0(n){return Q0.has(n.tagName)||n.isContentEditable===!0}const Fs=new WeakSet;function zd(n){return r=>{r.key==="Enter"&&n(r)}}function aa(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const X0=(n,r)=>{const s=n.currentTarget;if(!s)return;const l=zd(()=>{if(Fs.has(s))return;aa(s,"down");const c=zd(()=>{aa(s,"up")}),d=()=>aa(s,"cancel");s.addEventListener("keyup",c,r),s.addEventListener("blur",d,r)});s.addEventListener("keydown",l,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),r)};function Bd(n){return uu(n)&&!Ip()}const Ud=new WeakSet;function Z0(n,r,s={}){const[l,c,d]=Op(n,s),f=p=>{const m=p.currentTarget;if(!Bd(p)||Ud.has(p))return;Fs.add(m),s.stopPropagation&&Ud.add(p);const g=r(m,p),y=(C,D)=>{window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",x),Fs.has(m)&&Fs.delete(m),Bd(C)&&typeof g=="function"&&g(C,{success:D})},w=C=>{y(C,m===window||m===document||s.useGlobalTarget||Fp(m,C.target))},x=C=>{y(C,!1)};window.addEventListener("pointerup",w,c),window.addEventListener("pointercancel",x,c)};return l.forEach(p=>{(s.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),U0(p)&&(p.addEventListener("focus",g=>X0(g,c)),!G0(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function cu(n){return Uh(n)&&"ownerSVGElement"in n}const zs=new WeakMap;let yn;const zp=(n,r,s)=>(l,c)=>c&&c[0]?c[0][n+"Size"]:cu(l)&&"getBBox"in l?l.getBBox()[r]:l[s],q0=zp("inline","width","offsetWidth"),J0=zp("block","height","offsetHeight");function b0({target:n,borderBoxSize:r}){var s;(s=zs.get(n))==null||s.forEach(l=>{l(n,{get width(){return q0(n,r)},get height(){return J0(n,r)}})})}function e1(n){n.forEach(b0)}function t1(){typeof ResizeObserver>"u"||(yn=new ResizeObserver(e1))}function n1(n,r){yn||t1();const s=_p(n);return s.forEach(l=>{let c=zs.get(l);c||(c=new Set,zs.set(l,c)),c.add(r),yn==null||yn.observe(l)}),()=>{s.forEach(l=>{const c=zs.get(l);c==null||c.delete(r),c!=null&&c.size||yn==null||yn.unobserve(l)})}}const Bs=new Set;let hr;function r1(){hr=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};Bs.forEach(r=>r(n))},window.addEventListener("resize",hr)}function i1(n){return Bs.add(n),hr||r1(),()=>{Bs.delete(n),!Bs.size&&typeof hr=="function"&&(window.removeEventListener("resize",hr),hr=void 0)}}function Wd(n,r){return typeof n=="function"?i1(n):n1(n,r)}function s1(n){return cu(n)&&n.tagName==="svg"}const o1=[...Vp,Oe,Vt],l1=n=>o1.find(Ap(n)),Hd=()=>({translate:0,scale:1,origin:0,originPoint:0}),pr=()=>({x:Hd(),y:Hd()}),$d=()=>({min:0,max:0}),Be=()=>({x:$d(),y:$d()}),a1=new WeakMap;function eo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function mi(n){return typeof n=="string"||Array.isArray(n)}const fu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],du=["initial",...fu];function to(n){return eo(n.animate)||du.some(r=>mi(n[r]))}function Bp(n){return!!(to(n)||n.variants)}function u1(n,r,s){for(const l in r){const c=r[l],d=s[l];if(Qe(c))n.addValue(l,c);else if(Qe(d))n.addValue(l,yr(c,{owner:n}));else if(d!==c)if(n.hasValue(l)){const f=n.getValue(l);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=n.getStaticValue(l);n.addValue(l,yr(f!==void 0?f:c,{owner:n}))}}for(const l in s)r[l]===void 0&&n.removeValue(l);return r}const Ia={current:null},Up={current:!1},c1=typeof window<"u";function f1(){if(Up.current=!0,!!c1)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>Ia.current=n.matches;n.addEventListener("change",r),r()}else Ia.current=!1}const Kd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xs={};function Wp(n){Xs=n}function d1(){return Xs}class h1{scrapeMotionValuesFromProps(r,s,l){return{}}constructor({parent:r,props:s,presenceContext:l,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:p},m={}){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=nu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=et.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,me.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=y,this.parent=r,this.props=s,this.presenceContext=l,this.depth=r?r.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=to(s),this.isVariantNode=Bp(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:w,...x}=this.scrapeMotionValuesFromProps(s,{},this);for(const C in x){const D=x[C];g[C]!==void 0&&Qe(D)&&D.set(g[C])}}mount(r){var s,l;if(this.hasBeenMounted)for(const c in this.initialValues)(s=this.values.get(c))==null||s.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=r,a1.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Up.current||f1(),this.shouldReduceMotion=Ia.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(l=this.parent)==null||l.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var r;this.projection&&this.projection.unmount(),wn(this.notifyUpdate),wn(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(r=this.parent)==null||r.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,s){if(this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)(),s.accelerate&&Tp.has(r)&&this.current instanceof HTMLElement){const{factory:f,keyframes:p,times:m,ease:g,duration:y}=s.accelerate,w=new Sp({element:this.current,name:r,keyframes:p,times:m,ease:g,duration:ht(y)}),x=f(w);this.valueSubscriptions.set(r,()=>{x(),w.cancel()});return}const l=wr.has(r);l&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[r]=f,this.props.onUpdate&&me.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Xs){const s=Xs[r];if(!s)continue;const{isEnabled:l,Feature:c}=s;if(!this.features[r]&&c&&l(this.props)&&(this.features[r]=new c(this)),this.features[r]){const d=this.features[r];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<Kd.length;l++){const c=Kd[l];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=r[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=u1(this,this.scrapeMotionValuesFromProps(r,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(r),()=>s.variantChildren.delete(r)}addValue(r,s){const l=this.values.get(r);s!==l&&(l&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let l=this.values.get(r);return l===void 0&&s!==void 0&&(l=yr(s===null?void 0:s,{owner:this}),this.addValue(r,l)),l}readValue(r,s){let l=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return l!=null&&(typeof l=="string"&&(Bh(l)||Wh(l))?l=parseFloat(l):!l1(l)&&Vt.test(s)&&(l=Np(r,s)),this.setBaseTarget(r,Qe(l)?l.get():l)),Qe(l)?l.get():l}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var d;const{initial:s}=this.props;let l;if(typeof s=="string"||typeof s=="object"){const f=su(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(l=f[r])}if(s&&l!==void 0)return l;const c=this.getBaseTargetFromProps(this.props,r);return c!==void 0&&!Qe(c)?c:this.initialValues[r]!==void 0&&l===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new Qa),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}scheduleRenderMicrotask(){au.render(this.render)}}class Hp extends h1{constructor(){super(...arguments),this.KeyframeResolver=B0}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){const l=r.style;return l?l[s]:void 0}removeValueFromRenderState(r,{vars:s,style:l}){delete s[r],delete l[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Qe(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class Sn{constructor(r){this.isMounted=!1,this.node=r}update(){}}function $p({top:n,left:r,right:s,bottom:l}){return{x:{min:r,max:s},y:{min:n,max:l}}}function p1({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function m1(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),l=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function ua(n){return n===void 0||n===1}function Oa({scale:n,scaleX:r,scaleY:s}){return!ua(n)||!ua(r)||!ua(s)}function jn(n){return Oa(n)||Kp(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Kp(n){return Gd(n.x)||Gd(n.y)}function Gd(n){return n&&n!=="0%"}function Zs(n,r,s){const l=n-s,c=r*l;return s+c}function Qd(n,r,s,l,c){return c!==void 0&&(n=Zs(n,c,l)),Zs(n,s,l)+r}function Fa(n,r=0,s=1,l,c){n.min=Qd(n.min,r,s,l,c),n.max=Qd(n.max,r,s,l,c)}function Gp(n,{x:r,y:s}){Fa(n.x,r.translate,r.scale,r.originPoint),Fa(n.y,s.translate,s.scale,s.originPoint)}const Yd=.999999999999,Xd=1.0000000000001;function y1(n,r,s,l=!1){var p;const c=s.length;if(!c)return;r.x=r.y=1;let d,f;for(let m=0;m<c;m++){d=s[m],f=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Ft(n.x,-d.scroll.offset.x),Ft(n.y,-d.scroll.offset.y)),f&&(r.x*=f.x.scale,r.y*=f.y.scale,Gp(n,f)),l&&jn(d.latestValues)&&Us(n,d.latestValues,(p=d.layout)==null?void 0:p.layoutBox))}r.x<Xd&&r.x>Yd&&(r.x=1),r.y<Xd&&r.y>Yd&&(r.y=1)}function Ft(n,r){n.min+=r,n.max+=r}function Zd(n,r,s,l,c=.5){const d=ke(n.min,n.max,c);Fa(n,r,s,d,l)}function qd(n,r){return typeof n=="string"?parseFloat(n)/100*(r.max-r.min):n}function Us(n,r,s){const l=s??n;Zd(n.x,qd(r.x,l.x),r.scaleX,r.scale,r.originX),Zd(n.y,qd(r.y,l.y),r.scaleY,r.scale,r.originY)}function Qp(n,r){return $p(m1(n.getBoundingClientRect(),r))}function g1(n,r,s){const l=Qp(n,s),{scroll:c}=r;return c&&(Ft(l.x,c.offset.x),Ft(l.y,c.offset.y)),l}const v1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w1=vr.length;function S1(n,r,s){let l="",c=!0;for(let d=0;d<w1;d++){const f=vr[d],p=n[f];if(p===void 0)continue;let m=!0;if(typeof p=="number")m=p===(f.startsWith("scale")?1:0);else{const g=parseFloat(p);m=f.startsWith("scale")?g===1:g===0}if(!m||s){const g=jp(p,lu[f]);if(!m){c=!1;const y=v1[f]||f;l+=`${y}(${g}) `}s&&(r[f]=g)}}return l=l.trim(),s?l=s(r,c?"":l):c&&(l="none"),l}function hu(n,r,s){const{style:l,vars:c,transformOrigin:d}=n;let f=!1,p=!1;for(const m in r){const g=r[m];if(wr.has(m)){f=!0;continue}else if(rp(m)){c[m]=g;continue}else{const y=jp(g,lu[m]);m.startsWith("origin")?(p=!0,d[m]=y):l[m]=y}}if(r.transform||(f||s?l.transform=S1(r,n.transform,s):l.transform&&(l.transform="none")),p){const{originX:m="50%",originY:g="50%",originZ:y=0}=d;l.transformOrigin=`${m} ${g} ${y}`}}function Yp(n,{style:r,vars:s},l,c){const d=n.style;let f;for(f in r)d[f]=r[f];c==null||c.applyProjectionStyles(d,l);for(f in s)d.setProperty(f,s[f])}function Jd(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const oi={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(G.test(n))n=parseFloat(n);else return n;const s=Jd(n,r.target.x),l=Jd(n,r.target.y);return`${s}% ${l}%`}},x1={correct:(n,{treeScale:r,projectionDelta:s})=>{const l=n,c=Vt.parse(n);if(c.length>5)return l;const d=Vt.createTransformer(n),f=typeof c[0]!="number"?1:0,p=s.x.scale*r.x,m=s.y.scale*r.y;c[0+f]/=p,c[1+f]/=m;const g=ke(p,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(c)}},za={borderRadius:{...oi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oi,borderTopRightRadius:oi,borderBottomLeftRadius:oi,borderBottomRightRadius:oi,boxShadow:x1};function Xp(n,{layout:r,layoutId:s}){return wr.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!za[n]||n==="opacity")}function pu(n,r,s){var f;const l=n.style,c=r==null?void 0:r.style,d={};if(!l)return d;for(const p in l)(Qe(l[p])||c&&Qe(c[p])||Xp(p,n)||((f=s==null?void 0:s.getValue(p))==null?void 0:f.liveStyle)!==void 0)&&(d[p]=l[p]);return d}function T1(n){return window.getComputedStyle(n)}class k1 extends Hp{constructor(){super(...arguments),this.type="html",this.renderInstance=Yp}readValueFromInstance(r,s){var l;if(wr.has(s))return(l=this.projection)!=null&&l.isProjecting?Ea(s):Wv(r,s);{const c=T1(r),d=(rp(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(r,{transformPagePoint:s}){return Qp(r,s)}build(r,s,l){hu(r,s,l.transformTemplate)}scrapeMotionValuesFromProps(r,s,l){return pu(r,s,l)}}const P1={offset:"stroke-dashoffset",array:"stroke-dasharray"},E1={offset:"strokeDashoffset",array:"strokeDasharray"};function C1(n,r,s=1,l=0,c=!0){n.pathLength=1;const d=c?P1:E1;n[d.offset]=`${-l}`,n[d.array]=`${r} ${s}`}const M1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zp(n,{attrX:r,attrY:s,attrScale:l,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},m,g,y){if(hu(n,p,g),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:w,style:x}=n;w.transform&&(x.transform=w.transform,delete w.transform),(x.transform||w.transformOrigin)&&(x.transformOrigin=w.transformOrigin??"50% 50%",delete w.transformOrigin),x.transform&&(x.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete w.transformBox);for(const C of M1)w[C]!==void 0&&(x[C]=w[C],delete w[C]);r!==void 0&&(w.x=r),s!==void 0&&(w.y=s),l!==void 0&&(w.scale=l),c!==void 0&&C1(w,c,d,f,!1)}const qp=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"]),Jp=n=>typeof n=="string"&&n.toLowerCase()==="svg";function D1(n,r,s,l){Yp(n,r,void 0,l);for(const c in r.attrs)n.setAttribute(qp.has(c)?c:ou(c),r.attrs[c])}function bp(n,r,s){const l=pu(n,r,s);for(const c in n)if(Qe(n[c])||Qe(r[c])){const d=vr.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;l[d]=n[c]}return l}class R1 extends Hp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Be}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(wr.has(s)){const l=Lp(s);return l&&l.default||0}return s=qp.has(s)?s:ou(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,l){return bp(r,s,l)}build(r,s,l){Zp(r,s,this.isSVGTag,l.transformTemplate,l.style)}renderInstance(r,s,l,c){D1(r,s,l,c)}mount(r){this.isSVGTag=Jp(r.tagName),super.mount(r)}}const A1=du.length;function em(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?em(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;s<A1;s++){const l=du[s],c=n.props[l];(mi(c)||c===!1)&&(r[l]=c)}return r}function tm(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let l=0;l<s;l++)if(r[l]!==n[l])return!1;return!0}const V1=[...fu].reverse(),L1=fu.length;function N1(n){return r=>Promise.all(r.map(({animation:s,options:l})=>R0(n,s,l)))}function _1(n){let r=N1(n),s=bd(),l=!0,c=!1;const d=g=>(y,w)=>{var C;const x=zn(n,w,g==="exit"?(C=n.presenceContext)==null?void 0:C.custom:void 0);if(x){const{transition:D,transitionEnd:A,...R}=x;y={...y,...R,...A}}return y};function f(g){r=g(n)}function p(g){const{props:y}=n,w=em(n.parent)||{},x=[],C=new Set;let D={},A=1/0;for(let O=0;O<L1;O++){const z=V1[O],F=s[z],U=y[z]!==void 0?y[z]:w[z],Z=mi(U),oe=z===g?F.isActive:null;oe===!1&&(A=O);let fe=U===w[z]&&U!==y[z]&&Z;if(fe&&(l||c)&&n.manuallyAnimateOnMount&&(fe=!1),F.protectedKeys={...D},!F.isActive&&oe===null||!U&&!F.prevProp||eo(U)||typeof U=="boolean")continue;if(z==="exit"&&F.isActive&&oe!==!0){F.prevResolvedValues&&(D={...D,...F.prevResolvedValues});continue}const te=j1(F.prevProp,U);let ye=te||z===g&&F.isActive&&!fe&&Z||O>A&&Z,q=!1;const pe=Array.isArray(U)?U:[U];let we=pe.reduce(d(z),{});oe===!1&&(we={});const{prevResolvedValues:Le={}}=F,Re={...Le,...we},je=j=>{ye=!0,C.has(j)&&(q=!0,C.delete(j)),F.needsAnimating[j]=!0;const Q=n.getValue(j);Q&&(Q.liveStyle=!1)};for(const j in Re){const Q=we[j],B=Le[j];if(D.hasOwnProperty(j))continue;let k=!1;Va(Q)&&Va(B)?k=!tm(Q,B):k=Q!==B,k?Q!=null?je(j):C.add(j):Q!==void 0&&C.has(j)?je(j):F.protectedKeys[j]=!0}F.prevProp=U,F.prevResolvedValues=we,F.isActive&&(D={...D,...we}),(l||c)&&n.blockInitialAnimation&&(ye=!1);const Se=fe&&te;ye&&(!Se||q)&&x.push(...pe.map(j=>{const Q={type:z};if(typeof j=="string"&&(l||c)&&!Se&&n.manuallyAnimateOnMount&&n.parent){const{parent:B}=n,k=zn(B,j);if(B.enteringChildren&&k){const{delayChildren:V}=k.transition||{};Q.delay=kp(B.enteringChildren,n,V)}}return{animation:j,options:Q}}))}if(C.size){const O={};if(typeof y.initial!="boolean"){const z=zn(n,Array.isArray(y.initial)?y.initial[0]:y.initial);z&&z.transition&&(O.transition=z.transition)}C.forEach(z=>{const F=n.getBaseTarget(z),U=n.getValue(z);U&&(U.liveStyle=!0),O[z]=F??null}),x.push({animation:O})}let R=!!x.length;return l&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(R=!1),l=!1,c=!1,R?r(x):Promise.resolve()}function m(g,y){var x;if(s[g].isActive===y)return Promise.resolve();(x=n.variantChildren)==null||x.forEach(C=>{var D;return(D=C.animationState)==null?void 0:D.setActive(g,y)}),s[g].isActive=y;const w=p(g);for(const C in s)s[C].protectedKeys={};return w}return{animateChanges:p,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=bd(),c=!0}}}function j1(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!tm(r,n):!1}function _n(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bd(){return{animate:_n(!0),whileInView:_n(),whileHover:_n(),whileTap:_n(),whileDrag:_n(),whileFocus:_n(),exit:_n()}}function Ba(n,r){n.min=r.min,n.max=r.max}function Rt(n,r){Ba(n.x,r.x),Ba(n.y,r.y)}function eh(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}const nm=1e-4,I1=1-nm,O1=1+nm,rm=.01,F1=0-rm,z1=0+rm;function tt(n){return n.max-n.min}function B1(n,r,s){return Math.abs(n-r)<=s}function th(n,r,s,l=.5){n.origin=l,n.originPoint=ke(r.min,r.max,n.origin),n.scale=tt(s)/tt(r),n.translate=ke(s.min,s.max,n.origin)-n.originPoint,(n.scale>=I1&&n.scale<=O1||isNaN(n.scale))&&(n.scale=1),(n.translate>=F1&&n.translate<=z1||isNaN(n.translate))&&(n.translate=0)}function fi(n,r,s,l){th(n.x,r.x,s.x,l?l.originX:void 0),th(n.y,r.y,s.y,l?l.originY:void 0)}function nh(n,r,s,l=0){const c=l?ke(s.min,s.max,l):s.min;n.min=c+r.min,n.max=n.min+tt(r)}function U1(n,r,s,l){nh(n.x,r.x,s.x,l==null?void 0:l.x),nh(n.y,r.y,s.y,l==null?void 0:l.y)}function rh(n,r,s,l=0){const c=l?ke(s.min,s.max,l):s.min;n.min=r.min-c,n.max=n.min+tt(r)}function qs(n,r,s,l){rh(n.x,r.x,s.x,l==null?void 0:l.x),rh(n.y,r.y,s.y,l==null?void 0:l.y)}function ih(n,r,s,l,c){return n-=r,n=Zs(n,1/s,l),c!==void 0&&(n=Zs(n,1/c,l)),n}function W1(n,r=0,s=1,l=.5,c,d=n,f=n){if(zt.test(r)&&(r=parseFloat(r),r=ke(f.min,f.max,r/100)-f.min),typeof r!="number")return;let p=ke(d.min,d.max,l);n===d&&(p-=r),n.min=ih(n.min,r,s,p,c),n.max=ih(n.max,r,s,p,c)}function sh(n,r,[s,l,c],d,f){W1(n,r[s],r[l],r[c],r.scale,d,f)}const H1=["x","scaleX","originX"],$1=["y","scaleY","originY"];function oh(n,r,s,l){sh(n.x,r,H1,s?s.x:void 0,l?l.x:void 0),sh(n.y,r,$1,s?s.y:void 0,l?l.y:void 0)}function lh(n){return n.translate===0&&n.scale===1}function im(n){return lh(n.x)&&lh(n.y)}function ah(n,r){return n.min===r.min&&n.max===r.max}function K1(n,r){return ah(n.x,r.x)&&ah(n.y,r.y)}function uh(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function sm(n,r){return uh(n.x,r.x)&&uh(n.y,r.y)}function ch(n){return tt(n.x)/tt(n.y)}function fh(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}function Ot(n){return[n("x"),n("y")]}function G1(n,r,s){let l="";const c=n.x.translate/r.x,d=n.y.translate/r.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(l=`translate3d(${c}px, ${d}px, ${f}px) `),(r.x!==1||r.y!==1)&&(l+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:g,rotate:y,rotateX:w,rotateY:x,skewX:C,skewY:D}=s;g&&(l=`perspective(${g}px) ${l}`),y&&(l+=`rotate(${y}deg) `),w&&(l+=`rotateX(${w}deg) `),x&&(l+=`rotateY(${x}deg) `),C&&(l+=`skewX(${C}deg) `),D&&(l+=`skewY(${D}deg) `)}const p=n.x.scale*r.x,m=n.y.scale*r.y;return(p!==1||m!==1)&&(l+=`scale(${p}, ${m})`),l||"none"}const om=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Q1=om.length,dh=n=>typeof n=="string"?parseFloat(n):n,hh=n=>typeof n=="number"||G.test(n);function Y1(n,r,s,l,c,d){c?(n.opacity=ke(0,s.opacity??1,X1(l)),n.opacityExit=ke(r.opacity??1,0,Z1(l))):d&&(n.opacity=ke(r.opacity??1,s.opacity??1,l));for(let f=0;f<Q1;f++){const p=om[f];let m=ph(r,p),g=ph(s,p);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||hh(m)===hh(g)?(n[p]=Math.max(ke(dh(m),dh(g),l),0),(zt.test(g)||zt.test(m))&&(n[p]+="%")):n[p]=g}(r.rotate||s.rotate)&&(n.rotate=ke(r.rotate||0,s.rotate||0,l))}function ph(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const X1=lm(0,.5,qh),Z1=lm(.5,.95,xt);function lm(n,r,s){return l=>l<n?0:l>r?1:s(hi(n,r,l))}function q1(n,r,s){const l=Qe(n)?n:yr(n);return l.start(iu("",l,r,s)),l.animation}function yi(n,r,s,l={passive:!0}){return n.addEventListener(r,s,l),()=>n.removeEventListener(r,s)}const J1=(n,r)=>n.depth-r.depth;class b1{constructor(){this.children=[],this.isDirty=!1}add(r){Ka(this.children,r),this.isDirty=!0}remove(r){$s(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(J1),this.isDirty=!1,this.children.forEach(r)}}function ew(n,r){const s=et.now(),l=({timestamp:c})=>{const d=c-s;d>=r&&(wn(l),n(d-r))};return me.setup(l,!0),()=>wn(l)}function Ws(n){return Qe(n)?n.get():n}class tw{constructor(){this.members=[]}add(r){Ka(this.members,r);for(let s=this.members.length-1;s>=0;s--){const l=this.members[s];if(l===r||l===this.lead||l===this.prevLead)continue;const c=l.instance;(!c||c.isConnected===!1)&&!l.snapshot&&($s(this.members,l),l.unmount())}r.scheduleRender()}remove(r){if($s(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){var s;for(let l=this.members.indexOf(r)-1;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1&&((s=c.instance)==null?void 0:s.isConnected)!==!1)return this.promote(c),!0}return!1}promote(r,s){var c;const l=this.lead;if(r!==l&&(this.prevLead=l,this.lead=r,r.show(),l)){l.updateSnapshot(),r.scheduleRender();const{layoutDependency:d}=l.options,{layoutDependency:f}=r.options;(d===void 0||d!==f)&&(r.resumeFrom=l,s&&(l.preserveOpacity=!0),l.snapshot&&(r.snapshot=l.snapshot,r.snapshot.latestValues=l.animationValues||l.latestValues),(c=r.root)!=null&&c.isUpdating&&(r.isLayoutDirty=!0)),r.options.crossfade===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(r=>{var s,l,c,d,f;(l=(s=r.options).onExitComplete)==null||l.call(s),(f=(c=r.resumingFrom)==null?void 0:(d=c.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(r=>r.instance&&r.scheduleRender(!1))}removeLeadSnapshot(){var r;(r=this.lead)!=null&&r.snapshot&&(this.lead.snapshot=void 0)}}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ca=["","X","Y","Z"],nw=1e3;let rw=0;function fa(n,r,s,l){const{latestValues:c}=r;c[n]&&(s[n]=c[n],r.setStaticValue(n,0),l&&(l[n]=0))}function am(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Dp(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",me,!(c||d))}const{parent:l}=n;l&&!l.hasCheckedOptimisedAppear&&am(l)}function um({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:l,resetTransform:c}){return class{constructor(f={},p=r==null?void 0:r()){this.id=rw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ow),this.nodes.forEach(dw),this.nodes.forEach(hw),this.nodes.forEach(lw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new b1)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Qa),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const m=this.eventHandlers.get(f);m&&m.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=cu(f)&&!s1(f),this.instance=f;const{layoutId:p,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||p)&&(this.isLayoutDirty=!0),n){let y,w=0;const x=()=>this.root.updateBlockedByResize=!1;me.read(()=>{w=window.innerWidth}),n(f,()=>{const C=window.innerWidth;C!==w&&(w=C,this.root.updateBlockedByResize=!0,y&&y(),y=ew(x,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(gh)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:w,hasRelativeLayoutChanged:x,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||g.getDefaultTransition()||vw,{onLayoutAnimationStart:A,onLayoutAnimationComplete:R}=g.getProps(),O=!this.targetLayout||!sm(this.targetLayout,C),z=!w&&x;if(this.options.layoutRoot||this.resumeFrom||z||w&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const F={...ru(D,"layout"),onPlay:A,onComplete:R};(g.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F),this.setAnimationOrigin(y,z)}else w||gh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pw),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&am(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const w=this.path[y];w.shouldResetTransform=!0,(typeof w.latestValues.x=="string"||typeof w.latestValues.y=="string")&&(w.isLayoutDirty=!0),w.updateScroll("snapshot"),w.options.layoutRoot&&w.willUpdate(!1)}const{layoutId:p,layout:m}=this.options;if(p===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(uw),this.nodes.forEach(mh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(yh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(cw),this.nodes.forEach(fw),this.nodes.forEach(iw),this.nodes.forEach(sw)):this.nodes.forEach(yh),this.clearAllSnapshots();const p=et.now();Ge.delta=Bt(0,1e3/60,p-Ge.timestamp),Ge.timestamp=p,Ge.isProcessing=!0,na.update.process(Ge),na.preRender.process(Ge),na.render.process(Ge),Ge.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,au.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aw),this.sharedNodes.forEach(mw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(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 m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Be()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const m=l(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!im(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;f&&this.instance&&(p||jn(this.latestValues)||y)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let m=this.removeElementScroll(p);return f&&(m=this.removeTransform(m)),ww(m),{animationId:this.root.animationId,measuredBox:p,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:f}=this.options;if(!f)return Be();const p=f.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(Sw))){const{scroll:y}=this.root;y&&(Ft(p.x,y.offset.x),Ft(p.y,y.offset.y))}return p}removeElementScroll(f){var m;const p=Be();if(Rt(p,f),(m=this.scroll)!=null&&m.wasRoot)return p;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:w,options:x}=y;y!==this.root&&w&&x.layoutScroll&&(w.wasRoot&&Rt(p,f),Ft(p.x,w.offset.x),Ft(p.y,w.offset.y))}return p}applyTransform(f,p=!1,m){var y,w;const g=m||Be();Rt(g,f);for(let x=0;x<this.path.length;x++){const C=this.path[x];!p&&C.options.layoutScroll&&C.scroll&&C!==C.root&&(Ft(g.x,-C.scroll.offset.x),Ft(g.y,-C.scroll.offset.y)),jn(C.latestValues)&&Us(g,C.latestValues,(y=C.layout)==null?void 0:y.layoutBox)}return jn(this.latestValues)&&Us(g,this.latestValues,(w=this.layout)==null?void 0:w.layoutBox),g}removeTransform(f){var m;const p=Be();Rt(p,f);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!jn(y.latestValues))continue;let w;y.instance&&(Oa(y.latestValues)&&y.updateSnapshot(),w=Be(),Rt(w,y.measurePageBox())),oh(p,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,w)}return jn(this.latestValues)&&oh(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ge.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var C;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==p;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:w}=this.options;if(!this.layout||!(y||w))return;this.resolvedRelativeTargetAt=Ge.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Be(),this.targetWithTransforms=Be()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),U1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Rt(this.target,this.layout.layoutBox),Gp(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Oa(this.parent.latestValues)||Kp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,p,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Be(),this.relativeTargetOrigin=Be(),qs(this.relativeTargetOrigin,p,m,this.options.layoutAnchor||void 0),Rt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var D;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(D=this.parent)!=null&&D.isProjectionDirty)&&(m=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Ge.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;Rt(this.layoutCorrected,this.layout.layoutBox);const w=this.treeScale.x,x=this.treeScale.y;y1(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Be());const{target:C}=f;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(eh(this.prevProjectionDelta.x,this.projectionDelta.x),eh(this.prevProjectionDelta.y,this.projectionDelta.y)),fi(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==w||this.treeScale.y!==x||!fh(this.projectionDelta.x,this.prevProjectionDelta.x)||!fh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pr(),this.projectionDelta=pr(),this.projectionDeltaWithTransform=pr()}setAnimationOrigin(f,p=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},w=pr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const x=Be(),C=m?m.source:void 0,D=this.layout?this.layout.source:void 0,A=C!==D,R=this.getStack(),O=!R||R.members.length<=1,z=!!(A&&!O&&this.options.crossfade===!0&&!this.path.some(gw));this.animationProgress=0;let F;this.mixTargetDelta=U=>{const Z=U/1e3;vh(w.x,f.x,Z),vh(w.y,f.y,Z),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qs(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),yw(this.relativeTarget,this.relativeTargetOrigin,x,Z),F&&K1(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=Be()),Rt(F,this.relativeTarget)),A&&(this.animationValues=y,Y1(y,g,this.latestValues,Z,z,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var p,m,g;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yr(0)),this.motionValue.jump(0,!1),this.currentAnimation=q1(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:m,layout:g,latestValues:y}=f;if(!(!p||!m||!g)){if(this!==f&&this.layout&&g&&cm(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Be();const w=tt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+w;const x=tt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+x}Rt(p,m),Us(p,y),fi(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new tw),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var p;const{layoutId:f}=this.options;return f?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:f}=this.options;return f?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(p=!0),!p)return;const g={};m.z&&fa("z",f,g,this.animationValues);for(let y=0;y<ca.length;y++)fa(`rotate${ca[y]}`,f,g,this.animationValues),fa(`skew${ca[y]}`,f,g,this.animationValues);f.render();for(const y in g)f.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);f.scheduleRender()}applyProjectionStyles(f,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Ws(p==null?void 0:p.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Ws(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!jn(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let w=G1(this.projectionDeltaWithTransform,this.treeScale,y);m&&(w=m(y,w)),f.transform=w;const{x,y:C}=this.projectionDelta;f.transformOrigin=`${x.origin*100}% ${C.origin*100}% 0`,g.animationValues?f.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const D in za){if(y[D]===void 0)continue;const{correct:A,applyTo:R,isCSSVariable:O}=za[D],z=w==="none"?y[D]:A(y[D],g);if(R){const F=R.length;for(let U=0;U<F;U++)f[R[U]]=z}else O?this.options.visualElement.renderState.vars[D]=z:f[D]=z}this.options.layoutId&&(f.pointerEvents=g===this?Ws(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(mh),this.root.sharedNodes.clear()}}}function iw(n){n.updateLayout()}function sw(n){var s;const r=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&r&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:c}=n.layout,{animationType:d}=n.options,f=r.source!==n.layout.source;if(d==="size")Ot(w=>{const x=f?r.measuredBox[w]:r.layoutBox[w],C=tt(x);x.min=l[w].min,x.max=x.min+C});else if(d==="x"||d==="y"){const w=d==="x"?"y":"x";Ba(f?r.measuredBox[w]:r.layoutBox[w],l[w])}else cm(d,r.layoutBox,l)&&Ot(w=>{const x=f?r.measuredBox[w]:r.layoutBox[w],C=tt(l[w]);x.max=x.min+C,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[w].max=n.relativeTarget[w].min+C)});const p=pr();fi(p,l,r.layoutBox);const m=pr();f?fi(m,n.applyTransform(c,!0),r.measuredBox):fi(m,l,r.layoutBox);const g=!im(p);let y=!1;if(!n.resumeFrom){const w=n.getClosestProjectingParent();if(w&&!w.resumeFrom){const{snapshot:x,layout:C}=w;if(x&&C){const D=n.options.layoutAnchor||void 0,A=Be();qs(A,r.layoutBox,x.layoutBox,D);const R=Be();qs(R,l,C.layoutBox,D),sm(A,R)||(y=!0),w.options.layoutRoot&&(n.relativeTarget=R,n.relativeTargetOrigin=A,n.relativeParent=w)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:r,delta:m,layoutDelta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function ow(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function lw(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function aw(n){n.clearSnapshot()}function mh(n){n.clearMeasurements()}function uw(n){n.isLayoutDirty=!0,n.updateLayout()}function yh(n){n.isLayoutDirty=!1}function cw(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function fw(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function gh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function dw(n){n.resolveTargetDelta()}function hw(n){n.calcProjection()}function pw(n){n.resetSkewAndRotation()}function mw(n){n.removeLeadSnapshot()}function vh(n,r,s){n.translate=ke(r.translate,0,s),n.scale=ke(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function wh(n,r,s,l){n.min=ke(r.min,s.min,l),n.max=ke(r.max,s.max,l)}function yw(n,r,s,l){wh(n.x,r.x,s.x,l),wh(n.y,r.y,s.y,l)}function gw(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const vw={duration:.45,ease:[.4,0,.1,1]},Sh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),xh=Sh("applewebkit/")&&!Sh("chrome/")?Math.round:xt;function Th(n){n.min=xh(n.min),n.max=xh(n.max)}function ww(n){Th(n.x),Th(n.y)}function cm(n,r,s){return n==="position"||n==="preserve-aspect"&&!B1(ch(r),ch(s),.2)}function Sw(n){var r;return n!==n.root&&((r=n.scroll)==null?void 0:r.wasRoot)}const xw=um({attachResizeListener:(n,r)=>yi(n,"resize",r),measureScroll:()=>{var n,r;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((r=document.body)==null?void 0:r.scrollTop)||0}},checkIsScrollRoot:()=>!0}),da={current:void 0},fm=um({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!da.current){const n=new xw({});n.mount(window),n.setOptions({layoutScroll:!0}),da.current=n}return da.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),dm=J.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Tw(n=!0){const r=J.useContext($a);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:c}=r,d=J.useId();J.useEffect(()=>{if(n)return c(d)},[n]);const f=J.useCallback(()=>n&&l&&l(d),[d,l,n]);return!s&&l?[!1,f]:[!0]}const hm=J.createContext({strict:!1}),kh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Ph=!1;function kw(){if(Ph)return;const n={};for(const r in kh)n[r]={isEnabled:s=>kh[r].some(l=>!!s[l])};Wp(n),Ph=!0}function pm(){return kw(),d1()}function Pw(n){const r=pm();for(const s in n)r[s]={...r[s],...n[s]};Wp(r)}const Ew=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Js(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Ew.has(n)}let mm=n=>!Js(n);function Cw(n){typeof n=="function"&&(mm=r=>r.startsWith("on")?!Js(r):n(r))}try{Cw(require("@emotion/is-prop-valid").default)}catch{}function Mw(n,r,s){const l={};for(const c in n)c==="values"&&typeof n.values=="object"||Qe(n[c])||(mm(c)||s===!0&&Js(c)||!r&&!Js(c)||n.draggable&&c.startsWith("onDrag"))&&(l[c]=n[c]);return l}const no=J.createContext({});function Dw(n,r){if(to(n)){const{initial:s,animate:l}=n;return{initial:s===!1||mi(s)?s:void 0,animate:mi(l)?l:void 0}}return n.inherit!==!1?r:{}}function Rw(n){const{initial:r,animate:s}=Dw(n,J.useContext(no));return J.useMemo(()=>({initial:r,animate:s}),[Eh(r),Eh(s)])}function Eh(n){return Array.isArray(n)?n.join(" "):n}const mu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ym(n,r,s){for(const l in r)!Qe(r[l])&&!Xp(l,s)&&(n[l]=r[l])}function Aw({transformTemplate:n},r){return J.useMemo(()=>{const s=mu();return hu(s,r,n),Object.assign({},s.vars,s.style)},[r])}function Vw(n,r){const s=n.style||{},l={};return ym(l,s,n),Object.assign(l,Aw(n,r)),l}function Lw(n,r){const s={},l=Vw(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=l,s}const gm=()=>({...mu(),attrs:{}});function Nw(n,r,s,l){const c=J.useMemo(()=>{const d=gm();return Zp(d,r,Jp(l),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[r]);if(n.style){const d={};ym(d,n.style,n),c.style={...d,...c.style}}return c}const _w=["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 yu(n){return typeof n!="string"||n.includes("-")?!1:!!(_w.indexOf(n)>-1||/[A-Z]/u.test(n))}function jw(n,r,s,{latestValues:l},c,d=!1,f){const m=(f??yu(n)?Nw:Lw)(r,l,c,n),g=Mw(r,typeof n=="string",d),y=n!==J.Fragment?{...g,...m,ref:s}:{},{children:w}=r,x=J.useMemo(()=>Qe(w)?w.get():w,[w]);return J.createElement(n,{...y,children:x})}function Iw({scrapeMotionValuesFromProps:n,createRenderState:r},s,l,c){return{latestValues:Ow(s,l,c,n),renderState:r()}}function Ow(n,r,s,l){const c={},d=l(n,{});for(const x in d)c[x]=Ws(d[x]);let{initial:f,animate:p}=n;const m=to(n),g=Bp(n);r&&g&&!m&&n.inherit!==!1&&(f===void 0&&(f=r.initial),p===void 0&&(p=r.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const w=y?p:f;if(w&&typeof w!="boolean"&&!eo(w)){const x=Array.isArray(w)?w:[w];for(let C=0;C<x.length;C++){const D=su(n,x[C]);if(D){const{transitionEnd:A,transition:R,...O}=D;for(const z in O){let F=O[z];if(Array.isArray(F)){const U=y?F.length-1:0;F=F[U]}F!==null&&(c[z]=F)}for(const z in A)c[z]=A[z]}}}return c}const vm=n=>(r,s)=>{const l=J.useContext(no),c=J.useContext($a),d=()=>Iw(n,r,l,c);return s?d():_g(d)},Fw=vm({scrapeMotionValuesFromProps:pu,createRenderState:mu}),zw=vm({scrapeMotionValuesFromProps:bp,createRenderState:gm}),Bw=Symbol.for("motionComponentSymbol");function Uw(n,r,s){const l=J.useRef(s);J.useInsertionEffect(()=>{l.current=s});const c=J.useRef(null);return J.useCallback(d=>{var p;d&&((p=n.onMount)==null||p.call(n,d));const f=l.current;if(typeof f=="function")if(d){const m=f(d);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);r&&(d?r.mount(d):r.unmount())},[r])}const wm=J.createContext({});function fr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function Ww(n,r,s,l,c,d){var F,U;const{visualElement:f}=J.useContext(no),p=J.useContext(hm),m=J.useContext($a),g=J.useContext(dm),y=g.reducedMotion,w=g.skipAnimations,x=J.useRef(null),C=J.useRef(!1);l=l||p.renderer,!x.current&&l&&(x.current=l(n,{visualState:r,parent:f,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:w,isSVG:d}),C.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const D=x.current,A=J.useContext(wm);D&&!D.projection&&c&&(D.type==="html"||D.type==="svg")&&Hw(x.current,s,c,A);const R=J.useRef(!1);J.useInsertionEffect(()=>{D&&R.current&&D.update(s,m)});const O=s[Mp],z=J.useRef(!!O&&typeof window<"u"&&!((F=window.MotionHandoffIsComplete)!=null&&F.call(window,O))&&((U=window.MotionHasOptimisedAnimation)==null?void 0:U.call(window,O)));return Ig(()=>{C.current=!0,D&&(R.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),z.current&&D.animationState&&D.animationState.animateChanges())}),J.useEffect(()=>{D&&(!z.current&&D.animationState&&D.animationState.animateChanges(),z.current&&(queueMicrotask(()=>{var Z;(Z=window.MotionHandoffMarkAsComplete)==null||Z.call(window,O)}),z.current=!1),D.enteringChildren=void 0)}),D}function Hw(n,r,s,l){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:m,layoutRoot:g,layoutAnchor:y,layoutCrossfade:w}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:Sm(n.parent)),n.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&fr(p),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:l,crossfade:w,layoutScroll:m,layoutRoot:g,layoutAnchor:y})}function Sm(n){if(n)return n.options.allowProjection!==!1?n.projection:Sm(n.parent)}function ha(n,{forwardMotionProps:r=!1,type:s}={},l,c){l&&Pw(l);const d=s?s==="svg":yu(n),f=d?zw:Fw;function p(g,y){let w;const x={...J.useContext(dm),...g,layoutId:$w(g)},{isStatic:C}=x,D=Rw(g),A=f(g,C);if(!C&&typeof window<"u"){Kw();const R=Gw(x);w=R.MeasureLayout,D.visualElement=Ww(n,A,x,c,R.ProjectionNode,d)}return $.jsxs(no.Provider,{value:D,children:[w&&D.visualElement?$.jsx(w,{visualElement:D.visualElement,...x}):null,jw(n,g,Uw(A,D.visualElement,y),A,C,r,d)]})}p.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=J.forwardRef(p);return m[Bw]=n,m}function $w({layoutId:n}){const r=J.useContext(zh).id;return r&&n!==void 0?r+"-"+n:n}function Kw(n,r){J.useContext(hm).strict}function Gw(n){const r=pm(),{drag:s,layout:l}=r;if(!s&&!l)return{};const c={...s,...l};return{MeasureLayout:s!=null&&s.isEnabled(n)||l!=null&&l.isEnabled(n)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function Qw(n,r){if(typeof Proxy>"u")return ha;const s=new Map,l=(d,f)=>ha(d,f,n,r),c=(d,f)=>l(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?l:(s.has(f)||s.set(f,ha(f,void 0,n,r)),s.get(f))})}const Yw=(n,r)=>r.isSVG??yu(n)?new R1(r):new k1(r,{allowProjection:n!==J.Fragment});class Xw extends Sn{constructor(r){super(r),r.animationState||(r.animationState=_1(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();eo(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)==null||r.call(this)}}let Zw=0;class qw extends Sn{constructor(){super(...arguments),this.id=Zw++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===l)return;if(r&&l===!1){if(this.isExitComplete){const{initial:f,custom:p}=this.node.getProps();if(typeof f=="string"){const m=zn(this.node,f,p);if(m){const{transition:g,transitionEnd:y,...w}=m;for(const x in w)(d=this.node.getValue(x))==null||d.jump(w[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!r);s&&!r&&c.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:r,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const Jw={animation:{Feature:Xw},exit:{Feature:qw}};function Si(n){return{point:{x:n.pageX,y:n.pageY}}}const bw=n=>r=>uu(r)&&n(r,Si(r));function di(n,r,s,l){return yi(n,r,bw(s),l)}const xm=({current:n})=>n?n.ownerDocument.defaultView:null,Ch=(n,r)=>Math.abs(n-r);function eS(n,r){const s=Ch(n.x,r.x),l=Ch(n.y,r.y);return Math.sqrt(s**2+l**2)}const Mh=new Set(["auto","scroll"]);class Tm{constructor(r,s,{transformPagePoint:l,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=C=>{this.handleScroll(C.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=_s(this.lastRawMoveEventInfo,this.transformPagePoint));const C=pa(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,A=eS(C.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!A)return;const{point:R}=C,{timestamp:O}=Ge;this.history.push({...R,timestamp:O});const{onStart:z,onMove:F}=this.handlers;D||(z&&z(this.lastMoveEvent,C),this.startEvent=this.lastMoveEvent),F&&F(this.lastMoveEvent,C)},this.handlePointerMove=(C,D)=>{this.lastMoveEvent=C,this.lastRawMoveEventInfo=D,this.lastMoveEventInfo=_s(D,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(C,D)=>{this.end();const{onEnd:A,onSessionEnd:R,resumeAnimation:O}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=pa(C.type==="pointercancel"?this.lastMoveEventInfo:_s(D,this.transformPagePoint),this.history);this.startEvent&&A&&A(C,z),R&&R(C,z)},!uu(r))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=l,this.distanceThreshold=f,this.contextWindow=c||window;const m=Si(r),g=_s(m,this.transformPagePoint),{point:y}=g,{timestamp:w}=Ge;this.history=[{...y,timestamp:w}];const{onSessionStart:x}=s;x&&x(r,pa(g,this.history)),this.removeListeners=gi(di(this.contextWindow,"pointermove",this.handlePointerMove),di(this.contextWindow,"pointerup",this.handlePointerUp),di(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(r){let s=r.parentElement;for(;s;){const l=getComputedStyle(s);(Mh.has(l.overflowX)||Mh.has(l.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(r){const s=this.scrollPositions.get(r);if(!s)return;const l=r===window,c=l?{x:window.scrollX,y:window.scrollY}:{x:r.scrollLeft,y:r.scrollTop},d={x:c.x-s.x,y:c.y-s.y};d.x===0&&d.y===0||(l?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(r,c),me.update(this.updatePoint,!0))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wn(this.updatePoint)}}function _s(n,r){return r?{point:r(n.point)}:n}function Dh(n,r){return{x:n.x-r.x,y:n.y-r.y}}function pa({point:n},r){return{point:n,delta:Dh(n,km(r)),offset:Dh(n,tS(r)),velocity:nS(r,.1)}}function tS(n){return n[0]}function km(n){return n[n.length-1]}function nS(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,l=null;const c=km(n);for(;s>=0&&(l=n[s],!(c.timestamp-l.timestamp>ht(r)));)s--;if(!l)return{x:0,y:0};l===n[0]&&n.length>2&&c.timestamp-l.timestamp>ht(r)*2&&(l=n[1]);const d=St(c.timestamp-l.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-l.x)/d,y:(c.y-l.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function rS(n,{min:r,max:s},l){return r!==void 0&&n<r?n=l?ke(r,n,l.min):Math.max(n,r):s!==void 0&&n>s&&(n=l?ke(s,n,l.max):Math.min(n,s)),n}function Rh(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function iS(n,{top:r,left:s,bottom:l,right:c}){return{x:Rh(n.x,s,c),y:Rh(n.y,r,l)}}function Ah(n,r){let s=r.min-n.min,l=r.max-n.max;return r.max-r.min<n.max-n.min&&([s,l]=[l,s]),{min:s,max:l}}function sS(n,r){return{x:Ah(n.x,r.x),y:Ah(n.y,r.y)}}function oS(n,r){let s=.5;const l=tt(n),c=tt(r);return c>l?s=hi(r.min,r.max-l,n.min):l>c&&(s=hi(n.min,n.max-c,r.min)),Bt(0,1,s)}function lS(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const Ua=.35;function aS(n=Ua){return n===!1?n=0:n===!0&&(n=Ua),{x:Vh(n,"left","right"),y:Vh(n,"top","bottom")}}function Vh(n,r,s){return{min:Lh(n,r),max:Lh(n,s)}}function Lh(n,r){return typeof n=="number"?n:n[r]||0}const uS=new WeakMap;class cS{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:s=!1,distanceThreshold:l}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=w=>{s&&this.snapToCursor(Si(w).point),this.stopAnimation()},f=(w,x)=>{const{drag:C,dragPropagation:D,onDragStart:A}=this.getProps();if(C&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=W0(C),!this.openDragLock))return;this.latestPointerEvent=w,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ot(O=>{let z=this.getAxisMotionValue(O).get()||0;if(zt.test(z)){const{projection:F}=this.visualElement;if(F&&F.layout){const U=F.layout.layoutBox[O];U&&(z=tt(U)*(parseFloat(z)/100))}}this.originPoint[O]=z}),A&&me.update(()=>A(w,x),!1,!0),La(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},p=(w,x)=>{this.latestPointerEvent=w,this.latestPanInfo=x;const{dragPropagation:C,dragDirectionLock:D,onDirectionLock:A,onDrag:R}=this.getProps();if(!C&&!this.openDragLock)return;const{offset:O}=x;if(D&&this.currentDirection===null){this.currentDirection=dS(O),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",x.point,O),this.updateAxis("y",x.point,O),this.visualElement.render(),R&&me.update(()=>R(w,x),!1,!0)},m=(w,x)=>{this.latestPointerEvent=w,this.latestPanInfo=x,this.stop(w,x),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:w}=this.getProps();(w||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Tm(r,{onSessionStart:d,onStart:f,onMove:p,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:l,contextWindow:xm(this.visualElement),element:this.visualElement.current})}stop(r,s){const l=r||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!l)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:p}=this.getProps();p&&me.postRender(()=>p(l,c))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(r,s,l){const{drag:c}=this.getProps();if(!l||!js(r,c,this.currentDirection))return;const d=this.getAxisMotionValue(r);let f=this.originPoint[r]+l[r];this.constraints&&this.constraints[r]&&(f=rS(f,this.constraints[r],this.elastic[r])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:r,dragElastic:s}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;r&&fr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&l?this.constraints=iS(l.layoutBox,r):this.constraints=!1,this.elastic=aS(s),c!==this.constraints&&!fr(r)&&l&&this.constraints&&!this.hasMutatedConstraints&&Ot(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=lS(l.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!fr(r))return!1;const l=r.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=g1(l,c.root,this.visualElement.getTransformPagePoint());let f=sS(c.layout.layoutBox,d);if(s){const p=s(p1(f));this.hasMutatedConstraints=!!p,p&&(f=$p(p))}return f}startAnimation(r){const{drag:s,dragMomentum:l,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},g=Ot(y=>{if(!js(y,s,this.currentDirection))return;let w=m&&m[y]||{};(f===!0||f===y)&&(w={min:0,max:0});const x=c?200:1e6,C=c?40:1e7,D={type:"inertia",velocity:l?r[y]:0,bounceStiffness:x,bounceDamping:C,timeConstant:750,restDelta:1,restSpeed:10,...d,...w};return this.startAxisValueAnimation(y,D)});return Promise.all(g).then(p)}startAxisValueAnimation(r,s){const l=this.getAxisMotionValue(r);return La(this.visualElement,r),l.start(iu(r,l,0,s,this.visualElement,!1))}stopAnimation(){Ot(r=>this.getAxisMotionValue(r).stop())}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,l=this.visualElement.getProps(),c=l[s];return c||this.visualElement.getValue(r,(l.initial?l.initial[r]:void 0)||0)}snapToCursor(r){Ot(s=>{const{drag:l}=this.getProps();if(!js(s,l,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[s],m=d.get()||0;d.set(r[s]-ke(f,p,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!fr(s)||!l||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ot(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const m=p.get();c[f]=oS({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ot(f=>{if(!js(f,r,null))return;const p=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];p.set(ke(m,g,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;uS.set(this.visualElement,this);const r=this.visualElement.current,s=di(r,"pointerdown",g=>{const{drag:y,dragListener:w=!0}=this.getProps(),x=g.target,C=x!==r&&Y0(x);y&&w&&!C&&this.start(g)});let l;const c=()=>{const{dragConstraints:g}=this.getProps();fr(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),l||(l=fS(r,g.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),me.read(c);const p=yi(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(Ot(w=>{const x=this.getAxisMotionValue(w);x&&(this.originPoint[w]+=g[w].translate,x.set(x.get()+g[w].translate))}),this.visualElement.render())}));return()=>{p(),s(),f(),m&&m(),l&&l()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=Ua,dragMomentum:p=!0}=r;return{...r,drag:s,dragDirectionLock:l,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Nh(n){let r=!0;return()=>{if(r){r=!1;return}n()}}function fS(n,r,s){const l=Wd(n,Nh(s)),c=Wd(r,Nh(s));return()=>{l(),c()}}function js(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function dS(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class hS extends Sn{constructor(r){super(r),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new cS(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}update(){const{dragControls:r}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};r!==s&&(this.removeGroupControls(),r&&(this.removeGroupControls=r.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ma=n=>(r,s)=>{n&&me.update(()=>n(r,s),!1,!0)};class pS extends Sn{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(r){this.session=new Tm(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xm(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:l,onPanEnd:c}=this.node.getProps();return{onSessionStart:ma(r),onStart:ma(s),onMove:ma(l),onEnd:(d,f)=>{delete this.session,c&&me.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=di(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ya=!1;class mS extends J.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:l,layoutId:c}=this.props,{projection:d}=r;d&&(s.group&&s.group.add(d),l&&l.register&&c&&l.register(d),ya&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:l,drag:c,isPresent:d}=this.props,{projection:f}=l;return f&&(f.isPresent=d,r.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),ya=!0,c||r.layoutDependency!==s||s===void 0||r.isPresent!==d?f.willUpdate():this.safeToRemove(),r.isPresent!==d&&(d?f.promote():f.relegate()||me.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:r,layoutAnchor:s}=this.props,{projection:l}=r;l&&(l.options.layoutAnchor=s,l.root.didUpdate(),au.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:c}=r;ya=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),l&&l.deregister&&l.deregister(c))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Pm(n){const[r,s]=Tw(),l=J.useContext(zh);return $.jsx(mS,{...n,layoutGroup:l,switchLayoutGroup:J.useContext(wm),isPresent:r,safeToRemove:s})}const yS={pan:{Feature:pS},drag:{Feature:hS,ProjectionNode:fm,MeasureLayout:Pm}};function _h(n,r,s){const{props:l}=n;n.animationState&&l.whileHover&&n.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=l[c];d&&me.postRender(()=>d(r,Si(r)))}class gS extends Sn{mount(){const{current:r}=this.node;r&&(this.unmount=$0(r,(s,l)=>(_h(this.node,l,"Start"),c=>_h(this.node,c,"End"))))}unmount(){}}class vS extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!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=gi(yi(this.node.current,"focus",()=>this.onFocus()),yi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jh(n,r,s){const{props:l}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&l.whileTap&&n.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=l[c];d&&me.postRender(()=>d(r,Si(r)))}class wS extends Sn{mount(){const{current:r}=this.node;if(!r)return;const{globalTapTarget:s,propagate:l}=this.node.props;this.unmount=Z0(r,(c,d)=>(jh(this.node,d,"Start"),(f,{success:p})=>jh(this.node,f,p?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(l==null?void 0:l.tap)===!1})}unmount(){}}const Wa=new WeakMap,ga=new WeakMap,SS=n=>{const r=Wa.get(n.target);r&&r(n)},xS=n=>{n.forEach(SS)};function TS({root:n,...r}){const s=n||document;ga.has(s)||ga.set(s,{});const l=ga.get(s),c=JSON.stringify(r);return l[c]||(l[c]=new IntersectionObserver(xS,{root:n,...r})),l[c]}function kS(n,r,s){const l=TS(r);return Wa.set(n,s),l.observe(n),()=>{Wa.delete(n),l.unobserve(n)}}const PS={some:0,all:1};class ES extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:r={}}=this.node.getProps(),{root:s,margin:l,amount:c="some",once:d}=r,f={root:s?s.current:void 0,rootMargin:l,threshold:typeof c=="number"?c:PS[c]},p=g=>{const{isIntersecting:y}=g;if(this.isInView===y||(this.isInView=y,d&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:w,onViewportLeave:x}=this.node.getProps(),C=y?w:x;C&&C(g)};this.stopObserver=kS(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(CS(r,s))&&this.startObserver()}unmount(){var r;(r=this.stopObserver)==null||r.call(this),this.hasEnteredView=!1,this.isInView=!1}}function CS({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const MS={inView:{Feature:ES},tap:{Feature:wS},focus:{Feature:vS},hover:{Feature:gS}},DS={layout:{ProjectionNode:fm,MeasureLayout:Pm}},RS={...Jw,...MS,...yS,...DS},li=Qw(RS,Yw);function AS(n){var r,s;return $.jsxs("section",{className:"panel panel-detail","aria-label":"Detail",children:[$.jsxs("div",{className:"panel-header",children:[$.jsx("p",{className:"section-label",children:"Detail"}),$.jsx("span",{children:"Sanitized payload"})]}),$.jsxs("div",{className:"detail-block",children:[$.jsx("p",{className:"detail-title",children:((r=n.record)==null?void 0:r.type)??"No record selected"}),$.jsx("pre",{children:JSON.stringify(((s=n.record)==null?void 0:s.payload)??{},null,2)})]})]})}function VS(n){return $.jsxs("div",{className:"mode-bar","aria-label":"Mode",children:[$.jsx("button",{className:n.mode==="live"?"mode-pill is-active":"mode-pill",onClick:()=>n.onChange("live"),type:"button",children:"Live"}),$.jsx("button",{className:n.mode==="replay"?"mode-pill is-active":"mode-pill",onClick:()=>n.onChange("replay"),type:"button",children:"Replay"})]})}function LS(n){return $.jsxs("section",{className:"panel panel-tree","aria-label":"Session Tree",children:[$.jsxs("div",{className:"panel-header",children:[$.jsx("p",{className:"section-label",children:"Session Tree"}),$.jsx("span",{children:"Subtree totals"})]}),$.jsx("div",{className:"session-list",children:n.sessions.map(r=>$.jsxs("button",{className:r.active?"session-row is-active":"session-row",style:{paddingLeft:`${16+r.depth*18}px`},type:"button",children:[$.jsx("span",{className:"session-name",children:r.label}),$.jsxs("span",{className:"session-meta",children:[r.subtreeTokens.toLocaleString()," tok"]})]},r.sessionID))})]})}function NS(n){return $.jsxs("section",{className:"panel panel-timeline","aria-label":"Timeline",children:[$.jsxs("div",{className:"panel-header",children:[$.jsx("p",{className:"section-label",children:"Timeline"}),$.jsx("span",{children:"Actor to target flow"})]}),$.jsx("div",{className:"timeline-list",children:n.records.map(r=>$.jsxs("button",{className:n.selectedID===r.id?"timeline-row is-selected":"timeline-row",onClick:()=>n.onSelect(r),type:"button",children:[$.jsxs("p",{className:"timeline-route",children:[$.jsx("span",{children:r.actor}),$.jsx("span",{className:"timeline-arrow",children:"→"}),$.jsx("span",{children:r.target})]}),$.jsxs("div",{className:"timeline-meta",children:[$.jsx("span",{children:r.summary}),$.jsx("span",{children:r.usageLabel})]})]},r.id))})]})}function _S(n){return $.jsxs("section",{className:"overview-strip","aria-label":"Usage Overview",children:[$.jsxs("div",{children:[$.jsx("p",{className:"section-label",children:"Usage Overview"}),$.jsx("strong",{children:n.totalTokens.toLocaleString()}),$.jsx("span",{children:"Total tokens"})]}),$.jsxs("div",{children:[$.jsxs("strong",{children:["$",n.totalCost.toFixed(2)]}),$.jsx("span",{children:"Total cost"})]}),$.jsxs("div",{children:[$.jsx("strong",{children:n.totalSessions}),$.jsx("span",{children:"Sessions"})]}),$.jsxs("div",{children:[$.jsx("strong",{children:n.totalMessages}),$.jsx("span",{children:"Messages"})]})]})}const jS=()=>"http://127.0.0.1:4310";async function gu(n){const r=await fetch(`${jS()}${n}`);if(!r.ok)throw new Error(`Request failed for ${n}`);return await r.json()}async function IS(){return await gu("/api/overview")}function Em(n){return n.map(r=>({sessionID:r.sessionID,label:r.forkDepth===0?"Root Session":`Fork #${r.forkDepth}`,subtreeTokens:r.subtreeTotals.tokens,cost:r.subtreeTotals.cost,depth:r.forkDepth,active:r.forkDepth===0}))}function Cm(n){return n.map(r=>{var s;return{id:r.id,type:r.type,actor:r.actor,target:r.target,summary:r.summary,payload:r.payload,usageLabel:`${((s=r.usage)==null?void 0:s.total)??0} tok`}})}async function OS(){return Em(await gu("/api/sessions"))}async function FS(){return Cm(await gu("/api/records"))}const Ih=()=>({totalTokens:0,totalCost:0,totalSessions:0,totalMessages:0});function zS(n,r){r.setOverview(n.overview),r.setSessions(Em(n.sessions)),r.setRecords(Cm(n.records))}function BS(){const[n,r]=J.useState(Ih),[s,l]=J.useState([]),[c,d]=J.useState([]);return J.useEffect(()=>{if(IS().then(r).catch(()=>r(Ih())),OS().then(l).catch(()=>l([])),FS().then(d).catch(()=>d([])),typeof EventSource>"u")return;const f=new EventSource("http://127.0.0.1:4310/api/stream");return f.addEventListener("snapshot",p=>{zS(JSON.parse(p.data),{setOverview:r,setSessions:l,setRecords:d})}),()=>{f.close()}},[]),{overview:n,sessions:s,records:c}}function US(){return{sessions:[],records:[],overview:{totalTokens:0,totalCost:0,totalSessions:0,totalMessages:0}}}const va={initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.35,ease:"easeOut"}},Is={initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.28,ease:"easeOut"}},Oh={initial:{opacity:0,x:16},animate:{opacity:1,x:0},transition:{duration:.24,ease:"easeOut"}};function WS(){const[n,r]=J.useState("live"),[s,l]=J.useState(),c=BS(),d=US(),f=n==="live"?c:d;return J.useEffect(()=>{l(f.records[0])},[f.records]),$.jsxs("main",{className:"app-shell",children:[$.jsxs(li.header,{className:"hero-strip",...va,children:[$.jsxs("div",{children:[$.jsx("p",{className:"eyebrow",children:"OpenCode"}),$.jsx("h1",{children:"Activity Viewer"})]}),$.jsx(VS,{mode:n,onChange:r})]}),$.jsx(li.div,{...va,transition:{...va.transition,delay:.08},children:$.jsx(_S,{totalTokens:f.overview.totalTokens,totalCost:f.overview.totalCost,totalSessions:f.overview.totalSessions,totalMessages:f.overview.totalMessages})}),$.jsxs("section",{className:"workspace",children:[$.jsx(li.div,{...Is,transition:{...Is.transition,delay:.12},children:$.jsx(LS,{sessions:f.sessions})}),$.jsx(li.div,{...Is,transition:{...Is.transition,delay:.18},children:$.jsx(NS,{records:f.records,selectedID:s==null?void 0:s.id,onSelect:l})}),$.jsx(li.div,{...Oh,transition:{...Oh.transition,delay:.22},children:$.jsx(AS,{record:s})})]})]})}Ng.createRoot(document.getElementById("root")).render($.jsx(Cg.StrictMode,{children:$.jsx(WS,{})}));
|