@ouro.bot/cli 0.1.0-alpha.171 → 0.1.0-alpha.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.json +8 -0
- package/dist/outlook-ui/assets/index-Cy9jh-Dy.js +61 -0
- package/dist/outlook-ui/assets/index-DpCQrQXd.css +1 -0
- package/dist/outlook-ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/outlook-ui/assets/index-CBueh0d3.css +0 -1
- package/dist/outlook-ui/assets/index-rMPfWjDm.js +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
function aT(n,a){for(var s=0;s<a.length;s++){const o=a[s];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in n)){const d=Object.getOwnPropertyDescriptor(o,u);d&&Object.defineProperty(n,u,d.get?d:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();function iT(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tf={exports:{}},Zl={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ev;function lT(){if(ev)return Zl;ev=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(o,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:n,type:o,key:f,ref:u!==void 0?u:null,props:d}}return Zl.Fragment=a,Zl.jsx=s,Zl.jsxs=s,Zl}var nv;function sT(){return nv||(nv=1,tf.exports=lT()),tf.exports}var p=sT(),ef={exports:{}},ot={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var av;function oT(){if(av)return ot;av=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function T(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function N(M,G,q){this.props=M,this.context=G,this.refs=C,this.updater=q||A}N.prototype.isReactComponent={},N.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function V(){}V.prototype=N.prototype;function _(M,G,q){this.props=M,this.context=G,this.refs=C,this.updater=q||A}var H=_.prototype=new V;H.constructor=_,E(H,N.prototype),H.isPureReactComponent=!0;var X=Array.isArray;function tt(){}var F={H:null,A:null,T:null,S:null},nt=Object.prototype.hasOwnProperty;function xt(M,G,q){var Q=q.ref;return{$$typeof:n,type:M,key:G,ref:Q!==void 0?Q:null,props:q}}function P(M,G){return xt(M.type,G,M.props)}function ft(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function vt(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(q){return G[q]})}var Ot=/\/+/g;function Nt(M,G){return typeof M=="object"&&M!==null&&M.key!=null?vt(""+M.key):G.toString(36)}function Rt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(tt,tt):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,G,q,Q,lt){var dt=typeof M;(dt==="undefined"||dt==="boolean")&&(M=null);var bt=!1;if(M===null)bt=!0;else switch(dt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(M.$$typeof){case n:case a:bt=!0;break;case y:return bt=M._init,U(bt(M._payload),G,q,Q,lt)}}if(bt)return lt=lt(M),bt=Q===""?"."+Nt(M,0):Q,X(lt)?(q="",bt!=null&&(q=bt.replace(Ot,"$&/")+"/"),U(lt,G,q,"",function(el){return el})):lt!=null&&(ft(lt)&&(lt=P(lt,q+(lt.key==null||M&&M.key===lt.key?"":(""+lt.key).replace(Ot,"$&/")+"/")+bt)),G.push(lt)),1;bt=0;var Ft=Q===""?".":Q+":";if(X(M))for(var Lt=0;Lt<M.length;Lt++)Q=M[Lt],dt=Ft+Nt(Q,Lt),bt+=U(Q,G,q,dt,lt);else if(Lt=T(M),typeof Lt=="function")for(M=Lt.call(M),Lt=0;!(Q=M.next()).done;)Q=Q.value,dt=Ft+Nt(Q,Lt++),bt+=U(Q,G,q,dt,lt);else if(dt==="object"){if(typeof M.then=="function")return U(Rt(M),G,q,Q,lt);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return bt}function K(M,G,q){if(M==null)return M;var Q=[],lt=0;return U(M,Q,"","",function(dt){return G.call(q,dt,lt++)}),Q}function Z(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(q){(M._status===0||M._status===-1)&&(M._status=1,M._result=q)},function(q){(M._status===0||M._status===-1)&&(M._status=2,M._result=q)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var it=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},ct={map:K,forEach:function(M,G,q){K(M,function(){G.apply(this,arguments)},q)},count:function(M){var G=0;return K(M,function(){G++}),G},toArray:function(M){return K(M,function(G){return G})||[]},only:function(M){if(!ft(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ot.Activity=b,ot.Children=ct,ot.Component=N,ot.Fragment=s,ot.Profiler=u,ot.PureComponent=_,ot.StrictMode=o,ot.Suspense=m,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ot.__COMPILER_RUNTIME={__proto__:null,c:function(M){return F.H.useMemoCache(M)}},ot.cache=function(M){return function(){return M.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(M,G,q){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var Q=E({},M.props),lt=M.key;if(G!=null)for(dt in G.key!==void 0&&(lt=""+G.key),G)!nt.call(G,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&G.ref===void 0||(Q[dt]=G[dt]);var dt=arguments.length-2;if(dt===1)Q.children=q;else if(1<dt){for(var bt=Array(dt),Ft=0;Ft<dt;Ft++)bt[Ft]=arguments[Ft+2];Q.children=bt}return xt(M.type,lt,Q)},ot.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},ot.createElement=function(M,G,q){var Q,lt={},dt=null;if(G!=null)for(Q in G.key!==void 0&&(dt=""+G.key),G)nt.call(G,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(lt[Q]=G[Q]);var bt=arguments.length-2;if(bt===1)lt.children=q;else if(1<bt){for(var Ft=Array(bt),Lt=0;Lt<bt;Lt++)Ft[Lt]=arguments[Lt+2];lt.children=Ft}if(M&&M.defaultProps)for(Q in bt=M.defaultProps,bt)lt[Q]===void 0&&(lt[Q]=bt[Q]);return xt(M,dt,lt)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(M){return{$$typeof:h,render:M}},ot.isValidElement=ft,ot.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:Z}},ot.memo=function(M,G){return{$$typeof:g,type:M,compare:G===void 0?null:G}},ot.startTransition=function(M){var G=F.T,q={};F.T=q;try{var Q=M(),lt=F.S;lt!==null&<(q,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(tt,it)}catch(dt){it(dt)}finally{G!==null&&q.types!==null&&(G.types=q.types),F.T=G}},ot.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ot.use=function(M){return F.H.use(M)},ot.useActionState=function(M,G,q){return F.H.useActionState(M,G,q)},ot.useCallback=function(M,G){return F.H.useCallback(M,G)},ot.useContext=function(M){return F.H.useContext(M)},ot.useDebugValue=function(){},ot.useDeferredValue=function(M,G){return F.H.useDeferredValue(M,G)},ot.useEffect=function(M,G){return F.H.useEffect(M,G)},ot.useEffectEvent=function(M){return F.H.useEffectEvent(M)},ot.useId=function(){return F.H.useId()},ot.useImperativeHandle=function(M,G,q){return F.H.useImperativeHandle(M,G,q)},ot.useInsertionEffect=function(M,G){return F.H.useInsertionEffect(M,G)},ot.useLayoutEffect=function(M,G){return F.H.useLayoutEffect(M,G)},ot.useMemo=function(M,G){return F.H.useMemo(M,G)},ot.useOptimistic=function(M,G){return F.H.useOptimistic(M,G)},ot.useReducer=function(M,G,q){return F.H.useReducer(M,G,q)},ot.useRef=function(M){return F.H.useRef(M)},ot.useState=function(M){return F.H.useState(M)},ot.useSyncExternalStore=function(M,G,q){return F.H.useSyncExternalStore(M,G,q)},ot.useTransition=function(){return F.H.useTransition()},ot.version="19.2.4",ot}var iv;function Sr(){return iv||(iv=1,ef.exports=oT()),ef.exports}var w=Sr();const st=iT(w),lv=aT({__proto__:null,default:st},[w]);var nf={exports:{}},Ql={},af={exports:{}},lf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var sv;function rT(){return sv||(sv=1,(function(n){function a(U,K){var Z=U.length;U.push(K);t:for(;0<Z;){var it=Z-1>>>1,ct=U[it];if(0<u(ct,K))U[it]=K,U[Z]=ct,Z=it;else break t}}function s(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var K=U[0],Z=U.pop();if(Z!==K){U[0]=Z;t:for(var it=0,ct=U.length,M=ct>>>1;it<M;){var G=2*(it+1)-1,q=U[G],Q=G+1,lt=U[Q];if(0>u(q,Z))Q<ct&&0>u(lt,q)?(U[it]=lt,U[Q]=Z,it=Q):(U[it]=q,U[G]=Z,it=G);else if(Q<ct&&0>u(lt,Z))U[it]=lt,U[Q]=Z,it=Q;else break t}}return K}function u(U,K){var Z=U.sortIndex-K.sortIndex;return Z!==0?Z:U.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var m=[],g=[],y=1,b=null,S=3,T=!1,A=!1,E=!1,C=!1,N=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function H(U){for(var K=s(g);K!==null;){if(K.callback===null)o(g);else if(K.startTime<=U)o(g),K.sortIndex=K.expirationTime,a(m,K);else break;K=s(g)}}function X(U){if(E=!1,H(U),!A)if(s(m)!==null)A=!0,tt||(tt=!0,vt());else{var K=s(g);K!==null&&Rt(X,K.startTime-U)}}var tt=!1,F=-1,nt=5,xt=-1;function P(){return C?!0:!(n.unstable_now()-xt<nt)}function ft(){if(C=!1,tt){var U=n.unstable_now();xt=U;var K=!0;try{t:{A=!1,E&&(E=!1,V(F),F=-1),T=!0;var Z=S;try{e:{for(H(U),b=s(m);b!==null&&!(b.expirationTime>U&&P());){var it=b.callback;if(typeof it=="function"){b.callback=null,S=b.priorityLevel;var ct=it(b.expirationTime<=U);if(U=n.unstable_now(),typeof ct=="function"){b.callback=ct,H(U),K=!0;break e}b===s(m)&&o(m),H(U)}else o(m);b=s(m)}if(b!==null)K=!0;else{var M=s(g);M!==null&&Rt(X,M.startTime-U),K=!1}}break t}finally{b=null,S=Z,T=!1}K=void 0}}finally{K?vt():tt=!1}}}var vt;if(typeof _=="function")vt=function(){_(ft)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,Nt=Ot.port2;Ot.port1.onmessage=ft,vt=function(){Nt.postMessage(null)}}else vt=function(){N(ft,0)};function Rt(U,K){F=N(function(){U(n.unstable_now())},K)}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(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(U){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var Z=S;S=K;try{return U()}finally{S=Z}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,K){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=S;S=U;try{return K()}finally{S=Z}},n.unstable_scheduleCallback=function(U,K,Z){var it=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?it+Z:it):Z=it,U){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=Z+ct,U={id:y++,callback:K,priorityLevel:U,startTime:Z,expirationTime:ct,sortIndex:-1},Z>it?(U.sortIndex=Z,a(g,U),s(m)===null&&U===s(g)&&(E?(V(F),F=-1):E=!0,Rt(X,Z-it))):(U.sortIndex=ct,a(m,U),A||T||(A=!0,tt||(tt=!0,vt()))),U},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(U){var K=S;return function(){var Z=S;S=K;try{return U.apply(this,arguments)}finally{S=Z}}}})(lf)),lf}var ov;function uT(){return ov||(ov=1,af.exports=rT()),af.exports}var sf={exports:{}},de={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var rv;function cT(){if(rv)return de;rv=1;var n=Sr();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(m,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:m,containerInfo:g,implementation:y}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,de.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return d(m,g,null,y)},de.flushSync=function(m){var g=f.T,y=o.p;try{if(f.T=null,o.p=2,m)return m()}finally{f.T=g,o.p=y,o.d.f()}},de.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(m,g))},de.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},de.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,T=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:T}):y==="script"&&o.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:T,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},de.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(m)},de.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin);o.d.L(m,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},de.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);o.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(m)},de.requestFormReset=function(m){o.d.r(m)},de.unstable_batchedUpdates=function(m,g){return m(g)},de.useFormState=function(m,g,y){return f.H.useFormState(m,g,y)},de.useFormStatus=function(){return f.H.useHostTransitionStatus()},de.version="19.2.4",de}var uv;function Z0(){if(uv)return sf.exports;uv=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(a){console.error(a)}}return n(),sf.exports=cT(),sf.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var cv;function fT(){if(cv)return Ql;cv=1;var n=uT(),a=Sr(),s=Z0();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)e+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,i=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(i=e.return),t=e.return;while(t)}return e.tag===3?i:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(d(t)!==t)throw Error(o(188))}function g(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var i=t,l=e;;){var r=i.return;if(r===null)break;var c=r.alternate;if(c===null){if(l=r.return,l!==null){i=l;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===i)return m(r),t;if(c===l)return m(r),e;c=c.sibling}throw Error(o(188))}if(i.return!==l.return)i=r,l=c;else{for(var v=!1,x=r.child;x;){if(x===i){v=!0,i=r,l=c;break}if(x===l){v=!0,l=r,i=c;break}x=x.sibling}if(!v){for(x=c.child;x;){if(x===i){v=!0,i=c,l=r;break}if(x===l){v=!0,l=c,i=r;break}x=x.sibling}if(!v)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?t:e}function y(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=y(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),_=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),xt=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),ft=Symbol.iterator;function vt(t){return t===null||typeof t!="object"?null:(t=ft&&t[ft]||t["@@iterator"],typeof t=="function"?t:null)}var Ot=Symbol.for("react.client.reference");function Nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case N:return"Profiler";case C:return"StrictMode";case X:return"Suspense";case tt:return"SuspenseList";case xt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case _:return t.displayName||"Context";case V:return(t._context.displayName||"Context")+".Consumer";case H:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:Nt(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return Nt(t(e))}catch{}}return null}var Rt=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},it=[],ct=-1;function M(t){return{current:t}}function G(t){0>ct||(t.current=it[ct],it[ct]=null,ct--)}function q(t,e){ct++,it[ct]=t.current,t.current=e}var Q=M(null),lt=M(null),dt=M(null),bt=M(null);function Ft(t,e){switch(q(dt,e),q(lt,t),q(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Eg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Eg(e),t=Ag(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(Q),q(Q,t)}function Lt(){G(Q),G(lt),G(dt)}function el(t){t.memoizedState!==null&&q(bt,t);var e=Q.current,i=Ag(e,t.type);e!==i&&(q(lt,t),q(Q,i))}function ws(t){lt.current===t&&(G(Q),G(lt)),bt.current===t&&(G(bt),ql._currentValue=Z)}var _r,th;function Ta(t){if(_r===void 0)try{throw Error()}catch(i){var e=i.stack.trim().match(/\n( *(at )?)/);_r=e&&e[1]||"",th=-1<i.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+_r+t+th}var kr=!1;function Ur(t,e){if(!t||kr)return"";kr=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(k){var L=k}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(k){L=k}t.call(Y.prototype)}}else{try{throw Error()}catch(k){L=k}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(k){if(k&&L&&typeof k.stack=="string")return[k.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),v=c[0],x=c[1];if(v&&x){var j=v.split(`
|
|
44
|
-
`),R=x.split(`
|
|
45
|
-
`);for(r=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;if(l===j.length||r===R.length)for(l=j.length-1,r=R.length-1;1<=l&&0<=r&&j[l]!==R[r];)r--;for(;1<=l&&0<=r;l--,r--)if(j[l]!==R[r]){if(l!==1||r!==1)do if(l--,r--,0>r||j[l]!==R[r]){var B=`
|
|
46
|
-
`+j[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=r);break}}}finally{kr=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ta(i):""}function Lx(t,e){switch(t.tag){case 26:case 27:case 5:return Ta(t.type);case 16:return Ta("Lazy");case 13:return t.child!==e&&e!==null?Ta("Suspense Fallback"):Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return Ur(t.type,!1);case 11:return Ur(t.type.render,!1);case 1:return Ur(t.type,!0);case 31:return Ta("Activity");default:return""}}function eh(t){try{var e="",i=null;do e+=Lx(t,i),i=t,t=t.return;while(t);return e}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var Br=Object.prototype.hasOwnProperty,Hr=n.unstable_scheduleCallback,$r=n.unstable_cancelCallback,Vx=n.unstable_shouldYield,_x=n.unstable_requestPaint,je=n.unstable_now,kx=n.unstable_getCurrentPriorityLevel,nh=n.unstable_ImmediatePriority,ah=n.unstable_UserBlockingPriority,Es=n.unstable_NormalPriority,Ux=n.unstable_LowPriority,ih=n.unstable_IdlePriority,Bx=n.log,Hx=n.unstable_setDisableYieldValue,nl=null,Ne=null;function Bn(t){if(typeof Bx=="function"&&Hx(t),Ne&&typeof Ne.setStrictMode=="function")try{Ne.setStrictMode(nl,t)}catch{}}var Ce=Math.clz32?Math.clz32:Yx,$x=Math.log,Gx=Math.LN2;function Yx(t){return t>>>=0,t===0?32:31-($x(t)/Gx|0)|0}var As=256,js=262144,Ns=4194304;function wa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Cs(t,e,i){var l=t.pendingLanes;if(l===0)return 0;var r=0,c=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?r=wa(l):(v&=x,v!==0?r=wa(v):i||(i=x&~t,i!==0&&(r=wa(i))))):(x=l&~c,x!==0?r=wa(x):v!==0?r=wa(v):i||(i=l&~t,i!==0&&(r=wa(i)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,i=e&-e,c>=i||c===32&&(i&4194048)!==0)?e:r}function al(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qx(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lh(){var t=Ns;return Ns<<=1,(Ns&62914560)===0&&(Ns=4194304),t}function Gr(t){for(var e=[],i=0;31>i;i++)e.push(t);return e}function il(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xx(t,e,i,l,r,c){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var x=t.entanglements,j=t.expirationTimes,R=t.hiddenUpdates;for(i=v&~i;0<i;){var B=31-Ce(i),Y=1<<B;x[B]=0,j[B]=-1;var L=R[B];if(L!==null)for(R[B]=null,B=0;B<L.length;B++){var k=L[B];k!==null&&(k.lane&=-536870913)}i&=~Y}l!==0&&sh(t,l,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(v&~e))}function sh(t,e,i){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function oh(t,e){var i=t.entangledLanes|=e;for(t=t.entanglements;i;){var l=31-Ce(i),r=1<<l;r&e|t[l]&e&&(t[l]|=e),i&=~r}}function rh(t,e){var i=e&-e;return i=(i&42)!==0?1:Yr(i),(i&(t.suspendedLanes|e))!==0?0:i}function Yr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function qr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function uh(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:Zg(t.type))}function ch(t,e){var i=K.p;try{return K.p=t,e()}finally{K.p=i}}var Hn=Math.random().toString(36).slice(2),ae="__reactFiber$"+Hn,ve="__reactProps$"+Hn,ni="__reactContainer$"+Hn,Xr="__reactEvents$"+Hn,Kx="__reactListeners$"+Hn,Fx="__reactHandles$"+Hn,fh="__reactResources$"+Hn,ll="__reactMarker$"+Hn;function Kr(t){delete t[ae],delete t[ve],delete t[Xr],delete t[Kx],delete t[Fx]}function ai(t){var e=t[ae];if(e)return e;for(var i=t.parentNode;i;){if(e=i[ni]||i[ae]){if(i=e.alternate,e.child!==null||i!==null&&i.child!==null)for(t=Og(t);t!==null;){if(i=t[ae])return i;t=Og(t)}return e}t=i,i=t.parentNode}return null}function ii(t){if(t=t[ae]||t[ni]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function sl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function li(t){var e=t[fh];return e||(e=t[fh]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ee(t){t[ll]=!0}var dh=new Set,hh={};function Ea(t,e){si(t,e),si(t+"Capture",e)}function si(t,e){for(hh[t]=e,t=0;t<e.length;t++)dh.add(e[t])}var Zx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mh={},ph={};function Qx(t){return Br.call(ph,t)?!0:Br.call(mh,t)?!1:Zx.test(t)?ph[t]=!0:(mh[t]=!0,!1)}function Ms(t,e,i){if(Qx(e))if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+i)}}function Ds(t,e,i){if(i===null)t.removeAttribute(e);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+i)}}function vn(t,e,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(e,i,""+l)}}function ke(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Px(t,e,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(v){i=""+v,c.call(this,v)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fr(t){if(!t._valueTracker){var e=gh(t)?"checked":"value";t._valueTracker=Px(t,e,""+t[e])}}function vh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var i=e.getValue(),l="";return t&&(l=gh(t)?t.checked?"true":"false":t.value),t=l,t!==i?(e.setValue(t),!0):!1}function zs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Jx=/[\n"\\]/g;function Ue(t){return t.replace(Jx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zr(t,e,i,l,r,c,v,x){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),e!=null?v==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ke(e)):t.value!==""+ke(e)&&(t.value=""+ke(e)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),e!=null?Qr(t,v,ke(e)):i!=null?Qr(t,v,ke(i)):l!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+ke(x):t.removeAttribute("name")}function yh(t,e,i,l,r,c,v,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Fr(t);return}i=i!=null?""+ke(i):"",e=e!=null?""+ke(e):i,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Fr(t)}function Qr(t,e,i){e==="number"&&zs(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function oi(t,e,i,l){if(t=t.options,e){e={};for(var r=0;r<i.length;r++)e["$"+i[r]]=!0;for(i=0;i<t.length;i++)r=e.hasOwnProperty("$"+t[i].value),t[i].selected!==r&&(t[i].selected=r),r&&l&&(t[i].defaultSelected=!0)}else{for(i=""+ke(i),e=null,r=0;r<t.length;r++){if(t[r].value===i){t[r].selected=!0,l&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function bh(t,e,i){if(e!=null&&(e=""+ke(e),e!==t.value&&(t.value=e),i==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=i!=null?""+ke(i):""}function xh(t,e,i,l){if(e==null){if(l!=null){if(i!=null)throw Error(o(92));if(Rt(l)){if(1<l.length)throw Error(o(93));l=l[0]}i=l}i==null&&(i=""),e=i}i=ke(e),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Fr(t)}function ri(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=e;return}}t.textContent=e}var Wx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Sh(t,e,i){var l=e.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,i):typeof i!="number"||i===0||Wx.has(e)?e==="float"?t.cssFloat=i:t[e]=(""+i).trim():t[e]=i+"px"}function Th(t,e,i){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var r in e)l=e[r],e.hasOwnProperty(r)&&i[r]!==l&&Sh(t,r,l)}else for(var c in e)e.hasOwnProperty(c)&&Sh(t,c,e[c])}function Pr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ix=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),t1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Os(t){return t1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function yn(){}var Jr=null;function Wr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ui=null,ci=null;function wh(t){var e=ii(t);if(e&&(t=e.stateNode)){var i=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zr(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),e=i.name,i.type==="radio"&&e!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Ue(""+e)+'"][type="radio"]'),e=0;e<i.length;e++){var l=i[e];if(l!==t&&l.form===t.form){var r=l[ve]||null;if(!r)throw Error(o(90));Zr(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<i.length;e++)l=i[e],l.form===t.form&&vh(l)}break t;case"textarea":bh(t,i.value,i.defaultValue);break t;case"select":e=i.value,e!=null&&oi(t,!!i.multiple,e,!1)}}}var Ir=!1;function Eh(t,e,i){if(Ir)return t(e,i);Ir=!0;try{var l=t(e);return l}finally{if(Ir=!1,(ui!==null||ci!==null)&&(xo(),ui&&(e=ui,t=ci,ci=ui=null,wh(e),t)))for(e=0;e<t.length;e++)wh(t[e])}}function ol(t,e){var i=t.stateNode;if(i===null)return null;var l=i[ve]||null;if(l===null)return null;i=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(o(231,e,typeof i));return i}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tu=!1;if(bn)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){tu=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{tu=!1}var $n=null,eu=null,Rs=null;function Ah(){if(Rs)return Rs;var t,e=eu,i=e.length,l,r="value"in $n?$n.value:$n.textContent,c=r.length;for(t=0;t<i&&e[t]===r[t];t++);var v=i-t;for(l=1;l<=v&&e[i-l]===r[c-l];l++);return Rs=r.slice(t,1<l?1-l:void 0)}function Ls(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Vs(){return!0}function jh(){return!1}function ye(t){function e(i,l,r,c,v){this._reactName=i,this._targetInst=r,this.type=l,this.nativeEvent=c,this.target=v,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(i=t[x],this[x]=i?i(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Vs:jh,this.isPropagationStopped=jh,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),e}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_s=ye(Aa),ul=b({},Aa,{view:0,detail:0}),e1=ye(ul),nu,au,cl,ks=b({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==cl&&(cl&&t.type==="mousemove"?(nu=t.screenX-cl.screenX,au=t.screenY-cl.screenY):au=nu=0,cl=t),nu)},movementY:function(t){return"movementY"in t?t.movementY:au}}),Nh=ye(ks),n1=b({},ks,{dataTransfer:0}),a1=ye(n1),i1=b({},ul,{relatedTarget:0}),iu=ye(i1),l1=b({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),s1=ye(l1),o1=b({},Aa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),r1=ye(o1),u1=b({},Aa,{data:0}),Ch=ye(u1),c1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f1={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"},d1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function h1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=d1[t])?!!e[t]:!1}function lu(){return h1}var m1=b({},ul,{key:function(t){if(t.key){var e=c1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ls(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?f1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(t){return t.type==="keypress"?Ls(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ls(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),p1=ye(m1),g1=b({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=ye(g1),v1=b({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),y1=ye(v1),b1=b({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=ye(b1),S1=b({},ks,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),T1=ye(S1),w1=b({},Aa,{newState:0,oldState:0}),E1=ye(w1),A1=[9,13,27,32],su=bn&&"CompositionEvent"in window,fl=null;bn&&"documentMode"in document&&(fl=document.documentMode);var j1=bn&&"TextEvent"in window&&!fl,Dh=bn&&(!su||fl&&8<fl&&11>=fl),zh=" ",Oh=!1;function Rh(t,e){switch(t){case"keyup":return A1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var fi=!1;function N1(t,e){switch(t){case"compositionend":return Lh(e);case"keypress":return e.which!==32?null:(Oh=!0,zh);case"textInput":return t=e.data,t===zh&&Oh?null:t;default:return null}}function C1(t,e){if(fi)return t==="compositionend"||!su&&Rh(t,e)?(t=Ah(),Rs=eu=$n=null,fi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Dh&&e.locale!=="ko"?null:e.data;default:return null}}var M1={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 Vh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!M1[t.type]:e==="textarea"}function _h(t,e,i,l){ui?ci?ci.push(l):ci=[l]:ui=l,e=No(e,"onChange"),0<e.length&&(i=new _s("onChange","change",null,i,l),t.push({event:i,listeners:e}))}var dl=null,hl=null;function D1(t){yg(t,0)}function Us(t){var e=sl(t);if(vh(e))return t}function kh(t,e){if(t==="change")return e}var Uh=!1;if(bn){var ou;if(bn){var ru="oninput"in document;if(!ru){var Bh=document.createElement("div");Bh.setAttribute("oninput","return;"),ru=typeof Bh.oninput=="function"}ou=ru}else ou=!1;Uh=ou&&(!document.documentMode||9<document.documentMode)}function Hh(){dl&&(dl.detachEvent("onpropertychange",$h),hl=dl=null)}function $h(t){if(t.propertyName==="value"&&Us(hl)){var e=[];_h(e,hl,t,Wr(t)),Eh(D1,e)}}function z1(t,e,i){t==="focusin"?(Hh(),dl=e,hl=i,dl.attachEvent("onpropertychange",$h)):t==="focusout"&&Hh()}function O1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Us(hl)}function R1(t,e){if(t==="click")return Us(e)}function L1(t,e){if(t==="input"||t==="change")return Us(e)}function V1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Me=typeof Object.is=="function"?Object.is:V1;function ml(t,e){if(Me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var i=Object.keys(t),l=Object.keys(e);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var r=i[l];if(!Br.call(e,r)||!Me(t[r],e[r]))return!1}return!0}function Gh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Yh(t,e){var i=Gh(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=e&&l>=e)return{node:i,offset:e-t};t=l}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=Gh(i)}}function qh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=zs(t.document);e instanceof t.HTMLIFrameElement;){try{var i=typeof e.contentWindow.location.href=="string"}catch{i=!1}if(i)t=e.contentWindow;else break;e=zs(t.document)}return e}function uu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var _1=bn&&"documentMode"in document&&11>=document.documentMode,di=null,cu=null,pl=null,fu=!1;function Kh(t,e,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;fu||di==null||di!==zs(l)||(l=di,"selectionStart"in l&&uu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),pl&&ml(pl,l)||(pl=l,l=No(cu,"onSelect"),0<l.length&&(e=new _s("onSelect","select",null,e,i),t.push({event:e,listeners:l}),e.target=di)))}function ja(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i}var hi={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},du={},Fh={};bn&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete hi.animationend.animation,delete hi.animationiteration.animation,delete hi.animationstart.animation),"TransitionEvent"in window||delete hi.transitionend.transition);function Na(t){if(du[t])return du[t];if(!hi[t])return t;var e=hi[t],i;for(i in e)if(e.hasOwnProperty(i)&&i in Fh)return du[t]=e[i];return t}var Zh=Na("animationend"),Qh=Na("animationiteration"),Ph=Na("animationstart"),k1=Na("transitionrun"),U1=Na("transitionstart"),B1=Na("transitioncancel"),Jh=Na("transitionend"),Wh=new Map,hu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hu.push("scrollEnd");function Je(t,e){Wh.set(t,e),Ea(e,[t])}var Bs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Be=[],mi=0,mu=0;function Hs(){for(var t=mi,e=mu=mi=0;e<t;){var i=Be[e];Be[e++]=null;var l=Be[e];Be[e++]=null;var r=Be[e];Be[e++]=null;var c=Be[e];if(Be[e++]=null,l!==null&&r!==null){var v=l.pending;v===null?r.next=r:(r.next=v.next,v.next=r),l.pending=r}c!==0&&Ih(i,r,c)}}function $s(t,e,i,l){Be[mi++]=t,Be[mi++]=e,Be[mi++]=i,Be[mi++]=l,mu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function pu(t,e,i,l){return $s(t,e,i,l),Gs(t)}function Ca(t,e){return $s(t,null,null,e),Gs(t)}function Ih(t,e,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var r=!1,c=t.return;c!==null;)c.childLanes|=i,l=c.alternate,l!==null&&(l.childLanes|=i),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-Ce(i),t=c.hiddenUpdates,l=t[r],l===null?t[r]=[e]:l.push(e),e.lane=i|536870912),c):null}function Gs(t){if(50<kl)throw kl=0,Ec=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var pi={};function H1(t,e,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,i,l){return new H1(t,e,i,l)}function gu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xn(t,e){var i=t.alternate;return i===null?(i=De(t.tag,e,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=e,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,e=t.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function tm(t,e){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,e=i.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ys(t,e,i,l,r,c){var v=0;if(l=t,typeof t=="function")gu(t)&&(v=1);else if(typeof t=="string")v=XS(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case xt:return t=De(31,i,e,r),t.elementType=xt,t.lanes=c,t;case E:return Ma(i.children,r,c,e);case C:v=8,r|=24;break;case N:return t=De(12,i,e,r|2),t.elementType=N,t.lanes=c,t;case X:return t=De(13,i,e,r),t.elementType=X,t.lanes=c,t;case tt:return t=De(19,i,e,r),t.elementType=tt,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:v=10;break t;case V:v=9;break t;case H:v=11;break t;case F:v=14;break t;case nt:v=16,l=null;break t}v=29,i=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=De(v,i,e,r),e.elementType=t,e.type=l,e.lanes=c,e}function Ma(t,e,i,l){return t=De(7,t,l,e),t.lanes=i,t}function vu(t,e,i){return t=De(6,t,null,e),t.lanes=i,t}function em(t){var e=De(18,null,null,0);return e.stateNode=t,e}function yu(t,e,i){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=i,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var nm=new WeakMap;function He(t,e){if(typeof t=="object"&&t!==null){var i=nm.get(t);return i!==void 0?i:(e={value:t,source:e,stack:eh(e)},nm.set(t,e),e)}return{value:t,source:e,stack:eh(e)}}var gi=[],vi=0,qs=null,gl=0,$e=[],Ge=0,Gn=null,sn=1,on="";function Sn(t,e){gi[vi++]=gl,gi[vi++]=qs,qs=t,gl=e}function am(t,e,i){$e[Ge++]=sn,$e[Ge++]=on,$e[Ge++]=Gn,Gn=t;var l=sn;t=on;var r=32-Ce(l)-1;l&=~(1<<r),i+=1;var c=32-Ce(e)+r;if(30<c){var v=r-r%5;c=(l&(1<<v)-1).toString(32),l>>=v,r-=v,sn=1<<32-Ce(e)+r|i<<r|l,on=c+t}else sn=1<<c|i<<r|l,on=t}function bu(t){t.return!==null&&(Sn(t,1),am(t,1,0))}function xu(t){for(;t===qs;)qs=gi[--vi],gi[vi]=null,gl=gi[--vi],gi[vi]=null;for(;t===Gn;)Gn=$e[--Ge],$e[Ge]=null,on=$e[--Ge],$e[Ge]=null,sn=$e[--Ge],$e[Ge]=null}function im(t,e){$e[Ge++]=sn,$e[Ge++]=on,$e[Ge++]=Gn,sn=e.id,on=e.overflow,Gn=t}var ie=null,_t=null,yt=!1,Yn=null,Ye=!1,Su=Error(o(519));function qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(He(e,t)),Su}function lm(t){var e=t.stateNode,i=t.type,l=t.memoizedProps;switch(e[ae]=t,e[ve]=l,i){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(i=0;i<Bl.length;i++)mt(Bl[i],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),yh(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),xh(e,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||e.textContent===""+i||l.suppressHydrationWarning===!0||Tg(e.textContent,i)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=yn),e=!0):e=!1,e||qn(t,!0)}function sm(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ie=ie.return}}function yi(t){if(t!==ie)return!1;if(!yt)return sm(t),yt=!0,!1;var e=t.tag,i;if((i=e!==3&&e!==27)&&((i=e===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Bc(t.type,t.memoizedProps)),i=!i),i&&_t&&qn(t),sm(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=zg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=zg(t)}else e===27?(e=_t,ia(t.type)?(t=qc,qc=null,_t=t):_t=e):_t=ie?Xe(t.stateNode.nextSibling):null;return!0}function Da(){_t=ie=null,yt=!1}function Tu(){var t=Yn;return t!==null&&(Te===null?Te=t:Te.push.apply(Te,t),Yn=null),t}function vl(t){Yn===null?Yn=[t]:Yn.push(t)}var wu=M(null),za=null,Tn=null;function Xn(t,e,i){q(wu,e._currentValue),e._currentValue=i}function wn(t){t._currentValue=wu.current,G(wu)}function Eu(t,e,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===i)break;t=t.return}}function Au(t,e,i,l){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var v=r.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=r;for(var j=0;j<e.length;j++)if(x.context===e[j]){c.lanes|=i,x=c.alternate,x!==null&&(x.lanes|=i),Eu(c.return,i,t),l||(v=null);break t}c=x.next}}else if(r.tag===18){if(v=r.return,v===null)throw Error(o(341));v.lanes|=i,c=v.alternate,c!==null&&(c.lanes|=i),Eu(v,i,t),v=null}else v=r.child;if(v!==null)v.return=r;else for(v=r;v!==null;){if(v===t){v=null;break}if(r=v.sibling,r!==null){r.return=v.return,v=r;break}v=v.return}r=v}}function bi(t,e,i,l){t=null;for(var r=e,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var v=r.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var x=r.type;Me(r.pendingProps.value,v.value)||(t!==null?t.push(x):t=[x])}}else if(r===bt.current){if(v=r.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(ql):t=[ql])}r=r.return}t!==null&&Au(e,t,i,l),e.flags|=262144}function Xs(t){for(t=t.firstContext;t!==null;){if(!Me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oa(t){za=t,Tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return om(za,t)}function Ks(t,e){return za===null&&Oa(t),om(t,e)}function om(t,e){var i=e._currentValue;if(e={context:e,memoizedValue:i,next:null},Tn===null){if(t===null)throw Error(o(308));Tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Tn=Tn.next=e;return i}var $1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(i){return i()})}},G1=n.unstable_scheduleCallback,Y1=n.unstable_NormalPriority,Zt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ju(){return{controller:new $1,data:new Map,refCount:0}}function yl(t){t.refCount--,t.refCount===0&&G1(Y1,function(){t.controller.abort()})}var bl=null,Nu=0,xi=0,Si=null;function q1(t,e){if(bl===null){var i=bl=[];Nu=0,xi=Dc(),Si={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Nu++,e.then(rm,rm),e}function rm(){if(--Nu===0&&bl!==null){Si!==null&&(Si.status="fulfilled");var t=bl;bl=null,xi=0,Si=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X1(t,e){var i=[],l={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var r=0;r<i.length;r++)(0,i[r])(e)},function(r){for(l.status="rejected",l.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),l}var um=U.S;U.S=function(t,e){Kp=je(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&q1(t,e),um!==null&&um(t,e)};var Ra=M(null);function Cu(){var t=Ra.current;return t!==null?t:Vt.pooledCache}function Fs(t,e){e===null?q(Ra,Ra.current):q(Ra,e.pool)}function cm(){var t=Cu();return t===null?null:{parent:Zt._currentValue,pool:t}}var Ti=Error(o(460)),Mu=Error(o(474)),Zs=Error(o(542)),Qs={then:function(){}};function fm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dm(t,e,i){switch(i=t[i],i===void 0?t.push(e):i!==e&&(e.then(yn,yn),e=i),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,mm(t),t;default:if(typeof e.status=="string")e.then(yn,yn);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=l}},function(l){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,mm(t),t}throw Va=e,Ti}}function La(t){try{var e=t._init;return e(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Va=i,Ti):i}}var Va=null;function hm(){if(Va===null)throw Error(o(459));var t=Va;return Va=null,t}function mm(t){if(t===Ti||t===Zs)throw Error(o(483))}var wi=null,xl=0;function Ps(t){var e=xl;return xl+=1,wi===null&&(wi=[]),dm(wi,t,e)}function Sl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Js(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function pm(t){function e(z,D){if(t){var O=z.deletions;O===null?(z.deletions=[D],z.flags|=16):O.push(D)}}function i(z,D){if(!t)return null;for(;D!==null;)e(z,D),D=D.sibling;return null}function l(z){for(var D=new Map;z!==null;)z.key!==null?D.set(z.key,z):D.set(z.index,z),z=z.sibling;return D}function r(z,D){return z=xn(z,D),z.index=0,z.sibling=null,z}function c(z,D,O){return z.index=O,t?(O=z.alternate,O!==null?(O=O.index,O<D?(z.flags|=67108866,D):O):(z.flags|=67108866,D)):(z.flags|=1048576,D)}function v(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function x(z,D,O,$){return D===null||D.tag!==6?(D=vu(O,z.mode,$),D.return=z,D):(D=r(D,O),D.return=z,D)}function j(z,D,O,$){var et=O.type;return et===E?B(z,D,O.props.children,$,O.key):D!==null&&(D.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===nt&&La(et)===D.type)?(D=r(D,O.props),Sl(D,O),D.return=z,D):(D=Ys(O.type,O.key,O.props,null,z.mode,$),Sl(D,O),D.return=z,D)}function R(z,D,O,$){return D===null||D.tag!==4||D.stateNode.containerInfo!==O.containerInfo||D.stateNode.implementation!==O.implementation?(D=yu(O,z.mode,$),D.return=z,D):(D=r(D,O.children||[]),D.return=z,D)}function B(z,D,O,$,et){return D===null||D.tag!==7?(D=Ma(O,z.mode,$,et),D.return=z,D):(D=r(D,O),D.return=z,D)}function Y(z,D,O){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=vu(""+D,z.mode,O),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return O=Ys(D.type,D.key,D.props,null,z.mode,O),Sl(O,D),O.return=z,O;case A:return D=yu(D,z.mode,O),D.return=z,D;case nt:return D=La(D),Y(z,D,O)}if(Rt(D)||vt(D))return D=Ma(D,z.mode,O,null),D.return=z,D;if(typeof D.then=="function")return Y(z,Ps(D),O);if(D.$$typeof===_)return Y(z,Ks(z,D),O);Js(z,D)}return null}function L(z,D,O,$){var et=D!==null?D.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return et!==null?null:x(z,D,""+O,$);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return O.key===et?j(z,D,O,$):null;case A:return O.key===et?R(z,D,O,$):null;case nt:return O=La(O),L(z,D,O,$)}if(Rt(O)||vt(O))return et!==null?null:B(z,D,O,$,null);if(typeof O.then=="function")return L(z,D,Ps(O),$);if(O.$$typeof===_)return L(z,D,Ks(z,O),$);Js(z,O)}return null}function k(z,D,O,$,et){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return z=z.get(O)||null,x(D,z,""+$,et);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return z=z.get($.key===null?O:$.key)||null,j(D,z,$,et);case A:return z=z.get($.key===null?O:$.key)||null,R(D,z,$,et);case nt:return $=La($),k(z,D,O,$,et)}if(Rt($)||vt($))return z=z.get(O)||null,B(D,z,$,et,null);if(typeof $.then=="function")return k(z,D,O,Ps($),et);if($.$$typeof===_)return k(z,D,O,Ks(D,$),et);Js(D,$)}return null}function J(z,D,O,$){for(var et=null,St=null,I=D,ut=D=0,gt=null;I!==null&&ut<O.length;ut++){I.index>ut?(gt=I,I=null):gt=I.sibling;var Tt=L(z,I,O[ut],$);if(Tt===null){I===null&&(I=gt);break}t&&I&&Tt.alternate===null&&e(z,I),D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt,I=gt}if(ut===O.length)return i(z,I),yt&&Sn(z,ut),et;if(I===null){for(;ut<O.length;ut++)I=Y(z,O[ut],$),I!==null&&(D=c(I,D,ut),St===null?et=I:St.sibling=I,St=I);return yt&&Sn(z,ut),et}for(I=l(I);ut<O.length;ut++)gt=k(I,z,ut,O[ut],$),gt!==null&&(t&>.alternate!==null&&I.delete(gt.key===null?ut:gt.key),D=c(gt,D,ut),St===null?et=gt:St.sibling=gt,St=gt);return t&&I.forEach(function(ua){return e(z,ua)}),yt&&Sn(z,ut),et}function at(z,D,O,$){if(O==null)throw Error(o(151));for(var et=null,St=null,I=D,ut=D=0,gt=null,Tt=O.next();I!==null&&!Tt.done;ut++,Tt=O.next()){I.index>ut?(gt=I,I=null):gt=I.sibling;var ua=L(z,I,Tt.value,$);if(ua===null){I===null&&(I=gt);break}t&&I&&ua.alternate===null&&e(z,I),D=c(ua,D,ut),St===null?et=ua:St.sibling=ua,St=ua,I=gt}if(Tt.done)return i(z,I),yt&&Sn(z,ut),et;if(I===null){for(;!Tt.done;ut++,Tt=O.next())Tt=Y(z,Tt.value,$),Tt!==null&&(D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt);return yt&&Sn(z,ut),et}for(I=l(I);!Tt.done;ut++,Tt=O.next())Tt=k(I,z,ut,Tt.value,$),Tt!==null&&(t&&Tt.alternate!==null&&I.delete(Tt.key===null?ut:Tt.key),D=c(Tt,D,ut),St===null?et=Tt:St.sibling=Tt,St=Tt);return t&&I.forEach(function(nT){return e(z,nT)}),yt&&Sn(z,ut),et}function Dt(z,D,O,$){if(typeof O=="object"&&O!==null&&O.type===E&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case T:t:{for(var et=O.key;D!==null;){if(D.key===et){if(et=O.type,et===E){if(D.tag===7){i(z,D.sibling),$=r(D,O.props.children),$.return=z,z=$;break t}}else if(D.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===nt&&La(et)===D.type){i(z,D.sibling),$=r(D,O.props),Sl($,O),$.return=z,z=$;break t}i(z,D);break}else e(z,D);D=D.sibling}O.type===E?($=Ma(O.props.children,z.mode,$,O.key),$.return=z,z=$):($=Ys(O.type,O.key,O.props,null,z.mode,$),Sl($,O),$.return=z,z=$)}return v(z);case A:t:{for(et=O.key;D!==null;){if(D.key===et)if(D.tag===4&&D.stateNode.containerInfo===O.containerInfo&&D.stateNode.implementation===O.implementation){i(z,D.sibling),$=r(D,O.children||[]),$.return=z,z=$;break t}else{i(z,D);break}else e(z,D);D=D.sibling}$=yu(O,z.mode,$),$.return=z,z=$}return v(z);case nt:return O=La(O),Dt(z,D,O,$)}if(Rt(O))return J(z,D,O,$);if(vt(O)){if(et=vt(O),typeof et!="function")throw Error(o(150));return O=et.call(O),at(z,D,O,$)}if(typeof O.then=="function")return Dt(z,D,Ps(O),$);if(O.$$typeof===_)return Dt(z,D,Ks(z,O),$);Js(z,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,D!==null&&D.tag===6?(i(z,D.sibling),$=r(D,O),$.return=z,z=$):(i(z,D),$=vu(O,z.mode,$),$.return=z,z=$),v(z)):i(z,D)}return function(z,D,O,$){try{xl=0;var et=Dt(z,D,O,$);return wi=null,et}catch(I){if(I===Ti||I===Zs)throw I;var St=De(29,I,null,z.mode);return St.lanes=$,St.return=z,St}finally{}}}var _a=pm(!0),gm=pm(!1),Kn=!1;function Du(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(wt&2)!==0){var r=l.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),l.pending=e,e=Gs(t),Ih(t,null,i),e}return $s(t,l,e,i),Gs(t)}function Tl(t,e,i){if(e=e.updateQueue,e!==null&&(e=e.shared,(i&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,oh(t,i)}}function Ou(t,e){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var r=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?r=c=v:c=c.next=v,i=i.next}while(i!==null);c===null?r=c=e:c=c.next=e}else r=c=e;i={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=e:t.next=e,i.lastBaseUpdate=e}var Ru=!1;function wl(){if(Ru){var t=Si;if(t!==null)throw t}}function El(t,e,i,l){Ru=!1;var r=t.updateQueue;Kn=!1;var c=r.firstBaseUpdate,v=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var j=x,R=j.next;j.next=null,v===null?c=R:v.next=R,v=j;var B=t.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==v&&(x===null?B.firstBaseUpdate=R:x.next=R,B.lastBaseUpdate=j))}if(c!==null){var Y=r.baseState;v=0,B=R=j=null,x=c;do{var L=x.lane&-536870913,k=L!==x.lane;if(k?(pt&L)===L:(l&L)===L){L!==0&&L===xi&&(Ru=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var J=t,at=x;L=e;var Dt=i;switch(at.tag){case 1:if(J=at.payload,typeof J=="function"){Y=J.call(Dt,Y,L);break t}Y=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=at.payload,L=typeof J=="function"?J.call(Dt,Y,L):J,L==null)break t;Y=b({},Y,L);break t;case 2:Kn=!0}}L=x.callback,L!==null&&(t.flags|=64,k&&(t.flags|=8192),k=r.callbacks,k===null?r.callbacks=[L]:k.push(L))}else k={lane:L,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(R=B=k,j=Y):B=B.next=k,v|=L;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;k=x,x=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null}}while(!0);B===null&&(j=Y),r.baseState=j,r.firstBaseUpdate=R,r.lastBaseUpdate=B,c===null&&(r.shared.lanes=0),In|=v,t.lanes=v,t.memoizedState=Y}}function vm(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function ym(t,e){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)vm(i[t],e)}var Ei=M(null),Ws=M(0);function bm(t,e){t=On,q(Ws,t),q(Ei,e),On=t|e.baseLanes}function Lu(){q(Ws,On),q(Ei,Ei.current)}function Vu(){On=Ws.current,G(Ei),G(Ws)}var ze=M(null),qe=null;function Qn(t){var e=t.alternate;q(qt,qt.current&1),q(ze,t),qe===null&&(e===null||Ei.current!==null||e.memoizedState!==null)&&(qe=t)}function _u(t){q(qt,qt.current),q(ze,t),qe===null&&(qe=t)}function xm(t){t.tag===22?(q(qt,qt.current),q(ze,t),qe===null&&(qe=t)):Pn()}function Pn(){q(qt,qt.current),q(ze,ze.current)}function Oe(t){G(ze),qe===t&&(qe=null),G(qt)}var qt=M(0);function Is(t){for(var e=t;e!==null;){if(e.tag===13){var i=e.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gc(i)||Yc(i)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var En=0,rt=null,Ct=null,Qt=null,to=!1,Ai=!1,ka=!1,eo=0,Al=0,ji=null,K1=0;function Ht(){throw Error(o(321))}function ku(t,e){if(e===null)return!1;for(var i=0;i<e.length&&i<t.length;i++)if(!Me(t[i],e[i]))return!1;return!0}function Uu(t,e,i,l,r,c){return En=c,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?ap:Iu,ka=!1,c=i(l,r),ka=!1,Ai&&(c=Tm(e,i,l,r)),Sm(t),c}function Sm(t){U.H=Cl;var e=Ct!==null&&Ct.next!==null;if(En=0,Qt=Ct=rt=null,to=!1,Al=0,ji=null,e)throw Error(o(300));t===null||Pt||(t=t.dependencies,t!==null&&Xs(t)&&(Pt=!0))}function Tm(t,e,i,l){rt=t;var r=0;do{if(Ai&&(ji=null),Al=0,Ai=!1,25<=r)throw Error(o(301));if(r+=1,Qt=Ct=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=ip,c=e(i,l)}while(Ai);return c}function F1(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?jl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(rt.flags|=1024),e}function Bu(){var t=eo!==0;return eo=0,t}function Hu(t,e,i){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i}function $u(t){if(to){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}to=!1}En=0,Qt=Ct=rt=null,Ai=!1,Al=eo=0,ji=null}function he(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?rt.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Xt(){if(Ct===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Qt===null?rt.memoizedState:Qt.next;if(e!==null)Qt=e,Ct=t;else{if(t===null)throw rt.alternate===null?Error(o(467)):Error(o(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Qt===null?rt.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function no(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jl(t){var e=Al;return Al+=1,ji===null&&(ji=[]),t=dm(ji,t,e),e=rt,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?ap:Iu),t}function ao(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return jl(t);if(t.$$typeof===_)return le(t)}throw Error(o(438,String(t)))}function Gu(t){var e=null,i=rt.updateQueue;if(i!==null&&(e=i.memoCache),e==null){var l=rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),i===null&&(i=no(),rt.updateQueue=i),i.memoCache=e,i=e.data[e.index],i===void 0)for(i=e.data[e.index]=Array(t),l=0;l<t;l++)i[l]=P;return e.index++,i}function An(t,e){return typeof e=="function"?e(t):e}function io(t){var e=Xt();return Yu(e,Ct,t)}function Yu(t,e,i){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=i;var r=t.baseQueue,c=l.pending;if(c!==null){if(r!==null){var v=r.next;r.next=c.next,c.next=v}e.baseQueue=r=c,l.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var x=v=null,j=null,R=e,B=!1;do{var Y=R.lane&-536870913;if(Y!==R.lane?(pt&Y)===Y:(En&Y)===Y){var L=R.revertLane;if(L===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),Y===xi&&(B=!0);else if((En&L)===L){R=R.next,L===xi&&(B=!0);continue}else Y={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},j===null?(x=j=Y,v=c):j=j.next=Y,rt.lanes|=L,In|=L;Y=R.action,ka&&i(c,Y),c=R.hasEagerState?R.eagerState:i(c,Y)}else L={lane:Y,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},j===null?(x=j=L,v=c):j=j.next=L,rt.lanes|=Y,In|=Y;R=R.next}while(R!==null&&R!==e);if(j===null?v=c:j.next=x,!Me(c,t.memoizedState)&&(Pt=!0,B&&(i=Si,i!==null)))throw i;t.memoizedState=c,t.baseState=v,t.baseQueue=j,l.lastRenderedState=c}return r===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function qu(t){var e=Xt(),i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=t;var l=i.dispatch,r=i.pending,c=e.memoizedState;if(r!==null){i.pending=null;var v=r=r.next;do c=t(c,v.action),v=v.next;while(v!==r);Me(c,e.memoizedState)||(Pt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),i.lastRenderedState=c}return[c,l]}function wm(t,e,i){var l=rt,r=Xt(),c=yt;if(c){if(i===void 0)throw Error(o(407));i=i()}else i=e();var v=!Me((Ct||r).memoizedState,i);if(v&&(r.memoizedState=i,Pt=!0),r=r.queue,Fu(jm.bind(null,l,r,t),[t]),r.getSnapshot!==e||v||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Ni(9,{destroy:void 0},Am.bind(null,l,r,i,e),null),Vt===null)throw Error(o(349));c||(En&127)!==0||Em(l,e,i)}return i}function Em(t,e,i){t.flags|=16384,t={getSnapshot:e,value:i},e=rt.updateQueue,e===null?(e=no(),rt.updateQueue=e,e.stores=[t]):(i=e.stores,i===null?e.stores=[t]:i.push(t))}function Am(t,e,i,l){e.value=i,e.getSnapshot=l,Nm(e)&&Cm(t)}function jm(t,e,i){return i(function(){Nm(e)&&Cm(t)})}function Nm(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!Me(t,i)}catch{return!0}}function Cm(t){var e=Ca(t,2);e!==null&&we(e,t,2)}function Xu(t){var e=he();if(typeof t=="function"){var i=t;if(t=i(),ka){Bn(!0);try{i()}finally{Bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:t},e}function Mm(t,e,i,l){return t.baseState=i,Yu(t,Ct,typeof l=="function"?l:An)}function Z1(t,e,i,l,r){if(oo(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){c.listeners.push(v)}};U.T!==null?i(!0):c.isTransition=!1,l(c),i=e.pending,i===null?(c.next=e.pending=c,Dm(e,c)):(c.next=i.next,e.pending=i.next=c)}}function Dm(t,e){var i=e.action,l=e.payload,r=t.state;if(e.isTransition){var c=U.T,v={};U.T=v;try{var x=i(r,l),j=U.S;j!==null&&j(v,x),zm(t,e,x)}catch(R){Ku(t,e,R)}finally{c!==null&&v.types!==null&&(c.types=v.types),U.T=c}}else try{c=i(r,l),zm(t,e,c)}catch(R){Ku(t,e,R)}}function zm(t,e,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Om(t,e,l)},function(l){return Ku(t,e,l)}):Om(t,e,i)}function Om(t,e,i){e.status="fulfilled",e.value=i,Rm(e),t.state=i,e=t.pending,e!==null&&(i=e.next,i===e?t.pending=null:(i=i.next,e.next=i,Dm(t,i)))}function Ku(t,e,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=i,Rm(e),e=e.next;while(e!==l)}t.action=null}function Rm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Lm(t,e){return e}function Vm(t,e){if(yt){var i=Vt.formState;if(i!==null){t:{var l=rt;if(yt){if(_t){e:{for(var r=_t,c=Ye;r.nodeType!==8;){if(!c){r=null;break e}if(r=Xe(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){_t=Xe(r.nextSibling),l=r.data==="F!";break t}}qn(l)}l=!1}l&&(e=i[0])}}return i=he(),i.memoizedState=i.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lm,lastRenderedState:e},i.queue=l,i=tp.bind(null,rt,l),l.dispatch=i,l=Xu(!1),c=Wu.bind(null,rt,!1,l.queue),l=he(),r={state:e,dispatch:null,action:t,pending:null},l.queue=r,i=Z1.bind(null,rt,r,c,i),r.dispatch=i,l.memoizedState=t,[e,i,!1]}function _m(t){var e=Xt();return km(e,Ct,t)}function km(t,e,i){if(e=Yu(t,e,Lm)[0],t=io(An)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=jl(e)}catch(v){throw v===Ti?Zs:v}else l=e;e=Xt();var r=e.queue,c=r.dispatch;return i!==e.memoizedState&&(rt.flags|=2048,Ni(9,{destroy:void 0},Q1.bind(null,r,i),null)),[l,c,t]}function Q1(t,e){t.action=e}function Um(t){var e=Xt(),i=Ct;if(i!==null)return km(e,i,t);Xt(),e=e.memoizedState,i=Xt();var l=i.queue.dispatch;return i.memoizedState=t,[e,l,!1]}function Ni(t,e,i,l){return t={tag:t,create:i,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=no(),rt.updateQueue=e),i=e.lastEffect,i===null?e.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,e.lastEffect=t),t}function Bm(){return Xt().memoizedState}function lo(t,e,i,l){var r=he();rt.flags|=t,r.memoizedState=Ni(1|e,{destroy:void 0},i,l===void 0?null:l)}function so(t,e,i,l){var r=Xt();l=l===void 0?null:l;var c=r.memoizedState.inst;Ct!==null&&l!==null&&ku(l,Ct.memoizedState.deps)?r.memoizedState=Ni(e,c,i,l):(rt.flags|=t,r.memoizedState=Ni(1|e,c,i,l))}function Hm(t,e){lo(8390656,8,t,e)}function Fu(t,e){so(2048,8,t,e)}function P1(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=no(),rt.updateQueue=e,e.events=[t];else{var i=e.events;i===null?e.events=[t]:i.push(t)}}function $m(t){var e=Xt().memoizedState;return P1({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Gm(t,e){return so(4,2,t,e)}function Ym(t,e){return so(4,4,t,e)}function qm(t,e){if(typeof e=="function"){t=t();var i=e(t);return function(){typeof i=="function"?i():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Xm(t,e,i){i=i!=null?i.concat([t]):null,so(4,4,qm.bind(null,e,t),i)}function Zu(){}function Km(t,e){var i=Xt();e=e===void 0?null:e;var l=i.memoizedState;return e!==null&&ku(e,l[1])?l[0]:(i.memoizedState=[t,e],t)}function Fm(t,e){var i=Xt();e=e===void 0?null:e;var l=i.memoizedState;if(e!==null&&ku(e,l[1]))return l[0];if(l=t(),ka){Bn(!0);try{t()}finally{Bn(!1)}}return i.memoizedState=[l,e],l}function Qu(t,e,i){return i===void 0||(En&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=i,t=Zp(),rt.lanes|=t,In|=t,i)}function Zm(t,e,i,l){return Me(i,e)?i:Ei.current!==null?(t=Qu(t,i,l),Me(t,e)||(Pt=!0),t):(En&42)===0||(En&1073741824)!==0&&(pt&261930)===0?(Pt=!0,t.memoizedState=i):(t=Zp(),rt.lanes|=t,In|=t,e)}function Qm(t,e,i,l,r){var c=K.p;K.p=c!==0&&8>c?c:8;var v=U.T,x={};U.T=x,Wu(t,!1,e,i);try{var j=r(),R=U.S;if(R!==null&&R(x,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var B=X1(j,l);Nl(t,e,B,Ve(t))}else Nl(t,e,l,Ve(t))}catch(Y){Nl(t,e,{then:function(){},status:"rejected",reason:Y},Ve())}finally{K.p=c,v!==null&&x.types!==null&&(v.types=x.types),U.T=v}}function J1(){}function Pu(t,e,i,l){if(t.tag!==5)throw Error(o(476));var r=Pm(t).queue;Qm(t,r,e,Z,i===null?J1:function(){return Jm(t),i(l)})}function Pm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Z},next:null};var i={};return e.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:i},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Jm(t){var e=Pm(t);e.next===null&&(e=t.alternate.memoizedState),Nl(t,e.next.queue,{},Ve())}function Ju(){return le(ql)}function Wm(){return Xt().memoizedState}function Im(){return Xt().memoizedState}function W1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var i=Ve();t=Fn(i);var l=Zn(e,t,i);l!==null&&(we(l,e,i),Tl(l,e,i)),e={cache:ju()},t.payload=e;return}e=e.return}}function I1(t,e,i){var l=Ve();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},oo(t)?ep(e,i):(i=pu(t,e,i,l),i!==null&&(we(i,t,l),np(i,e,l)))}function tp(t,e,i){var l=Ve();Nl(t,e,i,l)}function Nl(t,e,i,l){var r={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(oo(t))ep(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var v=e.lastRenderedState,x=c(v,i);if(r.hasEagerState=!0,r.eagerState=x,Me(x,v))return $s(t,e,r,0),Vt===null&&Hs(),!1}catch{}finally{}if(i=pu(t,e,r,l),i!==null)return we(i,t,l),np(i,e,l),!0}return!1}function Wu(t,e,i,l){if(l={lane:2,revertLane:Dc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},oo(t)){if(e)throw Error(o(479))}else e=pu(t,i,l,2),e!==null&&we(e,t,2)}function oo(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function ep(t,e){Ai=to=!0;var i=t.pending;i===null?e.next=e:(e.next=i.next,i.next=e),t.pending=e}function np(t,e,i){if((i&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,i|=l,e.lanes=i,oh(t,i)}}var Cl={readContext:le,use:ao,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Cl.useEffectEvent=Ht;var ap={readContext:le,use:ao,useCallback:function(t,e){return he().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Hm,useImperativeHandle:function(t,e,i){i=i!=null?i.concat([t]):null,lo(4194308,4,qm.bind(null,e,t),i)},useLayoutEffect:function(t,e){return lo(4194308,4,t,e)},useInsertionEffect:function(t,e){lo(4,2,t,e)},useMemo:function(t,e){var i=he();e=e===void 0?null:e;var l=t();if(ka){Bn(!0);try{t()}finally{Bn(!1)}}return i.memoizedState=[l,e],l},useReducer:function(t,e,i){var l=he();if(i!==void 0){var r=i(e);if(ka){Bn(!0);try{i(e)}finally{Bn(!1)}}}else r=e;return l.memoizedState=l.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},l.queue=t,t=t.dispatch=I1.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=he();return t={current:t},e.memoizedState=t},useState:function(t){t=Xu(t);var e=t.queue,i=tp.bind(null,rt,e);return e.dispatch=i,[t.memoizedState,i]},useDebugValue:Zu,useDeferredValue:function(t,e){var i=he();return Qu(i,t,e)},useTransition:function(){var t=Xu(!1);return t=Qm.bind(null,rt,t.queue,!0,!1),he().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,i){var l=rt,r=he();if(yt){if(i===void 0)throw Error(o(407));i=i()}else{if(i=e(),Vt===null)throw Error(o(349));(pt&127)!==0||Em(l,e,i)}r.memoizedState=i;var c={value:i,getSnapshot:e};return r.queue=c,Hm(jm.bind(null,l,c,t),[t]),l.flags|=2048,Ni(9,{destroy:void 0},Am.bind(null,l,c,i,e),null),i},useId:function(){var t=he(),e=Vt.identifierPrefix;if(yt){var i=on,l=sn;i=(l&~(1<<32-Ce(l)-1)).toString(32)+i,e="_"+e+"R_"+i,i=eo++,0<i&&(e+="H"+i.toString(32)),e+="_"}else i=K1++,e="_"+e+"r_"+i.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ju,useFormState:Vm,useActionState:Vm,useOptimistic:function(t){var e=he();e.memoizedState=e.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=i,e=Wu.bind(null,rt,!0,i),i.dispatch=e,[t,e]},useMemoCache:Gu,useCacheRefresh:function(){return he().memoizedState=W1.bind(null,rt)},useEffectEvent:function(t){var e=he(),i={impl:t};return e.memoizedState=i,function(){if((wt&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Iu={readContext:le,use:ao,useCallback:Km,useContext:le,useEffect:Fu,useImperativeHandle:Xm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:Fm,useReducer:io,useRef:Bm,useState:function(){return io(An)},useDebugValue:Zu,useDeferredValue:function(t,e){var i=Xt();return Zm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=io(An)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:jl(t),e]},useSyncExternalStore:wm,useId:Wm,useHostTransitionStatus:Ju,useFormState:_m,useActionState:_m,useOptimistic:function(t,e){var i=Xt();return Mm(i,Ct,t,e)},useMemoCache:Gu,useCacheRefresh:Im};Iu.useEffectEvent=$m;var ip={readContext:le,use:ao,useCallback:Km,useContext:le,useEffect:Fu,useImperativeHandle:Xm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:Fm,useReducer:qu,useRef:Bm,useState:function(){return qu(An)},useDebugValue:Zu,useDeferredValue:function(t,e){var i=Xt();return Ct===null?Qu(i,t,e):Zm(i,Ct.memoizedState,t,e)},useTransition:function(){var t=qu(An)[0],e=Xt().memoizedState;return[typeof t=="boolean"?t:jl(t),e]},useSyncExternalStore:wm,useId:Wm,useHostTransitionStatus:Ju,useFormState:Um,useActionState:Um,useOptimistic:function(t,e){var i=Xt();return Ct!==null?Mm(i,Ct,t,e):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:Im};ip.useEffectEvent=$m;function tc(t,e,i,l){e=t.memoizedState,i=i(l,e),i=i==null?e:b({},e,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var ec={enqueueSetState:function(t,e,i){t=t._reactInternals;var l=Ve(),r=Fn(l);r.payload=e,i!=null&&(r.callback=i),e=Zn(t,r,l),e!==null&&(we(e,t,l),Tl(e,t,l))},enqueueReplaceState:function(t,e,i){t=t._reactInternals;var l=Ve(),r=Fn(l);r.tag=1,r.payload=e,i!=null&&(r.callback=i),e=Zn(t,r,l),e!==null&&(we(e,t,l),Tl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var i=Ve(),l=Fn(i);l.tag=2,e!=null&&(l.callback=e),e=Zn(t,l,i),e!==null&&(we(e,t,i),Tl(e,t,i))}};function lp(t,e,i,l,r,c,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,v):e.prototype&&e.prototype.isPureReactComponent?!ml(i,l)||!ml(r,c):!0}function sp(t,e,i,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(i,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(i,l),e.state!==t&&ec.enqueueReplaceState(e,e.state,null)}function Ua(t,e){var i=e;if("ref"in e){i={};for(var l in e)l!=="ref"&&(i[l]=e[l])}if(t=t.defaultProps){i===e&&(i=b({},i));for(var r in t)i[r]===void 0&&(i[r]=t[r])}return i}function op(t){Bs(t)}function rp(t){console.error(t)}function up(t){Bs(t)}function ro(t,e){try{var i=t.onUncaughtError;i(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function cp(t,e,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function nc(t,e,i){return i=Fn(i),i.tag=3,i.payload={element:null},i.callback=function(){ro(t,e)},i}function fp(t){return t=Fn(t),t.tag=3,t}function dp(t,e,i,l){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var c=l.value;t.payload=function(){return r(c)},t.callback=function(){cp(e,i,l)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){cp(e,i,l),typeof r!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function tS(t,e,i,l,r){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=i.alternate,e!==null&&bi(e,i,r,!0),i=ze.current,i!==null){switch(i.tag){case 31:case 13:return qe===null?So():i.alternate===null&&$t===0&&($t=3),i.flags&=-257,i.flags|=65536,i.lanes=r,l===Qs?i.flags|=16384:(e=i.updateQueue,e===null?i.updateQueue=new Set([l]):e.add(l),Nc(t,l,r)),!1;case 22:return i.flags|=65536,l===Qs?i.flags|=16384:(e=i.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=e):(i=e.retryQueue,i===null?e.retryQueue=new Set([l]):i.add(l)),Nc(t,l,r)),!1}throw Error(o(435,i.tag))}return Nc(t,l,r),So(),!1}if(yt)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,l!==Su&&(t=Error(o(422),{cause:l}),vl(He(t,i)))):(l!==Su&&(e=Error(o(423),{cause:l}),vl(He(e,i))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,l=He(l,i),r=nc(t.stateNode,l,r),Ou(t,r),$t!==4&&($t=2)),!1;var c=Error(o(520),{cause:l});if(c=He(c,i),_l===null?_l=[c]:_l.push(c),$t!==4&&($t=2),e===null)return!0;l=He(l,i),i=e;do{switch(i.tag){case 3:return i.flags|=65536,t=r&-r,i.lanes|=t,t=nc(i.stateNode,l,t),Ou(i,t),!1;case 1:if(e=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ta===null||!ta.has(c))))return i.flags|=65536,r&=-r,i.lanes|=r,r=fp(r),dp(r,t,i,l),Ou(i,r),!1}i=i.return}while(i!==null);return!1}var ac=Error(o(461)),Pt=!1;function se(t,e,i,l){e.child=t===null?gm(e,null,i,l):_a(e,t.child,i,l)}function hp(t,e,i,l,r){i=i.render;var c=e.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Oa(e),l=Uu(t,e,i,v,c,r),x=Bu(),t!==null&&!Pt?(Hu(t,e,r),jn(t,e,r)):(yt&&x&&bu(e),e.flags|=1,se(t,e,l,r),e.child)}function mp(t,e,i,l,r){if(t===null){var c=i.type;return typeof c=="function"&&!gu(c)&&c.defaultProps===void 0&&i.compare===null?(e.tag=15,e.type=c,pp(t,e,c,l,r)):(t=Ys(i.type,null,l,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!fc(t,r)){var v=c.memoizedProps;if(i=i.compare,i=i!==null?i:ml,i(v,l)&&t.ref===e.ref)return jn(t,e,r)}return e.flags|=1,t=xn(c,l),t.ref=e.ref,t.return=e,e.child=t}function pp(t,e,i,l,r){if(t!==null){var c=t.memoizedProps;if(ml(c,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=c,fc(t,r))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,jn(t,e,r)}return ic(t,e,i,l,r)}function gp(t,e,i,l){var r=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,t!==null){for(l=e.child=t.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~c}else l=0,e.child=null;return vp(t,e,c,i,l)}if((i&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fs(e,c!==null?c.cachePool:null),c!==null?bm(e,c):Lu(),xm(e);else return l=e.lanes=536870912,vp(t,e,c!==null?c.baseLanes|i:i,i,l)}else c!==null?(Fs(e,c.cachePool),bm(e,c),Pn(),e.memoizedState=null):(t!==null&&Fs(e,null),Lu(),Pn());return se(t,e,r,i),e.child}function Ml(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function vp(t,e,i,l,r){var c=Cu();return c=c===null?null:{parent:Zt._currentValue,pool:c},e.memoizedState={baseLanes:i,cachePool:c},t!==null&&Fs(e,null),Lu(),xm(e),t!==null&&bi(t,e,l,!0),e.childLanes=r,null}function uo(t,e){return e=fo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function yp(t,e,i){return _a(e,t.child,null,i),t=uo(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function eS(t,e,i){var l=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(l.mode==="hidden")return t=uo(e,l),e.lanes=536870912,Ml(null,t);if(_u(e),(t=_t)?(t=Dg(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=em(t),i.return=e,e.child=i,ie=e,_t=null)):t=null,t===null)throw qn(e);return e.lanes=536870912,null}return uo(e,l)}var c=t.memoizedState;if(c!==null){var v=c.dehydrated;if(_u(e),r)if(e.flags&256)e.flags&=-257,e=yp(t,e,i);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Pt||bi(t,e,i,!1),r=(i&t.childLanes)!==0,Pt||r){if(l=Vt,l!==null&&(v=rh(l,i),v!==0&&v!==c.retryLane))throw c.retryLane=v,Ca(t,v),we(l,t,v),ac;So(),e=yp(t,e,i)}else t=c.treeContext,_t=Xe(v.nextSibling),ie=e,yt=!0,Yn=null,Ye=!1,t!==null&&im(e,t),e=uo(e,l),e.flags|=4096;return e}return t=xn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function co(t,e){var i=e.ref;if(i===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(t===null||t.ref!==i)&&(e.flags|=4194816)}}function ic(t,e,i,l,r){return Oa(e),i=Uu(t,e,i,l,void 0,r),l=Bu(),t!==null&&!Pt?(Hu(t,e,r),jn(t,e,r)):(yt&&l&&bu(e),e.flags|=1,se(t,e,i,r),e.child)}function bp(t,e,i,l,r,c){return Oa(e),e.updateQueue=null,i=Tm(e,l,i,r),Sm(t),l=Bu(),t!==null&&!Pt?(Hu(t,e,c),jn(t,e,c)):(yt&&l&&bu(e),e.flags|=1,se(t,e,i,c),e.child)}function xp(t,e,i,l,r){if(Oa(e),e.stateNode===null){var c=pi,v=i.contextType;typeof v=="object"&&v!==null&&(c=le(v)),c=new i(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ec,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},Du(e),v=i.contextType,c.context=typeof v=="object"&&v!==null?le(v):pi,c.state=e.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(tc(e,i,v,l),c.state=e.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(v=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),v!==c.state&&ec.enqueueReplaceState(c,c.state,null),El(e,l,c,r),wl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,j=Ua(i,x);c.props=j;var R=c.context,B=i.contextType;v=pi,typeof B=="object"&&B!==null&&(v=le(B));var Y=i.getDerivedStateFromProps;B=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||R!==v)&&sp(e,c,l,v),Kn=!1;var L=e.memoizedState;c.state=L,El(e,l,c,r),wl(),R=e.memoizedState,x||L!==R||Kn?(typeof Y=="function"&&(tc(e,i,Y,l),R=e.memoizedState),(j=Kn||lp(e,i,j,l,L,R,v))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=R),c.props=l,c.state=R,c.context=v,l=j):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,zu(t,e),v=e.memoizedProps,B=Ua(i,v),c.props=B,Y=e.pendingProps,L=c.context,R=i.contextType,j=pi,typeof R=="object"&&R!==null&&(j=le(R)),x=i.getDerivedStateFromProps,(R=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v!==Y||L!==j)&&sp(e,c,l,j),Kn=!1,L=e.memoizedState,c.state=L,El(e,l,c,r),wl();var k=e.memoizedState;v!==Y||L!==k||Kn||t!==null&&t.dependencies!==null&&Xs(t.dependencies)?(typeof x=="function"&&(tc(e,i,x,l),k=e.memoizedState),(B=Kn||lp(e,i,B,l,L,k,j)||t!==null&&t.dependencies!==null&&Xs(t.dependencies))?(R||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,k,j),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,k,j)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||v===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=k),c.props=l,c.state=k,c.context=j,l=B):(typeof c.componentDidUpdate!="function"||v===t.memoizedProps&&L===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&L===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,co(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=_a(e,t.child,null,r),e.child=_a(e,null,i,r)):se(t,e,i,r),e.memoizedState=c.state,t=e.child):t=jn(t,e,r),t}function Sp(t,e,i,l){return Da(),e.flags|=256,se(t,e,i,l),e.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(t){return{baseLanes:t,cachePool:cm()}}function oc(t,e,i){return t=t!==null?t.childLanes&~i:0,e&&(t|=Le),t}function Tp(t,e,i){var l=e.pendingProps,r=!1,c=(e.flags&128)!==0,v;if((v=c)||(v=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),v&&(r=!0,e.flags&=-129),v=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(r?Qn(e):Pn(),(t=_t)?(t=Dg(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gn!==null?{id:sn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},i=em(t),i.return=e,e.child=i,ie=e,_t=null)):t=null,t===null)throw qn(e);return Yc(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,r?(Pn(),r=e.mode,x=fo({mode:"hidden",children:x},r),l=Ma(l,r,i,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=sc(i),l.childLanes=oc(t,v,i),e.memoizedState=lc,Ml(null,l)):(Qn(e),rc(e,x))}var j=t.memoizedState;if(j!==null&&(x=j.dehydrated,x!==null)){if(c)e.flags&256?(Qn(e),e.flags&=-257,e=uc(t,e,i)):e.memoizedState!==null?(Pn(),e.child=t.child,e.flags|=128,e=null):(Pn(),x=l.fallback,r=e.mode,l=fo({mode:"visible",children:l.children},r),x=Ma(x,r,i,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,_a(e,t.child,null,i),l=e.child,l.memoizedState=sc(i),l.childLanes=oc(t,v,i),e.memoizedState=lc,e=Ml(null,l));else if(Qn(e),Yc(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var R=v.dgst;v=R,l=Error(o(419)),l.stack="",l.digest=v,vl({value:l,source:null,stack:null}),e=uc(t,e,i)}else if(Pt||bi(t,e,i,!1),v=(i&t.childLanes)!==0,Pt||v){if(v=Vt,v!==null&&(l=rh(v,i),l!==0&&l!==j.retryLane))throw j.retryLane=l,Ca(t,l),we(v,t,l),ac;Gc(x)||So(),e=uc(t,e,i)}else Gc(x)?(e.flags|=192,e.child=t.child,e=null):(t=j.treeContext,_t=Xe(x.nextSibling),ie=e,yt=!0,Yn=null,Ye=!1,t!==null&&im(e,t),e=rc(e,l.children),e.flags|=4096);return e}return r?(Pn(),x=l.fallback,r=e.mode,j=t.child,R=j.sibling,l=xn(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,R!==null?x=xn(R,x):(x=Ma(x,r,i,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ml(null,l),l=e.child,x=t.child.memoizedState,x===null?x=sc(i):(r=x.cachePool,r!==null?(j=Zt._currentValue,r=r.parent!==j?{parent:j,pool:j}:r):r=cm(),x={baseLanes:x.baseLanes|i,cachePool:r}),l.memoizedState=x,l.childLanes=oc(t,v,i),e.memoizedState=lc,Ml(t.child,l)):(Qn(e),i=t.child,t=i.sibling,i=xn(i,{mode:"visible",children:l.children}),i.return=e,i.sibling=null,t!==null&&(v=e.deletions,v===null?(e.deletions=[t],e.flags|=16):v.push(t)),e.child=i,e.memoizedState=null,i)}function rc(t,e){return e=fo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function fo(t,e){return t=De(22,t,null,e),t.lanes=0,t}function uc(t,e,i){return _a(e,t.child,null,i),t=rc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function wp(t,e,i){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Eu(t.return,e,i)}function cc(t,e,i,l,r,c){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:r,treeForkCount:c}:(v.isBackwards=e,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=i,v.tailMode=r,v.treeForkCount=c)}function Ep(t,e,i){var l=e.pendingProps,r=l.revealOrder,c=l.tail;l=l.children;var v=qt.current,x=(v&2)!==0;if(x?(v=v&1|2,e.flags|=128):v&=1,q(qt,v),se(t,e,l,i),l=yt?gl:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wp(t,i,e);else if(t.tag===19)wp(t,i,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(i=e.child,r=null;i!==null;)t=i.alternate,t!==null&&Is(t)===null&&(r=i),i=i.sibling;i=r,i===null?(r=e.child,e.child=null):(r=i.sibling,i.sibling=null),cc(e,!1,r,i,c,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Is(t)===null){e.child=r;break}t=r.sibling,r.sibling=i,i=r,r=t}cc(e,!0,i,null,c,l);break;case"together":cc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function jn(t,e,i){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,(i&e.childLanes)===0)if(t!==null){if(bi(t,e,i,!1),(i&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,i=xn(t,t.pendingProps),e.child=i,i.return=e;t.sibling!==null;)t=t.sibling,i=i.sibling=xn(t,t.pendingProps),i.return=e;i.sibling=null}return e.child}function fc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Xs(t)))}function nS(t,e,i){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),Xn(e,Zt,t.memoizedState.cache),Da();break;case 27:case 5:el(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:Xn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,_u(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(e),e.flags|=128,null):(i&e.child.childLanes)!==0?Tp(t,e,i):(Qn(e),t=jn(t,e,i),t!==null?t.sibling:null);Qn(e);break;case 19:var r=(t.flags&128)!==0;if(l=(i&e.childLanes)!==0,l||(bi(t,e,i,!1),l=(i&e.childLanes)!==0),r){if(l)return Ep(t,e,i);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),q(qt,qt.current),l)break;return null;case 22:return e.lanes=0,gp(t,e,i,e.pendingProps);case 24:Xn(e,Zt,t.memoizedState.cache)}return jn(t,e,i)}function Ap(t,e,i){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!fc(t,i)&&(e.flags&128)===0)return Pt=!1,nS(t,e,i);Pt=(t.flags&131072)!==0}else Pt=!1,yt&&(e.flags&1048576)!==0&&am(e,gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=La(e.elementType),e.type=t,typeof t=="function")gu(t)?(l=Ua(t,l),e.tag=1,e=xp(null,e,t,l,i)):(e.tag=0,e=ic(null,e,t,l,i));else{if(t!=null){var r=t.$$typeof;if(r===H){e.tag=11,e=hp(null,e,t,l,i);break t}else if(r===F){e.tag=14,e=mp(null,e,t,l,i);break t}}throw e=Nt(t)||t,Error(o(306,e,""))}}return e;case 0:return ic(t,e,e.type,e.pendingProps,i);case 1:return l=e.type,r=Ua(l,e.pendingProps),xp(t,e,l,r,i);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;r=c.element,zu(t,e),El(e,l,null,i);var v=e.memoizedState;if(l=v.cache,Xn(e,Zt,l),l!==c.cache&&Au(e,[Zt],i,!0),wl(),l=v.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:v.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Sp(t,e,l,i);break t}else if(l!==r){r=He(Error(o(424)),e),vl(r),e=Sp(t,e,l,i);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=Xe(t.firstChild),ie=e,yt=!0,Yn=null,Ye=!0,i=gm(e,null,l,i),e.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Da(),l===r){e=jn(t,e,i);break t}se(t,e,l,i)}e=e.child}return e;case 26:return co(t,e),t===null?(i=_g(e.type,null,e.pendingProps,null))?e.memoizedState=i:yt||(i=e.type,t=e.pendingProps,l=Co(dt.current).createElement(i),l[ae]=e,l[ve]=t,oe(l,i,t),ee(l),e.stateNode=l):e.memoizedState=_g(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return el(e),t===null&&yt&&(l=e.stateNode=Rg(e.type,e.pendingProps,dt.current),ie=e,Ye=!0,r=_t,ia(e.type)?(qc=r,_t=Xe(l.firstChild)):_t=r),se(t,e,e.pendingProps.children,i),co(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((r=l=_t)&&(l=OS(l,e.type,e.pendingProps,Ye),l!==null?(e.stateNode=l,ie=e,_t=Xe(l.firstChild),Ye=!1,r=!0):r=!1),r||qn(e)),el(e),r=e.type,c=e.pendingProps,v=t!==null?t.memoizedProps:null,l=c.children,Bc(r,c)?l=null:v!==null&&Bc(r,v)&&(e.flags|=32),e.memoizedState!==null&&(r=Uu(t,e,F1,null,null,i),ql._currentValue=r),co(t,e),se(t,e,l,i),e.child;case 6:return t===null&&yt&&((t=i=_t)&&(i=RS(i,e.pendingProps,Ye),i!==null?(e.stateNode=i,ie=e,_t=null,t=!0):t=!1),t||qn(e)),null;case 13:return Tp(t,e,i);case 4:return Ft(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=_a(e,null,l,i):se(t,e,l,i),e.child;case 11:return hp(t,e,e.type,e.pendingProps,i);case 7:return se(t,e,e.pendingProps,i),e.child;case 8:return se(t,e,e.pendingProps.children,i),e.child;case 12:return se(t,e,e.pendingProps.children,i),e.child;case 10:return l=e.pendingProps,Xn(e,e.type,l.value),se(t,e,l.children,i),e.child;case 9:return r=e.type._context,l=e.pendingProps.children,Oa(e),r=le(r),l=l(r),e.flags|=1,se(t,e,l,i),e.child;case 14:return mp(t,e,e.type,e.pendingProps,i);case 15:return pp(t,e,e.type,e.pendingProps,i);case 19:return Ep(t,e,i);case 31:return eS(t,e,i);case 22:return gp(t,e,i,e.pendingProps);case 24:return Oa(e),l=le(Zt),t===null?(r=Cu(),r===null&&(r=Vt,c=ju(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=i),r=c),e.memoizedState={parent:l,cache:r},Du(e),Xn(e,Zt,r)):((t.lanes&i)!==0&&(zu(t,e),El(e,null,null,i),wl()),r=t.memoizedState,c=e.memoizedState,r.parent!==l?(r={parent:l,cache:l},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Xn(e,Zt,l)):(l=c.cache,Xn(e,Zt,l),l!==r.cache&&Au(e,[Zt],i,!0))),se(t,e,e.pendingProps.children,i),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Nn(t){t.flags|=4}function dc(t,e,i,l,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Wp())t.flags|=8192;else throw Va=Qs,Mu}else t.flags&=-16777217}function jp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!$g(e))if(Wp())t.flags|=8192;else throw Va=Qs,Mu}function ho(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?lh():536870912,t.lanes|=e,zi|=e)}function Dl(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var i=null;e!==null;)e.alternate!==null&&(i=e),e=e.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function kt(t){var e=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(e)for(var r=t.child;r!==null;)i|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)i|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=l,t.childLanes=i,e}function aS(t,e,i){var l=e.pendingProps;switch(xu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(e),null;case 1:return kt(e),null;case 3:return i=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),wn(Zt),Lt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(yi(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Tu())),kt(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(Nn(e),c!==null?(kt(e),jp(e,c)):(kt(e),dc(e,r,null,l,i))):c?c!==t.memoizedState?(Nn(e),kt(e),jp(e,c)):(kt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&Nn(e),kt(e),dc(e,r,t,l,i)),null;case 27:if(ws(e),i=dt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return kt(e),null}t=Q.current,yi(e)?lm(e):(t=Rg(r,l,i),e.stateNode=t,Nn(e))}return kt(e),null;case 5:if(ws(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return kt(e),null}if(c=Q.current,yi(e))lm(e);else{var v=Co(dt.current);switch(c){case 1:c=v.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=v.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=v.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=v.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=v.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?v.createElement(r,{is:l.is}):v.createElement(r)}}c[ae]=e,c[ve]=l;t:for(v=e.child;v!==null;){if(v.tag===5||v.tag===6)c.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break t;for(;v.sibling===null;){if(v.return===null||v.return===e)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}e.stateNode=c;t:switch(oe(c,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&Nn(e)}}return kt(e),dc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,i),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&Nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=dt.current,yi(e)){if(t=e.stateNode,i=e.memoizedProps,l=null,r=ie,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}t[ae]=e,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Tg(t.nodeValue,i)),t||qn(e,!0)}else t=Co(t).createTextNode(l),t[ae]=e,e.stateNode=t}return kt(e),null;case 31:if(i=e.memoizedState,t===null||t.memoizedState!==null){if(l=yi(e),i!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ae]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),t=!1}else i=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(o(558))}return kt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=yi(e),l!==null&&l.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[ae]=e}else Da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;kt(e),r=!1}else r=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=i,e):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=e.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==r&&(l.flags|=2048)),i!==t&&i&&(e.child.flags|=8192),ho(e,e.updateQueue),kt(e),null);case 4:return Lt(),t===null&&Lc(e.stateNode.containerInfo),kt(e),null;case 10:return wn(e.type),kt(e),null;case 19:if(G(qt),l=e.memoizedState,l===null)return kt(e),null;if(r=(e.flags&128)!==0,c=l.rendering,c===null)if(r)Dl(l,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Is(t),c!==null){for(e.flags|=128,Dl(l,!1),t=c.updateQueue,e.updateQueue=t,ho(e,t),e.subtreeFlags=0,t=i,i=e.child;i!==null;)tm(i,t),i=i.sibling;return q(qt,qt.current&1|2),yt&&Sn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&je()>yo&&(e.flags|=128,r=!0,Dl(l,!1),e.lanes=4194304)}else{if(!r)if(t=Is(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,ho(e,t),Dl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!yt)return kt(e),null}else 2*je()-l.renderingStartTime>yo&&i!==536870912&&(e.flags|=128,r=!0,Dl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=je(),t.sibling=null,i=qt.current,q(qt,r?i&1|2:i&1),yt&&Sn(e,l.treeForkCount),t):(kt(e),null);case 22:case 23:return Oe(e),Vu(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(i&536870912)!==0&&(e.flags&128)===0&&(kt(e),e.subtreeFlags&6&&(e.flags|=8192)):kt(e),i=e.updateQueue,i!==null&&ho(e,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==i&&(e.flags|=2048),t!==null&&G(Ra),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),wn(Zt),kt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function iS(t,e){switch(xu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wn(Zt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ws(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(o(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return G(qt),null;case 4:return Lt(),null;case 10:return wn(e.type),null;case 22:case 23:return Oe(e),Vu(),t!==null&&G(Ra),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wn(Zt),null;case 25:return null;default:return null}}function Np(t,e){switch(xu(e),e.tag){case 3:wn(Zt),Lt();break;case 26:case 27:case 5:ws(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:G(qt);break;case 10:wn(e.type);break;case 22:case 23:Oe(e),Vu(),t!==null&&G(Ra);break;case 24:wn(Zt)}}function zl(t,e){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var r=l.next;i=r;do{if((i.tag&t)===t){l=void 0;var c=i.create,v=i.inst;l=c(),v.destroy=l}i=i.next}while(i!==r)}}catch(x){At(e,e.return,x)}}function Jn(t,e,i){try{var l=e.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var c=r.next;l=c;do{if((l.tag&t)===t){var v=l.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,r=e;var j=i,R=x;try{R()}catch(B){At(r,j,B)}}}l=l.next}while(l!==c)}}catch(B){At(e,e.return,B)}}function Cp(t){var e=t.updateQueue;if(e!==null){var i=t.stateNode;try{ym(e,i)}catch(l){At(t,t.return,l)}}}function Mp(t,e,i){i.props=Ua(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){At(t,e,l)}}function Ol(t,e){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(r){At(t,e,r)}}function rn(t,e){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(r){At(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){At(t,e,r)}else i.current=null}function Dp(t){var e=t.type,i=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break t;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(r){At(t,t.return,r)}}function hc(t,e,i){try{var l=t.stateNode;jS(l,t.type,i,e),l[ve]=e}catch(r){At(t,t.return,r)}}function zp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function mc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||zp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ia(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function pc(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,e):(e=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,e.appendChild(t),i=i._reactRootContainer,i!=null||e.onclick!==null||(e.onclick=yn));else if(l!==4&&(l===27&&ia(t.type)&&(i=t.stateNode,e=null),t=t.child,t!==null))for(pc(t,e,i),t=t.sibling;t!==null;)pc(t,e,i),t=t.sibling}function mo(t,e,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?i.insertBefore(t,e):i.appendChild(t);else if(l!==4&&(l===27&&ia(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(mo(t,e,i),t=t.sibling;t!==null;)mo(t,e,i),t=t.sibling}function Op(t){var e=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);oe(e,l,i),e[ae]=t,e[ve]=i}catch(c){At(t,t.return,c)}}var Cn=!1,Jt=!1,gc=!1,Rp=typeof WeakSet=="function"?WeakSet:Set,ne=null;function lS(t,e){if(t=t.containerInfo,kc=Vo,t=Xh(t),uu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var r=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break t}var v=0,x=-1,j=-1,R=0,B=0,Y=t,L=null;e:for(;;){for(var k;Y!==i||r!==0&&Y.nodeType!==3||(x=v+r),Y!==c||l!==0&&Y.nodeType!==3||(j=v+l),Y.nodeType===3&&(v+=Y.nodeValue.length),(k=Y.firstChild)!==null;)L=Y,Y=k;for(;;){if(Y===t)break e;if(L===i&&++R===r&&(x=v),L===c&&++B===l&&(j=v),(k=Y.nextSibling)!==null)break;Y=L,L=Y.parentNode}Y=k}i=x===-1||j===-1?null:{start:x,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(Uc={focusedElem:t,selectionRange:i},Vo=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)r=t[i],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,i=e,r=c.memoizedProps,c=c.memoizedState,l=i.stateNode;try{var J=Ua(i.type,r);t=l.getSnapshotBeforeUpdate(J,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(at){At(i,i.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,i=t.nodeType,i===9)$c(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":$c(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function Lp(t,e,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(t,i),l&4&&zl(5,i);break;case 1:if(Dn(t,i),l&4)if(t=i.stateNode,e===null)try{t.componentDidMount()}catch(v){At(i,i.return,v)}else{var r=Ua(i.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(v){At(i,i.return,v)}}l&64&&Cp(i),l&512&&Ol(i,i.return);break;case 3:if(Dn(t,i),l&64&&(t=i.updateQueue,t!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{ym(t,e)}catch(v){At(i,i.return,v)}}break;case 27:e===null&&l&4&&Op(i);case 26:case 5:Dn(t,i),e===null&&l&4&&Dp(i),l&512&&Ol(i,i.return);break;case 12:Dn(t,i);break;case 31:Dn(t,i),l&4&&kp(t,i);break;case 13:Dn(t,i),l&4&&Up(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=mS.bind(null,i),LS(t,i))));break;case 22:if(l=i.memoizedState!==null||Cn,!l){e=e!==null&&e.memoizedState!==null||Jt,r=Cn;var c=Jt;Cn=l,(Jt=e)&&!c?zn(t,i,(i.subtreeFlags&8772)!==0):Dn(t,i),Cn=r,Jt=c}break;case 30:break;default:Dn(t,i)}}function Vp(t){var e=t.alternate;e!==null&&(t.alternate=null,Vp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Kr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,be=!1;function Mn(t,e,i){for(i=i.child;i!==null;)_p(t,e,i),i=i.sibling}function _p(t,e,i){if(Ne&&typeof Ne.onCommitFiberUnmount=="function")try{Ne.onCommitFiberUnmount(nl,i)}catch{}switch(i.tag){case 26:Jt||rn(i,e),Mn(t,e,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Jt||rn(i,e);var l=Bt,r=be;ia(i.type)&&(Bt=i.stateNode,be=!1),Mn(t,e,i),$l(i.stateNode),Bt=l,be=r;break;case 5:Jt||rn(i,e);case 6:if(l=Bt,r=be,Bt=null,Mn(t,e,i),Bt=l,be=r,Bt!==null)if(be)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(i.stateNode)}catch(c){At(i,e,c)}else try{Bt.removeChild(i.stateNode)}catch(c){At(i,e,c)}break;case 18:Bt!==null&&(be?(t=Bt,Cg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Bi(t)):Cg(Bt,i.stateNode));break;case 4:l=Bt,r=be,Bt=i.stateNode.containerInfo,be=!0,Mn(t,e,i),Bt=l,be=r;break;case 0:case 11:case 14:case 15:Jn(2,i,e),Jt||Jn(4,i,e),Mn(t,e,i);break;case 1:Jt||(rn(i,e),l=i.stateNode,typeof l.componentWillUnmount=="function"&&Mp(i,e,l)),Mn(t,e,i);break;case 21:Mn(t,e,i);break;case 22:Jt=(l=Jt)||i.memoizedState!==null,Mn(t,e,i),Jt=l;break;default:Mn(t,e,i)}}function kp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Bi(t)}catch(i){At(e,e.return,i)}}}function Up(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Bi(t)}catch(i){At(e,e.return,i)}}function sS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Rp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Rp),e;default:throw Error(o(435,t.tag))}}function po(t,e){var i=sS(t);e.forEach(function(l){if(!i.has(l)){i.add(l);var r=pS.bind(null,t,l);l.then(r,r)}})}function xe(t,e){var i=e.deletions;if(i!==null)for(var l=0;l<i.length;l++){var r=i[l],c=t,v=e,x=v;t:for(;x!==null;){switch(x.tag){case 27:if(ia(x.type)){Bt=x.stateNode,be=!1;break t}break;case 5:Bt=x.stateNode,be=!1;break t;case 3:case 4:Bt=x.stateNode.containerInfo,be=!0;break t}x=x.return}if(Bt===null)throw Error(o(160));_p(c,v,r),Bt=null,be=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Bp(e,t),e=e.sibling}var We=null;function Bp(t,e){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Se(t),l&4&&(Jn(3,t,t.return),zl(3,t),Jn(5,t,t.return));break;case 1:xe(e,t),Se(t),l&512&&(Jt||i===null||rn(i,i.return)),l&64&&Cn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var r=We;if(xe(e,t),Se(t),l&512&&(Jt||i===null||rn(i,i.return)),l&4){var c=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){t:{l=t.type,i=t.memoizedProps,r=r.ownerDocument||r;e:switch(l){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ll]||c[ae]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(l),r.head.insertBefore(c,r.querySelector("head > title"))),oe(c,l,i),c[ae]=t,ee(c),l=c;break t;case"link":var v=Bg("link","href",r).get(l+(i.href||""));if(v){for(var x=0;x<v.length;x++)if(c=v[x],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(x,1);break e}}c=r.createElement(l),oe(c,l,i),r.head.appendChild(c);break;case"meta":if(v=Bg("meta","content",r).get(l+(i.content||""))){for(x=0;x<v.length;x++)if(c=v[x],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(x,1);break e}}c=r.createElement(l),oe(c,l,i),r.head.appendChild(c);break;default:throw Error(o(468,l))}c[ae]=t,ee(c),l=c}t.stateNode=l}else Hg(r,t.type,t.stateNode);else t.stateNode=Ug(r,l,t.memoizedProps);else c!==l?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,l===null?Hg(r,t.type,t.stateNode):Ug(r,l,t.memoizedProps)):l===null&&t.stateNode!==null&&hc(t,t.memoizedProps,i.memoizedProps)}break;case 27:xe(e,t),Se(t),l&512&&(Jt||i===null||rn(i,i.return)),i!==null&&l&4&&hc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(xe(e,t),Se(t),l&512&&(Jt||i===null||rn(i,i.return)),t.flags&32){r=t.stateNode;try{ri(r,"")}catch(J){At(t,t.return,J)}}l&4&&t.stateNode!=null&&(r=t.memoizedProps,hc(t,r,i!==null?i.memoizedProps:r)),l&1024&&(gc=!0);break;case 6:if(xe(e,t),Se(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(J){At(t,t.return,J)}}break;case 3:if(zo=null,r=We,We=Mo(e.containerInfo),xe(e,t),We=r,Se(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Bi(e.containerInfo)}catch(J){At(t,t.return,J)}gc&&(gc=!1,Hp(t));break;case 4:l=We,We=Mo(t.stateNode.containerInfo),xe(e,t),Se(t),We=l;break;case 12:xe(e,t),Se(t);break;case 31:xe(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 13:xe(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(vo=je()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 22:r=t.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,R=Cn,B=Jt;if(Cn=R||r,Jt=B||j,xe(e,t),Jt=B,Cn=R,Se(t),l&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(i===null||j||Cn||Jt||Ba(t)),i=null,e=t;;){if(e.tag===5||e.tag===26){if(i===null){j=i=e;try{if(c=j.stateNode,r)v=c.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=j.stateNode;var Y=j.memoizedProps.style,L=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(J){At(j,j.return,J)}}}else if(e.tag===6){if(i===null){j=e;try{j.stateNode.nodeValue=r?"":j.memoizedProps}catch(J){At(j,j.return,J)}}}else if(e.tag===18){if(i===null){j=e;try{var k=j.stateNode;r?Mg(k,!0):Mg(j.stateNode,!1)}catch(J){At(j,j.return,J)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;i===e&&(i=null),e=e.return}i===e&&(i=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,po(t,i))));break;case 19:xe(e,t),Se(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,po(t,l)));break;case 30:break;case 21:break;default:xe(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var i,l=t.return;l!==null;){if(zp(l)){i=l;break}l=l.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var r=i.stateNode,c=mc(t);mo(t,c,r);break;case 5:var v=i.stateNode;i.flags&32&&(ri(v,""),i.flags&=-33);var x=mc(t);mo(t,x,v);break;case 3:case 4:var j=i.stateNode.containerInfo,R=mc(t);pc(t,R,j);break;default:throw Error(o(161))}}catch(B){At(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hp(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Lp(t,e.alternate,e),e=e.sibling}function Ba(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Jn(4,e,e.return),Ba(e);break;case 1:rn(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&Mp(e,e.return,i),Ba(e);break;case 27:$l(e.stateNode);case 26:case 5:rn(e,e.return),Ba(e);break;case 22:e.memoizedState===null&&Ba(e);break;case 30:Ba(e);break;default:Ba(e)}t=t.sibling}}function zn(t,e,i){for(i=i&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,r=t,c=e,v=c.flags;switch(c.tag){case 0:case 11:case 15:zn(r,c,i),zl(4,c);break;case 1:if(zn(r,c,i),l=c,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(R){At(l,l.return,R)}if(l=c,r=l.updateQueue,r!==null){var x=l.stateNode;try{var j=r.shared.hiddenCallbacks;if(j!==null)for(r.shared.hiddenCallbacks=null,r=0;r<j.length;r++)vm(j[r],x)}catch(R){At(l,l.return,R)}}i&&v&64&&Cp(c),Ol(c,c.return);break;case 27:Op(c);case 26:case 5:zn(r,c,i),i&&l===null&&v&4&&Dp(c),Ol(c,c.return);break;case 12:zn(r,c,i);break;case 31:zn(r,c,i),i&&v&4&&kp(r,c);break;case 13:zn(r,c,i),i&&v&4&&Up(r,c);break;case 22:c.memoizedState===null&&zn(r,c,i),Ol(c,c.return);break;case 30:break;default:zn(r,c,i)}e=e.sibling}}function vc(t,e){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&yl(i))}function yc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t))}function Ie(t,e,i,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$p(t,e,i,l),e=e.sibling}function $p(t,e,i,l){var r=e.flags;switch(e.tag){case 0:case 11:case 15:Ie(t,e,i,l),r&2048&&zl(9,e);break;case 1:Ie(t,e,i,l);break;case 3:Ie(t,e,i,l),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&yl(t)));break;case 12:if(r&2048){Ie(t,e,i,l),t=e.stateNode;try{var c=e.memoizedProps,v=c.id,x=c.onPostCommit;typeof x=="function"&&x(v,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){At(e,e.return,j)}}else Ie(t,e,i,l);break;case 31:Ie(t,e,i,l);break;case 13:Ie(t,e,i,l);break;case 23:break;case 22:c=e.stateNode,v=e.alternate,e.memoizedState!==null?c._visibility&2?Ie(t,e,i,l):Rl(t,e):c._visibility&2?Ie(t,e,i,l):(c._visibility|=2,Ci(t,e,i,l,(e.subtreeFlags&10256)!==0||!1)),r&2048&&vc(v,e);break;case 24:Ie(t,e,i,l),r&2048&&yc(e.alternate,e);break;default:Ie(t,e,i,l)}}function Ci(t,e,i,l,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,v=e,x=i,j=l,R=v.flags;switch(v.tag){case 0:case 11:case 15:Ci(c,v,x,j,r),zl(8,v);break;case 23:break;case 22:var B=v.stateNode;v.memoizedState!==null?B._visibility&2?Ci(c,v,x,j,r):Rl(c,v):(B._visibility|=2,Ci(c,v,x,j,r)),r&&R&2048&&vc(v.alternate,v);break;case 24:Ci(c,v,x,j,r),r&&R&2048&&yc(v.alternate,v);break;default:Ci(c,v,x,j,r)}e=e.sibling}}function Rl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var i=t,l=e,r=l.flags;switch(l.tag){case 22:Rl(i,l),r&2048&&vc(l.alternate,l);break;case 24:Rl(i,l),r&2048&&yc(l.alternate,l);break;default:Rl(i,l)}e=e.sibling}}var Ll=8192;function Mi(t,e,i){if(t.subtreeFlags&Ll)for(t=t.child;t!==null;)Gp(t,e,i),t=t.sibling}function Gp(t,e,i){switch(t.tag){case 26:Mi(t,e,i),t.flags&Ll&&t.memoizedState!==null&&KS(i,We,t.memoizedState,t.memoizedProps);break;case 5:Mi(t,e,i);break;case 3:case 4:var l=We;We=Mo(t.stateNode.containerInfo),Mi(t,e,i),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ll,Ll=16777216,Mi(t,e,i),Ll=l):Mi(t,e,i));break;default:Mi(t,e,i)}}function Yp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Vl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];ne=l,Xp(l,t)}Yp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qp(t),t=t.sibling}function qp(t){switch(t.tag){case 0:case 11:case 15:Vl(t),t.flags&2048&&Jn(9,t,t.return);break;case 3:Vl(t);break;case 12:Vl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,go(t)):Vl(t);break;default:Vl(t)}}function go(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var i=0;i<e.length;i++){var l=e[i];ne=l,Xp(l,t)}Yp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Jn(8,e,e.return),go(e);break;case 22:i=e.stateNode,i._visibility&2&&(i._visibility&=-3,go(e));break;default:go(e)}t=t.sibling}}function Xp(t,e){for(;ne!==null;){var i=ne;switch(i.tag){case 0:case 11:case 15:Jn(8,i,e);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:yl(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,ne=l;else t:for(i=t;ne!==null;){l=ne;var r=l.sibling,c=l.return;if(Vp(l),l===i){ne=null;break t}if(r!==null){r.return=c,ne=r;break t}ne=c}}}var oS={getCacheForType:function(t){var e=le(Zt),i=e.data.get(t);return i===void 0&&(i=t(),e.data.set(t,i)),i},cacheSignal:function(){return le(Zt).controller.signal}},rS=typeof WeakMap=="function"?WeakMap:Map,wt=0,Vt=null,ht=null,pt=0,Et=0,Re=null,Wn=!1,Di=!1,bc=!1,On=0,$t=0,In=0,Ha=0,xc=0,Le=0,zi=0,_l=null,Te=null,Sc=!1,vo=0,Kp=0,yo=1/0,bo=null,ta=null,It=0,ea=null,Oi=null,Rn=0,Tc=0,wc=null,Fp=null,kl=0,Ec=null;function Ve(){return(wt&2)!==0&&pt!==0?pt&-pt:U.T!==null?Dc():uh()}function Zp(){if(Le===0)if((pt&536870912)===0||yt){var t=js;js<<=1,(js&3932160)===0&&(js=262144),Le=t}else Le=536870912;return t=ze.current,t!==null&&(t.flags|=32),Le}function we(t,e,i){(t===Vt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(Ri(t,0),na(t,pt,Le,!1)),il(t,i),((wt&2)===0||t!==Vt)&&(t===Vt&&((wt&2)===0&&(Ha|=i),$t===4&&na(t,pt,Le,!1)),un(t))}function Qp(t,e,i){if((wt&6)!==0)throw Error(o(327));var l=!i&&(e&127)===0&&(e&t.expiredLanes)===0||al(t,e),r=l?fS(t,e):jc(t,e,!0),c=l;do{if(r===0){Di&&!l&&na(t,e,0,!1);break}else{if(i=t.current.alternate,c&&!uS(i)){r=jc(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){e=v;t:{var x=t;r=_l;var j=x.current.memoizedState.isDehydrated;if(j&&(Ri(x,v).flags|=256),v=jc(x,v,!1),v!==2){if(bc&&!j){x.errorRecoveryDisabledLanes|=c,Ha|=c,r=4;break t}c=Te,Te=r,c!==null&&(Te===null?Te=c:Te.push.apply(Te,c))}r=v}if(c=!1,r!==2)continue}}if(r===1){Ri(t,0),na(t,e,0,!0);break}t:{switch(l=t,c=r,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:na(l,e,Le,!Wn);break t;case 2:Te=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=vo+300-je(),10<r)){if(na(l,e,Le,!Wn),Cs(l,0,!0)!==0)break t;Rn=e,l.timeoutHandle=jg(Pp.bind(null,l,i,Te,bo,Sc,e,Le,Ha,zi,Wn,c,"Throttled",-0,0),r);break t}Pp(l,i,Te,bo,Sc,e,Le,Ha,zi,Wn,c,null,-0,0)}}break}while(!0);un(t)}function Pp(t,e,i,l,r,c,v,x,j,R,B,Y,L,k){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Gp(e,c,Y);var J=(c&62914560)===c?vo-je():(c&4194048)===c?Kp-je():0;if(J=FS(Y,J),J!==null){Rn=c,t.cancelPendingCommit=J(ig.bind(null,t,e,c,i,l,r,v,x,j,B,Y,null,L,k)),na(t,c,v,!R);return}}ig(t,e,c,i,l,r,v,x,j)}function uS(t){for(var e=t;;){var i=e.tag;if((i===0||i===11||i===15)&&e.flags&16384&&(i=e.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var r=i[l],c=r.getSnapshot;r=r.value;try{if(!Me(c(),r))return!1}catch{return!1}}if(i=e.child,e.subtreeFlags&16384&&i!==null)i.return=e,e=i;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function na(t,e,i,l){e&=~xc,e&=~Ha,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var r=e;0<r;){var c=31-Ce(r),v=1<<c;l[c]=-1,r&=~v}i!==0&&sh(t,i,e)}function xo(){return(wt&6)===0?(Ul(0),!1):!0}function Ac(){if(ht!==null){if(Et===0)var t=ht.return;else t=ht,Tn=za=null,$u(t),wi=null,xl=0,t=ht;for(;t!==null;)Np(t.alternate,t),t=t.return;ht=null}}function Ri(t,e){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,MS(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Rn=0,Ac(),Vt=t,ht=i=xn(t.current,null),pt=e,Et=0,Re=null,Wn=!1,Di=al(t,e),bc=!1,zi=Le=xc=Ha=In=$t=0,Te=_l=null,Sc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var r=31-Ce(l),c=1<<r;e|=t[r],l&=~c}return On=e,Hs(),i}function Jp(t,e){rt=null,U.H=Cl,e===Ti||e===Zs?(e=hm(),Et=3):e===Mu?(e=hm(),Et=4):Et=e===ac?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ht===null&&($t=1,ro(t,He(e,t.current)))}function Wp(){var t=ze.current;return t===null?!0:(pt&4194048)===pt?qe===null:(pt&62914560)===pt||(pt&536870912)!==0?t===qe:!1}function Ip(){var t=U.H;return U.H=Cl,t===null?Cl:t}function tg(){var t=U.A;return U.A=oS,t}function So(){$t=4,Wn||(pt&4194048)!==pt&&ze.current!==null||(Di=!0),(In&134217727)===0&&(Ha&134217727)===0||Vt===null||na(Vt,pt,Le,!1)}function jc(t,e,i){var l=wt;wt|=2;var r=Ip(),c=tg();(Vt!==t||pt!==e)&&(bo=null,Ri(t,e)),e=!1;var v=$t;t:do try{if(Et!==0&&ht!==null){var x=ht,j=Re;switch(Et){case 8:Ac(),v=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var R=Et;if(Et=0,Re=null,Li(t,x,j,R),i&&Di){v=0;break t}break;default:R=Et,Et=0,Re=null,Li(t,x,j,R)}}cS(),v=$t;break}catch(B){Jp(t,B)}while(!0);return e&&t.shellSuspendCounter++,Tn=za=null,wt=l,U.H=r,U.A=c,ht===null&&(Vt=null,pt=0,Hs()),v}function cS(){for(;ht!==null;)eg(ht)}function fS(t,e){var i=wt;wt|=2;var l=Ip(),r=tg();Vt!==t||pt!==e?(bo=null,yo=je()+500,Ri(t,e)):Di=al(t,e);t:do try{if(Et!==0&&ht!==null){e=ht;var c=Re;e:switch(Et){case 1:Et=0,Re=null,Li(t,e,c,1);break;case 2:case 9:if(fm(c)){Et=0,Re=null,ng(e);break}e=function(){Et!==2&&Et!==9||Vt!==t||(Et=7),un(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:fm(c)?(Et=0,Re=null,ng(e)):(Et=0,Re=null,Li(t,e,c,7));break;case 5:var v=null;switch(ht.tag){case 26:v=ht.memoizedState;case 5:case 27:var x=ht;if(v?$g(v):x.stateNode.complete){Et=0,Re=null;var j=x.sibling;if(j!==null)ht=j;else{var R=x.return;R!==null?(ht=R,To(R)):ht=null}break e}}Et=0,Re=null,Li(t,e,c,5);break;case 6:Et=0,Re=null,Li(t,e,c,6);break;case 8:Ac(),$t=6;break t;default:throw Error(o(462))}}dS();break}catch(B){Jp(t,B)}while(!0);return Tn=za=null,U.H=l,U.A=r,wt=i,ht!==null?0:(Vt=null,pt=0,Hs(),$t)}function dS(){for(;ht!==null&&!Vx();)eg(ht)}function eg(t){var e=Ap(t.alternate,t,On);t.memoizedProps=t.pendingProps,e===null?To(t):ht=e}function ng(t){var e=t,i=e.alternate;switch(e.tag){case 15:case 0:e=bp(i,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=bp(i,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:$u(e);default:Np(i,e),e=ht=tm(e,On),e=Ap(i,e,On)}t.memoizedProps=t.pendingProps,e===null?To(t):ht=e}function Li(t,e,i,l){Tn=za=null,$u(e),wi=null,xl=0;var r=e.return;try{if(tS(t,r,e,i,pt)){$t=1,ro(t,He(i,t.current)),ht=null;return}}catch(c){if(r!==null)throw ht=r,c;$t=1,ro(t,He(i,t.current)),ht=null;return}e.flags&32768?(yt||l===1?t=!0:Di||(pt&536870912)!==0?t=!1:(Wn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ze.current,l!==null&&l.tag===13&&(l.flags|=16384))),ag(e,t)):To(e)}function To(t){var e=t;do{if((e.flags&32768)!==0){ag(e,Wn);return}t=e.return;var i=aS(e.alternate,e,On);if(i!==null){ht=i;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);$t===0&&($t=5)}function ag(t,e){do{var i=iS(t.alternate,t);if(i!==null){i.flags&=32767,ht=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=i}while(t!==null);$t=6,ht=null}function ig(t,e,i,l,r,c,v,x,j){t.cancelPendingCommit=null;do wo();while(It!==0);if((wt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=mu,Xx(t,i,c,v,x,j),t===Vt&&(ht=Vt=null,pt=0),Oi=e,ea=t,Rn=i,Tc=c,wc=r,Fp=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,gS(Es,function(){return ug(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,r=K.p,K.p=2,v=wt,wt|=4;try{lS(t,e,i)}finally{wt=v,K.p=r,U.T=l}}It=1,lg(),sg(),og()}}function lg(){if(It===1){It=0;var t=ea,e=Oi,i=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var l=K.p;K.p=2;var r=wt;wt|=4;try{Bp(e,t);var c=Uc,v=Xh(t.containerInfo),x=c.focusedElem,j=c.selectionRange;if(v!==x&&x&&x.ownerDocument&&qh(x.ownerDocument.documentElement,x)){if(j!==null&&uu(x)){var R=j.start,B=j.end;if(B===void 0&&(B=R),"selectionStart"in x)x.selectionStart=R,x.selectionEnd=Math.min(B,x.value.length);else{var Y=x.ownerDocument||document,L=Y&&Y.defaultView||window;if(L.getSelection){var k=L.getSelection(),J=x.textContent.length,at=Math.min(j.start,J),Dt=j.end===void 0?at:Math.min(j.end,J);!k.extend&&at>Dt&&(v=Dt,Dt=at,at=v);var z=Yh(x,at),D=Yh(x,Dt);if(z&&D&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==D.node||k.focusOffset!==D.offset)){var O=Y.createRange();O.setStart(z.node,z.offset),k.removeAllRanges(),at>Dt?(k.addRange(O),k.extend(D.node,D.offset)):(O.setEnd(D.node,D.offset),k.addRange(O))}}}}for(Y=[],k=x;k=k.parentNode;)k.nodeType===1&&Y.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var $=Y[x];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Vo=!!kc,Uc=kc=null}finally{wt=r,K.p=l,U.T=i}}t.current=e,It=2}}function sg(){if(It===2){It=0;var t=ea,e=Oi,i=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var l=K.p;K.p=2;var r=wt;wt|=4;try{Lp(t,e.alternate,e)}finally{wt=r,K.p=l,U.T=i}}It=3}}function og(){if(It===4||It===3){It=0,_x();var t=ea,e=Oi,i=Rn,l=Fp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?It=5:(It=0,Oi=ea=null,rg(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(ta=null),qr(i),e=e.stateNode,Ne&&typeof Ne.onCommitFiberRoot=="function")try{Ne.onCommitFiberRoot(nl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=U.T,r=K.p,K.p=2,U.T=null;try{for(var c=t.onRecoverableError,v=0;v<l.length;v++){var x=l[v];c(x.value,{componentStack:x.stack})}}finally{U.T=e,K.p=r}}(Rn&3)!==0&&wo(),un(t),r=t.pendingLanes,(i&261930)!==0&&(r&42)!==0?t===Ec?kl++:(kl=0,Ec=t):kl=0,Ul(0)}}function rg(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yl(e)))}function wo(){return lg(),sg(),og(),ug()}function ug(){if(It!==5)return!1;var t=ea,e=Tc;Tc=0;var i=qr(Rn),l=U.T,r=K.p;try{K.p=32>i?32:i,U.T=null,i=wc,wc=null;var c=ea,v=Rn;if(It=0,Oi=ea=null,Rn=0,(wt&6)!==0)throw Error(o(331));var x=wt;if(wt|=4,qp(c.current),$p(c,c.current,v,i),wt=x,Ul(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot=="function")try{Ne.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{K.p=r,U.T=l,rg(t,e)}}function cg(t,e,i){e=He(i,e),e=nc(t.stateNode,e,2),t=Zn(t,e,2),t!==null&&(il(t,2),un(t))}function At(t,e,i){if(t.tag===3)cg(t,t,i);else for(;e!==null;){if(e.tag===3){cg(e,t,i);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ta===null||!ta.has(l))){t=He(i,t),i=fp(2),l=Zn(e,i,2),l!==null&&(dp(i,l,e,t),il(l,2),un(l));break}}e=e.return}}function Nc(t,e,i){var l=t.pingCache;if(l===null){l=t.pingCache=new rS;var r=new Set;l.set(e,r)}else r=l.get(e),r===void 0&&(r=new Set,l.set(e,r));r.has(i)||(bc=!0,r.add(i),t=hS.bind(null,t,e,i),e.then(t,t))}function hS(t,e,i){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Vt===t&&(pt&i)===i&&($t===4||$t===3&&(pt&62914560)===pt&&300>je()-vo?(wt&2)===0&&Ri(t,0):xc|=i,zi===pt&&(zi=0)),un(t)}function fg(t,e){e===0&&(e=lh()),t=Ca(t,e),t!==null&&(il(t,e),un(t))}function mS(t){var e=t.memoizedState,i=0;e!==null&&(i=e.retryLane),fg(t,i)}function pS(t,e){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,r=t.memoizedState;r!==null&&(i=r.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),fg(t,i)}function gS(t,e){return Hr(t,e)}var Eo=null,Vi=null,Cc=!1,Ao=!1,Mc=!1,aa=0;function un(t){t!==Vi&&t.next===null&&(Vi===null?Eo=Vi=t:Vi=Vi.next=t),Ao=!0,Cc||(Cc=!0,yS())}function Ul(t,e){if(!Mc&&Ao){Mc=!0;do for(var i=!1,l=Eo;l!==null;){if(t!==0){var r=l.pendingLanes;if(r===0)var c=0;else{var v=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ce(42|t)+1)-1,c&=r&~(v&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,pg(l,c))}else c=pt,c=Cs(l,l===Vt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||al(l,c)||(i=!0,pg(l,c));l=l.next}while(i);Mc=!1}}function vS(){dg()}function dg(){Ao=Cc=!1;var t=0;aa!==0&&CS()&&(t=aa);for(var e=je(),i=null,l=Eo;l!==null;){var r=l.next,c=hg(l,e);c===0?(l.next=null,i===null?Eo=r:i.next=r,r===null&&(Vi=i)):(i=l,(t!==0||(c&3)!==0)&&(Ao=!0)),l=r}It!==0&&It!==5||Ul(t),aa!==0&&(aa=0)}function hg(t,e){for(var i=t.suspendedLanes,l=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var v=31-Ce(c),x=1<<v,j=r[v];j===-1?((x&i)===0||(x&l)!==0)&&(r[v]=qx(x,e)):j<=e&&(t.expiredLanes|=x),c&=~x}if(e=Vt,i=pt,i=Cs(t,t===e?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&$r(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||al(t,i)){if(e=i&-i,e===t.callbackPriority)return e;switch(l!==null&&$r(l),qr(i)){case 2:case 8:i=ah;break;case 32:i=Es;break;case 268435456:i=ih;break;default:i=Es}return l=mg.bind(null,t),i=Hr(i,l),t.callbackPriority=e,t.callbackNode=i,e}return l!==null&&l!==null&&$r(l),t.callbackPriority=2,t.callbackNode=null,2}function mg(t,e){if(It!==0&&It!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wo()&&t.callbackNode!==i)return null;var l=pt;return l=Cs(t,t===Vt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Qp(t,l,e),hg(t,je()),t.callbackNode!=null&&t.callbackNode===i?mg.bind(null,t):null)}function pg(t,e){if(wo())return null;Qp(t,e,!0)}function yS(){DS(function(){(wt&6)!==0?Hr(nh,vS):dg()})}function Dc(){if(aa===0){var t=xi;t===0&&(t=As,As<<=1,(As&261888)===0&&(As=256)),aa=t}return aa}function gg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Os(""+t)}function vg(t,e){var i=e.ownerDocument.createElement("input");return i.name=e.name,i.value=e.value,t.id&&i.setAttribute("form",t.id),e.parentNode.insertBefore(i,e),t=new FormData(t),i.parentNode.removeChild(i),t}function bS(t,e,i,l,r){if(e==="submit"&&i&&i.stateNode===r){var c=gg((r[ve]||null).action),v=l.submitter;v&&(e=(e=v[ve]||null)?gg(e.formAction):v.getAttribute("formAction"),e!==null&&(c=e,v=null));var x=new _s("action","action",null,l,r);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(aa!==0){var j=v?vg(r,v):new FormData(r);Pu(i,{pending:!0,data:j,method:r.method,action:c},null,j)}}else typeof c=="function"&&(x.preventDefault(),j=v?vg(r,v):new FormData(r),Pu(i,{pending:!0,data:j,method:r.method,action:c},c,j))},currentTarget:r}]})}}for(var zc=0;zc<hu.length;zc++){var Oc=hu[zc],xS=Oc.toLowerCase(),SS=Oc[0].toUpperCase()+Oc.slice(1);Je(xS,"on"+SS)}Je(Zh,"onAnimationEnd"),Je(Qh,"onAnimationIteration"),Je(Ph,"onAnimationStart"),Je("dblclick","onDoubleClick"),Je("focusin","onFocus"),Je("focusout","onBlur"),Je(k1,"onTransitionRun"),Je(U1,"onTransitionStart"),Je(B1,"onTransitionCancel"),Je(Jh,"onTransitionEnd"),si("onMouseEnter",["mouseout","mouseover"]),si("onMouseLeave",["mouseout","mouseover"]),si("onPointerEnter",["pointerout","pointerover"]),si("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="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(" "),TS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function yg(t,e){e=(e&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],r=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var v=l.length-1;0<=v;v--){var x=l[v],j=x.instance,R=x.currentTarget;if(x=x.listener,j!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=R;try{c(r)}catch(B){Bs(B)}r.currentTarget=null,c=j}else for(v=0;v<l.length;v++){if(x=l[v],j=x.instance,R=x.currentTarget,x=x.listener,j!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=R;try{c(r)}catch(B){Bs(B)}r.currentTarget=null,c=j}}}}function mt(t,e){var i=e[Xr];i===void 0&&(i=e[Xr]=new Set);var l=t+"__bubble";i.has(l)||(bg(e,t,2,!1),i.add(l))}function Rc(t,e,i){var l=0;e&&(l|=4),bg(i,t,l,e)}var jo="_reactListening"+Math.random().toString(36).slice(2);function Lc(t){if(!t[jo]){t[jo]=!0,dh.forEach(function(i){i!=="selectionchange"&&(TS.has(i)||Rc(i,!1,t),Rc(i,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[jo]||(e[jo]=!0,Rc("selectionchange",!1,e))}}function bg(t,e,i,l){switch(Zg(e)){case 2:var r=PS;break;case 8:r=JS;break;default:r=Qc}i=r.bind(null,e,i,t),r=void 0,!tu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),l?r!==void 0?t.addEventListener(e,i,{capture:!0,passive:r}):t.addEventListener(e,i,!0):r!==void 0?t.addEventListener(e,i,{passive:r}):t.addEventListener(e,i,!1)}function Vc(t,e,i,l,r){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var x=l.stateNode.containerInfo;if(x===r)break;if(v===4)for(v=l.return;v!==null;){var j=v.tag;if((j===3||j===4)&&v.stateNode.containerInfo===r)return;v=v.return}for(;x!==null;){if(v=ai(x),v===null)return;if(j=v.tag,j===5||j===6||j===26||j===27){l=c=v;continue t}x=x.parentNode}}l=l.return}Eh(function(){var R=c,B=Wr(i),Y=[];t:{var L=Wh.get(t);if(L!==void 0){var k=_s,J=t;switch(t){case"keypress":if(Ls(i)===0)break t;case"keydown":case"keyup":k=p1;break;case"focusin":J="focus",k=iu;break;case"focusout":J="blur",k=iu;break;case"beforeblur":case"afterblur":k=iu;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=a1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=y1;break;case Zh:case Qh:case Ph:k=s1;break;case Jh:k=x1;break;case"scroll":case"scrollend":k=e1;break;case"wheel":k=T1;break;case"copy":case"cut":case"paste":k=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Mh;break;case"toggle":case"beforetoggle":k=E1}var at=(e&4)!==0,Dt=!at&&(t==="scroll"||t==="scrollend"),z=at?L!==null?L+"Capture":null:L;at=[];for(var D=R,O;D!==null;){var $=D;if(O=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||O===null||z===null||($=ol(D,z),$!=null&&at.push(Hl(D,$,O))),Dt)break;D=D.return}0<at.length&&(L=new k(L,J,null,i,B),Y.push({event:L,listeners:at}))}}if((e&7)===0){t:{if(L=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",L&&i!==Jr&&(J=i.relatedTarget||i.fromElement)&&(ai(J)||J[ni]))break t;if((k||L)&&(L=B.window===B?B:(L=B.ownerDocument)?L.defaultView||L.parentWindow:window,k?(J=i.relatedTarget||i.toElement,k=R,J=J?ai(J):null,J!==null&&(Dt=d(J),at=J.tag,J!==Dt||at!==5&&at!==27&&at!==6)&&(J=null)):(k=null,J=R),k!==J)){if(at=Nh,$="onMouseLeave",z="onMouseEnter",D="mouse",(t==="pointerout"||t==="pointerover")&&(at=Mh,$="onPointerLeave",z="onPointerEnter",D="pointer"),Dt=k==null?L:sl(k),O=J==null?L:sl(J),L=new at($,D+"leave",k,i,B),L.target=Dt,L.relatedTarget=O,$=null,ai(B)===R&&(at=new at(z,D+"enter",J,i,B),at.target=O,at.relatedTarget=Dt,$=at),Dt=$,k&&J)e:{for(at=wS,z=k,D=J,O=0,$=z;$;$=at($))O++;$=0;for(var et=D;et;et=at(et))$++;for(;0<O-$;)z=at(z),O--;for(;0<$-O;)D=at(D),$--;for(;O--;){if(z===D||D!==null&&z===D.alternate){at=z;break e}z=at(z),D=at(D)}at=null}else at=null;k!==null&&xg(Y,L,k,at,!1),J!==null&&Dt!==null&&xg(Y,Dt,J,at,!0)}}t:{if(L=R?sl(R):window,k=L.nodeName&&L.nodeName.toLowerCase(),k==="select"||k==="input"&&L.type==="file")var St=kh;else if(Vh(L))if(Uh)St=L1;else{St=O1;var I=z1}else k=L.nodeName,!k||k.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?R&&Pr(R.elementType)&&(St=kh):St=R1;if(St&&(St=St(t,R))){_h(Y,St,i,B);break t}I&&I(t,L,R),t==="focusout"&&R&&L.type==="number"&&R.memoizedProps.value!=null&&Qr(L,"number",L.value)}switch(I=R?sl(R):window,t){case"focusin":(Vh(I)||I.contentEditable==="true")&&(di=I,cu=R,pl=null);break;case"focusout":pl=cu=di=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Kh(Y,i,B);break;case"selectionchange":if(_1)break;case"keydown":case"keyup":Kh(Y,i,B)}var ut;if(su)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else fi?Rh(t,i)&&(gt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(gt="onCompositionStart");gt&&(Dh&&i.locale!=="ko"&&(fi||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&fi&&(ut=Ah()):($n=B,eu="value"in $n?$n.value:$n.textContent,fi=!0)),I=No(R,gt),0<I.length&&(gt=new Ch(gt,t,null,i,B),Y.push({event:gt,listeners:I}),ut?gt.data=ut:(ut=Lh(i),ut!==null&&(gt.data=ut)))),(ut=j1?N1(t,i):C1(t,i))&&(gt=No(R,"onBeforeInput"),0<gt.length&&(I=new Ch("onBeforeInput","beforeinput",null,i,B),Y.push({event:I,listeners:gt}),I.data=ut)),bS(Y,t,R,i,B)}yg(Y,e)})}function Hl(t,e,i){return{instance:t,listener:e,currentTarget:i}}function No(t,e){for(var i=e+"Capture",l=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=ol(t,i),r!=null&&l.unshift(Hl(t,r,c)),r=ol(t,e),r!=null&&l.push(Hl(t,r,c))),t.tag===3)return l;t=t.return}return[]}function wS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function xg(t,e,i,l,r){for(var c=e._reactName,v=[];i!==null&&i!==l;){var x=i,j=x.alternate,R=x.stateNode;if(x=x.tag,j!==null&&j===l)break;x!==5&&x!==26&&x!==27||R===null||(j=R,r?(R=ol(i,c),R!=null&&v.unshift(Hl(i,R,j))):r||(R=ol(i,c),R!=null&&v.push(Hl(i,R,j)))),i=i.return}v.length!==0&&t.push({event:e,listeners:v})}var ES=/\r\n?/g,AS=/\u0000|\uFFFD/g;function Sg(t){return(typeof t=="string"?t:""+t).replace(ES,`
|
|
49
|
-
`).replace(AS,"")}function Tg(t,e){return e=Sg(e),Sg(t)===e}function Mt(t,e,i,l,r,c){switch(i){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ri(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ri(t,""+l);break;case"className":Ds(t,"class",l);break;case"tabIndex":Ds(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ds(t,i,l);break;case"style":Th(t,l,c);break;case"data":if(e!=="object"){Ds(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Os(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(i==="formAction"?(e!=="input"&&Mt(t,e,"name",r.name,r,null),Mt(t,e,"formEncType",r.formEncType,r,null),Mt(t,e,"formMethod",r.formMethod,r,null),Mt(t,e,"formTarget",r.formTarget,r,null)):(Mt(t,e,"encType",r.encType,r,null),Mt(t,e,"method",r.method,r,null),Mt(t,e,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Os(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=yn);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Os(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),Ms(t,"popover",l);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ms(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Ix.get(i)||i,Ms(t,i,l))}}function _c(t,e,i,l,r,c){switch(i){case"style":Th(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(i=l.__html,i!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=i}}break;case"children":typeof l=="string"?ri(t,l):(typeof l=="number"||typeof l=="bigint")&&ri(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hh.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),e=i.slice(2,r?i.length-7:void 0),c=t[ve]||null,c=c!=null?c[i]:null,typeof c=="function"&&t.removeEventListener(e,c,r),typeof l=="function")){typeof c!="function"&&c!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(e,l,r);break t}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Ms(t,i,l)}}}function oe(t,e,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,r=!1,c;for(c in i)if(i.hasOwnProperty(c)){var v=i[c];if(v!=null)switch(c){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,c,v,i,null)}}r&&Mt(t,e,"srcSet",i.srcSet,i,null),l&&Mt(t,e,"src",i.src,i,null);return;case"input":mt("invalid",t);var x=c=v=r=null,j=null,R=null;for(l in i)if(i.hasOwnProperty(l)){var B=i[l];if(B!=null)switch(l){case"name":r=B;break;case"type":v=B;break;case"checked":j=B;break;case"defaultChecked":R=B;break;case"value":c=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:Mt(t,e,l,B,i,null)}}yh(t,c,x,j,R,v,r,!1);return;case"select":mt("invalid",t),l=v=c=null;for(r in i)if(i.hasOwnProperty(r)&&(x=i[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":v=x;break;case"multiple":l=x;default:Mt(t,e,r,x,i,null)}e=c,i=v,t.multiple=!!l,e!=null?oi(t,!!l,e,!1):i!=null&&oi(t,!!l,i,!0);return;case"textarea":mt("invalid",t),c=r=l=null;for(v in i)if(i.hasOwnProperty(v)&&(x=i[v],x!=null))switch(v){case"value":l=x;break;case"defaultValue":r=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Mt(t,e,v,x,i,null)}xh(t,l,r,c);return;case"option":for(j in i)if(i.hasOwnProperty(j)&&(l=i[j],l!=null))switch(j){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Mt(t,e,j,l,i,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<Bl.length;l++)mt(Bl[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in i)if(i.hasOwnProperty(R)&&(l=i[R],l!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,R,l,i,null)}return;default:if(Pr(e)){for(B in i)i.hasOwnProperty(B)&&(l=i[B],l!==void 0&&_c(t,e,B,l,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(l=i[x],l!=null&&Mt(t,e,x,l,i,null))}function jS(t,e,i,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,v=null,x=null,j=null,R=null,B=null;for(k in i){var Y=i[k];if(i.hasOwnProperty(k)&&Y!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":j=Y;default:l.hasOwnProperty(k)||Mt(t,e,k,null,l,Y)}}for(var L in l){var k=l[L];if(Y=i[L],l.hasOwnProperty(L)&&(k!=null||Y!=null))switch(L){case"type":c=k;break;case"name":r=k;break;case"checked":R=k;break;case"defaultChecked":B=k;break;case"value":v=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,e));break;default:k!==Y&&Mt(t,e,L,k,l,Y)}}Zr(t,v,x,j,R,B,c,r);return;case"select":k=v=x=L=null;for(c in i)if(j=i[c],i.hasOwnProperty(c)&&j!=null)switch(c){case"value":break;case"multiple":k=j;default:l.hasOwnProperty(c)||Mt(t,e,c,null,l,j)}for(r in l)if(c=l[r],j=i[r],l.hasOwnProperty(r)&&(c!=null||j!=null))switch(r){case"value":L=c;break;case"defaultValue":x=c;break;case"multiple":v=c;default:c!==j&&Mt(t,e,r,c,l,j)}e=x,i=v,l=k,L!=null?oi(t,!!i,L,!1):!!l!=!!i&&(e!=null?oi(t,!!i,e,!0):oi(t,!!i,i?[]:"",!1));return;case"textarea":k=L=null;for(x in i)if(r=i[x],i.hasOwnProperty(x)&&r!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(t,e,x,null,l,r)}for(v in l)if(r=l[v],c=i[v],l.hasOwnProperty(v)&&(r!=null||c!=null))switch(v){case"value":L=r;break;case"defaultValue":k=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&Mt(t,e,v,r,l,c)}bh(t,L,k);return;case"option":for(var J in i)if(L=i[J],i.hasOwnProperty(J)&&L!=null&&!l.hasOwnProperty(J))switch(J){case"selected":t.selected=!1;break;default:Mt(t,e,J,null,l,L)}for(j in l)if(L=l[j],k=i[j],l.hasOwnProperty(j)&&L!==k&&(L!=null||k!=null))switch(j){case"selected":t.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Mt(t,e,j,L,l,k)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var at in i)L=i[at],i.hasOwnProperty(at)&&L!=null&&!l.hasOwnProperty(at)&&Mt(t,e,at,null,l,L);for(R in l)if(L=l[R],k=i[R],l.hasOwnProperty(R)&&L!==k&&(L!=null||k!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,e));break;default:Mt(t,e,R,L,l,k)}return;default:if(Pr(e)){for(var Dt in i)L=i[Dt],i.hasOwnProperty(Dt)&&L!==void 0&&!l.hasOwnProperty(Dt)&&_c(t,e,Dt,void 0,l,L);for(B in l)L=l[B],k=i[B],!l.hasOwnProperty(B)||L===k||L===void 0&&k===void 0||_c(t,e,B,L,l,k);return}}for(var z in i)L=i[z],i.hasOwnProperty(z)&&L!=null&&!l.hasOwnProperty(z)&&Mt(t,e,z,null,l,L);for(Y in l)L=l[Y],k=i[Y],!l.hasOwnProperty(Y)||L===k||L==null&&k==null||Mt(t,e,Y,L,l,k)}function wg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var r=i[l],c=r.transferSize,v=r.initiatorType,x=r.duration;if(c&&x&&wg(v)){for(v=0,x=r.responseEnd,l+=1;l<i.length;l++){var j=i[l],R=j.startTime;if(R>x)break;var B=j.transferSize,Y=j.initiatorType;B&&wg(Y)&&(j=j.responseEnd,v+=B*(j<x?1:(x-R)/(j-R)))}if(--l,e+=8*(c+v)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var kc=null,Uc=null;function Co(t){return t.nodeType===9?t:t.ownerDocument}function Eg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ag(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Bc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hc=null;function CS(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var jg=typeof setTimeout=="function"?setTimeout:void 0,MS=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,DS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(t){return Ng.resolve(null).then(t).catch(zS)}:jg;function zS(t){setTimeout(function(){throw t})}function ia(t){return t==="head"}function Cg(t,e){var i=e,l=0;do{var r=i.nextSibling;if(t.removeChild(i),r&&r.nodeType===8)if(i=r.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(r),Bi(e);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")$l(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,$l(i);for(var c=i.firstChild;c;){var v=c.nextSibling,x=c.nodeName;c[ll]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=v}}else i==="body"&&$l(t.ownerDocument.body);i=r}while(i);Bi(e)}function Mg(t,e){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?e?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(e?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function $c(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var i=e;switch(e=e.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":$c(i),Kr(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function OS(t,e,i,l){for(;t.nodeType===1;){var r=i;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[ll])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Xe(t.nextSibling),t===null)break}return null}function RS(t,e,i){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Xe(t.nextSibling),t===null))return null;return t}function Dg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Xe(t.nextSibling),t===null))return null;return t}function Gc(t){return t.data==="$?"||t.data==="$~"}function Yc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function LS(t,e){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||i.readyState!=="loading")e();else{var l=function(){e(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Xe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var qc=null;function zg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(e===0)return Xe(t.nextSibling);e--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||e++}t=t.nextSibling}return null}function Og(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(e===0)return t;e--}else i!=="/$"&&i!=="/&"||e++}t=t.previousSibling}return null}function Rg(t,e,i){switch(e=Co(i),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function $l(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Kr(t)}var Ke=new Map,Lg=new Set;function Mo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ln=K.d;K.d={f:VS,r:_S,D:kS,C:US,L:BS,m:HS,X:GS,S:$S,M:YS};function VS(){var t=Ln.f(),e=xo();return t||e}function _S(t){var e=ii(t);e!==null&&e.tag===5&&e.type==="form"?Jm(e):Ln.r(t)}var _i=typeof document>"u"?null:document;function Vg(t,e,i){var l=_i;if(l&&typeof e=="string"&&e){var r=Ue(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),Lg.has(r)||(Lg.add(r),t={rel:t,crossOrigin:i,href:e},l.querySelector(r)===null&&(e=l.createElement("link"),oe(e,"link",t),ee(e),l.head.appendChild(e)))}}function kS(t){Ln.D(t),Vg("dns-prefetch",t,null)}function US(t,e){Ln.C(t,e),Vg("preconnect",t,e)}function BS(t,e,i){Ln.L(t,e,i);var l=_i;if(l&&t&&e){var r='link[rel="preload"][as="'+Ue(e)+'"]';e==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+Ue(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+Ue(i.imageSizes)+'"]')):r+='[href="'+Ue(t)+'"]';var c=r;switch(e){case"style":c=ki(t);break;case"script":c=Ui(t)}Ke.has(c)||(t=b({rel:"preload",href:e==="image"&&i&&i.imageSrcSet?void 0:t,as:e},i),Ke.set(c,t),l.querySelector(r)!==null||e==="style"&&l.querySelector(Gl(c))||e==="script"&&l.querySelector(Yl(c))||(e=l.createElement("link"),oe(e,"link",t),ee(e),l.head.appendChild(e)))}}function HS(t,e){Ln.m(t,e);var i=_i;if(i&&t){var l=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ue(l)+'"][href="'+Ue(t)+'"]',c=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ui(t)}if(!Ke.has(c)&&(t=b({rel:"modulepreload",href:t},e),Ke.set(c,t),i.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Yl(c)))return}l=i.createElement("link"),oe(l,"link",t),ee(l),i.head.appendChild(l)}}}function $S(t,e,i){Ln.S(t,e,i);var l=_i;if(l&&t){var r=li(l).hoistableStyles,c=ki(t);e=e||"default";var v=r.get(c);if(!v){var x={loading:0,preload:null};if(v=l.querySelector(Gl(c)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},i),(i=Ke.get(c))&&Xc(t,i);var j=v=l.createElement("link");ee(j),oe(j,"link",t),j._p=new Promise(function(R,B){j.onload=R,j.onerror=B}),j.addEventListener("load",function(){x.loading|=1}),j.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Do(v,e,l)}v={type:"stylesheet",instance:v,count:1,state:x},r.set(c,v)}}}function GS(t,e){Ln.X(t,e);var i=_i;if(i&&t){var l=li(i).hoistableScripts,r=Ui(t),c=l.get(r);c||(c=i.querySelector(Yl(r)),c||(t=b({src:t,async:!0},e),(e=Ke.get(r))&&Kc(t,e),c=i.createElement("script"),ee(c),oe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function YS(t,e){Ln.M(t,e);var i=_i;if(i&&t){var l=li(i).hoistableScripts,r=Ui(t),c=l.get(r);c||(c=i.querySelector(Yl(r)),c||(t=b({src:t,async:!0,type:"module"},e),(e=Ke.get(r))&&Kc(t,e),c=i.createElement("script"),ee(c),oe(c,"link",t),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(r,c))}}function _g(t,e,i,l){var r=(r=dt.current)?Mo(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(e=ki(i.href),i=li(r).hoistableStyles,l=i.get(e),l||(l={type:"style",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=ki(i.href);var c=li(r).hoistableStyles,v=c.get(t);if(v||(r=r.ownerDocument||r,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,v),(c=r.querySelector(Gl(t)))&&!c._p&&(v.instance=c,v.state.loading=5),Ke.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Ke.set(t,i),c||qS(r,t,i,v.state))),e&&l===null)throw Error(o(528,""));return v}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=i.async,i=i.src,typeof i=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ui(i),i=li(r).hoistableScripts,l=i.get(e),l||(l={type:"script",instance:null,count:0,state:null},i.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function ki(t){return'href="'+Ue(t)+'"'}function Gl(t){return'link[rel="stylesheet"]['+t+"]"}function kg(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function qS(t,e,i,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),oe(e,"link",i),ee(e),t.head.appendChild(e))}function Ui(t){return'[src="'+Ue(t)+'"]'}function Yl(t){return"script[async]"+t}function Ug(t,e,i){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ue(i.href)+'"]');if(l)return e.instance=l,ee(l),l;var r=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ee(l),oe(l,"style",r),Do(l,i.precedence,t),e.instance=l;case"stylesheet":r=ki(i.href);var c=t.querySelector(Gl(r));if(c)return e.state.loading|=4,e.instance=c,ee(c),c;l=kg(i),(r=Ke.get(r))&&Xc(l,r),c=(t.ownerDocument||t).createElement("link"),ee(c);var v=c;return v._p=new Promise(function(x,j){v.onload=x,v.onerror=j}),oe(c,"link",l),e.state.loading|=4,Do(c,i.precedence,t),e.instance=c;case"script":return c=Ui(i.src),(r=t.querySelector(Yl(c)))?(e.instance=r,ee(r),r):(l=i,(r=Ke.get(c))&&(l=b({},i),Kc(l,r)),t=t.ownerDocument||t,r=t.createElement("script"),ee(r),oe(r,"link",l),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Do(l,i.precedence,t));return e.instance}function Do(t,e,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,c=r,v=0;v<l.length;v++){var x=l[v];if(x.dataset.precedence===e)c=x;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=i.nodeType===9?i.head:i,e.insertBefore(t,e.firstChild))}function Xc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var zo=null;function Bg(t,e,i){if(zo===null){var l=new Map,r=zo=new Map;r.set(i,l)}else r=zo,l=r.get(i),l||(l=new Map,r.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),r=0;r<i.length;r++){var c=i[r];if(!(c[ll]||c[ae]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var v=c.getAttribute(e)||"";v=t+v;var x=l.get(v);x?x.push(c):l.set(v,[c])}}return l}function Hg(t,e,i){t=t.ownerDocument||t,t.head.insertBefore(i,e==="title"?t.querySelector("head > title"):null)}function XS(t,e,i){if(i===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function $g(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function KS(t,e,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var r=ki(l.href),c=e.querySelector(Gl(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Oo.bind(t),e.then(t,t)),i.state.loading|=4,i.instance=c,ee(c);return}c=e.ownerDocument||e,l=kg(l),(r=Ke.get(r))&&Xc(l,r),c=c.createElement("link"),ee(c);var v=c;v._p=new Promise(function(x,j){v.onload=x,v.onerror=j}),oe(c,"link",l),i.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,e),(e=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Oo.bind(t),e.addEventListener("load",i),e.addEventListener("error",i))}}var Fc=0;function FS(t,e){return t.stylesheets&&t.count===0&&Lo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Lo(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Fc===0&&(Fc=62500*NS());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Lo(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Fc?50:800)+e);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function Oo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ro=null;function Lo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ro=new Map,e.forEach(ZS,t),Ro=null,Oo.call(t))}function ZS(t,e){if(!(e.state.loading&4)){var i=Ro.get(t);if(i)var l=i.get(null);else{i=new Map,Ro.set(t,i);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var v=r[c];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),l=v)}l&&i.set(null,l)}r=e.instance,v=r.getAttribute("data-precedence"),c=i.get(v)||l,c===l&&i.set(null,r),i.set(v,r),this.count++,l=Oo.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var ql={$$typeof:_,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function QS(t,e,i,l,r,c,v,x,j){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gr(0),this.hiddenUpdates=Gr(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Gg(t,e,i,l,r,c,v,x,j,R,B,Y){return t=new QS(t,e,i,v,j,R,B,Y,x),e=1,c===!0&&(e|=24),c=De(3,null,null,e),t.current=c,c.stateNode=t,e=ju(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:i,cache:e},Du(c),t}function Yg(t){return t?(t=pi,t):pi}function qg(t,e,i,l,r,c){r=Yg(r),l.context===null?l.context=r:l.pendingContext=r,l=Fn(e),l.payload={element:i},c=c===void 0?null:c,c!==null&&(l.callback=c),i=Zn(t,l,e),i!==null&&(we(i,t,e),Tl(i,t,e))}function Xg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<e?i:e}}function Zc(t,e){Xg(t,e),(t=t.alternate)&&Xg(t,e)}function Kg(t){if(t.tag===13||t.tag===31){var e=Ca(t,67108864);e!==null&&we(e,t,67108864),Zc(t,67108864)}}function Fg(t){if(t.tag===13||t.tag===31){var e=Ve();e=Yr(e);var i=Ca(t,e);i!==null&&we(i,t,e),Zc(t,e)}}var Vo=!0;function PS(t,e,i,l){var r=U.T;U.T=null;var c=K.p;try{K.p=2,Qc(t,e,i,l)}finally{K.p=c,U.T=r}}function JS(t,e,i,l){var r=U.T;U.T=null;var c=K.p;try{K.p=8,Qc(t,e,i,l)}finally{K.p=c,U.T=r}}function Qc(t,e,i,l){if(Vo){var r=Pc(l);if(r===null)Vc(t,e,l,_o,i),Qg(t,l);else if(IS(r,t,e,i,l))l.stopPropagation();else if(Qg(t,l),e&4&&-1<WS.indexOf(t)){for(;r!==null;){var c=ii(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var v=wa(c.pendingLanes);if(v!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var j=1<<31-Ce(v);x.entanglements[1]|=j,v&=~j}un(c),(wt&6)===0&&(yo=je()+500,Ul(0))}}break;case 31:case 13:x=Ca(c,2),x!==null&&we(x,c,2),xo(),Zc(c,2)}if(c=Pc(l),c===null&&Vc(t,e,l,_o,i),c===r)break;r=c}r!==null&&l.stopPropagation()}else Vc(t,e,l,null,i)}}function Pc(t){return t=Wr(t),Jc(t)}var _o=null;function Jc(t){if(_o=null,t=ai(t),t!==null){var e=d(t);if(e===null)t=null;else{var i=e.tag;if(i===13){if(t=f(e),t!==null)return t;t=null}else if(i===31){if(t=h(e),t!==null)return t;t=null}else if(i===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return _o=t,null}function Zg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kx()){case nh:return 2;case ah:return 8;case Es:case Ux:return 32;case ih:return 268435456;default:return 32}default:return 32}}var Wc=!1,la=null,sa=null,oa=null,Xl=new Map,Kl=new Map,ra=[],WS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Qg(t,e){switch(t){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":oa=null;break;case"pointerover":case"pointerout":Xl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(e.pointerId)}}function Fl(t,e,i,l,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:i,eventSystemFlags:l,nativeEvent:c,targetContainers:[r]},e!==null&&(e=ii(e),e!==null&&Kg(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function IS(t,e,i,l,r){switch(e){case"focusin":return la=Fl(la,t,e,i,l,r),!0;case"dragenter":return sa=Fl(sa,t,e,i,l,r),!0;case"mouseover":return oa=Fl(oa,t,e,i,l,r),!0;case"pointerover":var c=r.pointerId;return Xl.set(c,Fl(Xl.get(c)||null,t,e,i,l,r)),!0;case"gotpointercapture":return c=r.pointerId,Kl.set(c,Fl(Kl.get(c)||null,t,e,i,l,r)),!0}return!1}function Pg(t){var e=ai(t.target);if(e!==null){var i=d(e);if(i!==null){if(e=i.tag,e===13){if(e=f(i),e!==null){t.blockedOn=e,ch(t.priority,function(){Fg(i)});return}}else if(e===31){if(e=h(i),e!==null){t.blockedOn=e,ch(t.priority,function(){Fg(i)});return}}else if(e===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ko(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var i=Pc(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Jr=l,i.target.dispatchEvent(l),Jr=null}else return e=ii(i),e!==null&&Kg(e),t.blockedOn=i,!1;e.shift()}return!0}function Jg(t,e,i){ko(t)&&i.delete(e)}function tT(){Wc=!1,la!==null&&ko(la)&&(la=null),sa!==null&&ko(sa)&&(sa=null),oa!==null&&ko(oa)&&(oa=null),Xl.forEach(Jg),Kl.forEach(Jg)}function Uo(t,e){t.blockedOn===e&&(t.blockedOn=null,Wc||(Wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,tT)))}var Bo=null;function Wg(t){Bo!==t&&(Bo=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bo===t&&(Bo=null);for(var e=0;e<t.length;e+=3){var i=t[e],l=t[e+1],r=t[e+2];if(typeof l!="function"){if(Jc(l||i)===null)continue;break}var c=ii(i);c!==null&&(t.splice(e,3),e-=3,Pu(c,{pending:!0,data:r,method:i.method,action:l},l,r))}}))}function Bi(t){function e(j){return Uo(j,t)}la!==null&&Uo(la,t),sa!==null&&Uo(sa,t),oa!==null&&Uo(oa,t),Xl.forEach(e),Kl.forEach(e);for(var i=0;i<ra.length;i++){var l=ra[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<ra.length&&(i=ra[0],i.blockedOn===null);)Pg(i),i.blockedOn===null&&ra.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var r=i[l],c=i[l+1],v=r[ve]||null;if(typeof c=="function")v||Wg(i);else if(v){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,v=c[ve]||null)x=v.formAction;else if(Jc(r)!==null)continue}else x=v.action;typeof x=="function"?i[l+1]=x:(i.splice(l,3),l-=3),Wg(i)}}}function Ig(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(v){return r=v})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Ic(t){this._internalRoot=t}Ho.prototype.render=Ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var i=e.current,l=Ve();qg(i,l,t,e,null,null)},Ho.prototype.unmount=Ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;qg(t.current,2,null,t,null,null),xo(),e[ni]=null}};function Ho(t){this._internalRoot=t}Ho.prototype.unstable_scheduleHydration=function(t){if(t){var e=uh();t={blockedOn:null,target:t,priority:e};for(var i=0;i<ra.length&&e!==0&&e<ra[i].priority;i++);ra.splice(i,0,t),i===0&&Pg(t)}};var tv=a.version;if(tv!=="19.2.4")throw Error(o(527,tv,"19.2.4"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=g(e),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var eT={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{nl=$o.inject(eT),Ne=$o}catch{}}return Ql.createRoot=function(t,e){if(!u(t))throw Error(o(299));var i=!1,l="",r=op,c=rp,v=up;return e!=null&&(e.unstable_strictMode===!0&&(i=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(v=e.onRecoverableError)),e=Gg(t,1,!1,null,null,i,l,null,r,c,v,Ig),t[ni]=e.current,Lc(t),new Ic(e)},Ql.hydrateRoot=function(t,e,i){if(!u(t))throw Error(o(299));var l=!1,r="",c=op,v=rp,x=up,j=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),e=Gg(t,1,!0,e,i??null,l,r,j,c,v,x,Ig),e.context=Yg(null),i=e.current,l=Ve(),l=Yr(l),r=Fn(l),r.callback=null,Zn(i,r,l),i=l,e.current.lanes=i,il(e,i),un(e),t[ni]=e.current,Lc(t),new Ho(e)},Ql.version="19.2.4",Ql}var fv;function dT(){if(fv)return nf.exports;fv=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(a){console.error(a)}}return n(),nf.exports=fT(),nf.exports}var hT=dT();const Q0="/outlook/api";async function ce(n){const a=await fetch(`${Q0}${n}`,{headers:{accept:"application/json"}});if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);return a.json()}function mT(n){const a=new EventSource(`${Q0}/events`);return a.addEventListener("state-changed",s=>{try{const o=JSON.parse(s.data);n("state-changed",o)}catch{n("state-changed",{})}}),a.onerror=()=>{},()=>a.close()}function Qe(n){if(!n)return"unknown";const a=Date.now()-new Date(n).getTime();return a<0||a<6e4?"just now":a<36e5?`${Math.floor(a/6e4)}m ago`:a<864e5?`${Math.floor(a/36e5)}h ago`:`${Math.floor(a/864e5)}d ago`}function nn(n,a){if(!n)return"";if(n.length<=a)return n;const s=n.lastIndexOf(" ",a);return(s>a*.6?n.slice(0,s):n.slice(0,a))+"…"}const P0=w.createContext(()=>{});function Qi(){return w.useContext(P0)}const pT=new Set(["overview","sessions","work","connections","inner","memory","runtime"]);function J0(n){const a=n.replace(/^#\/?/,"");if(!a.startsWith("agent/"))return null;const s=a.split("/"),o=s[1]?decodeURIComponent(s[1]):"";if(!o)return null;const u=s[2]??"overview",d=pT.has(u)?u:"overview",f=s.slice(3),h=f.length>0?f.map(decodeURIComponent).join("/"):void 0;return{agent:o,tab:d,focus:h}}function Lf(n){let a=`#/agent/${encodeURIComponent(n.agent)}`;return(n.tab!=="overview"||n.focus)&&(a+=`/${n.tab}`),n.focus&&(a+=`/${n.focus.split("/").map(encodeURIComponent).join("/")}`),a}const gT=typeof document<"u"?st.useLayoutEffect:()=>{},xa=n=>{var a;return(a=n==null?void 0:n.ownerDocument)!==null&&a!==void 0?a:document},Xa=n=>n&&"window"in n&&n.window===n?n:xa(n).defaultView||window;function vT(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function yT(n){return vT(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let bT=!1;function vd(){return bT}function Ka(n,a){if(!vd())return a&&n?n.contains(a):!1;if(!n||!a)return!1;let s=a;for(;s!==null;){if(s===n)return!0;s.tagName==="SLOT"&&s.assignedSlot?s=s.assignedSlot.parentNode:yT(s)?s=s.host:s=s.parentNode}return!1}const Ki=(n=document)=>{var a;if(!vd())return n.activeElement;let s=n.activeElement;for(;s&&"shadowRoot"in s&&(!((a=s.shadowRoot)===null||a===void 0)&&a.activeElement);)s=s.shadowRoot.activeElement;return s};function me(n){if(vd()&&n.target instanceof Element&&n.target.shadowRoot){var a,s;if("composedPath"in n)return(a=n.composedPath()[0])!==null&&a!==void 0?a:null;if("composedPath"in n.nativeEvent)return(s=n.nativeEvent.composedPath()[0])!==null&&s!==void 0?s:null}return n.target}function W0(n){var a,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(a=0;a<u;a++)n[a]&&(s=W0(n[a]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function Kt(){for(var n,a,s=0,o="",u=arguments.length;s<u;s++)(n=arguments[s])&&(a=W0(n))&&(o&&(o+=" "),o+=a);return o}function xT(n){if(ST())n.focus({preventScroll:!0});else{let a=TT(n);n.focus(),wT(a)}}let Go=null;function ST(){if(Go==null){Go=!1;try{document.createElement("div").focus({get preventScroll(){return Go=!0,!0}})}catch{}}return Go}function TT(n){let a=n.parentNode,s=[],o=document.scrollingElement||document.documentElement;for(;a instanceof HTMLElement&&a!==o;)(a.offsetHeight<a.scrollHeight||a.offsetWidth<a.scrollWidth)&&s.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft}),a=a.parentNode;return o instanceof HTMLElement&&s.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),s}function wT(n){for(let{element:a,scrollTop:s,scrollLeft:o}of n)a.scrollTop=s,a.scrollLeft=o}function Tr(n){var a;if(typeof window>"u"||window.navigator==null)return!1;let s=(a=window.navigator.userAgentData)===null||a===void 0?void 0:a.brands;return Array.isArray(s)&&s.some(o=>n.test(o.brand))||n.test(window.navigator.userAgent)}function I0(n){var a;return typeof window<"u"&&window.navigator!=null?n.test(((a=window.navigator.userAgentData)===null||a===void 0?void 0:a.platform)||window.navigator.platform):!1}function Pi(n){let a=null;return()=>(a==null&&(a=n()),a)}const sr=Pi(function(){return I0(/^Mac/i)}),ET=Pi(function(){return I0(/^iPad/i)||sr()&&navigator.maxTouchPoints>1}),AT=Pi(function(){return Tr(/AppleWebKit/i)&&!jT()}),jT=Pi(function(){return Tr(/Chrome/i)}),NT=Pi(function(){return Tr(/Android/i)}),CT=Pi(function(){return Tr(/Firefox/i)});function cs(n,a,s=!0){var o,u;let{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}=a;CT()&&(!((u=window.event)===null||u===void 0||(o=u.type)===null||o===void 0)&&o.startsWith("key"))&&n.target==="_blank"&&(sr()?d=!0:f=!0);let g=AT()&&sr()&&!ET()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:d,ctrlKey:f,altKey:h,shiftKey:m}):new MouseEvent("click",{metaKey:d,ctrlKey:f,altKey:h,shiftKey:m,detail:1,bubbles:!0,cancelable:!0});cs.isOpening=s,xT(n),n.dispatchEvent(g),cs.isOpening=!1}cs.isOpening=!1;function ty(){let n=w.useRef(new Map),a=w.useCallback((u,d,f,h)=>{let m=h!=null&&h.once?(...g)=>{n.current.delete(f),f(...g)}:f;n.current.set(f,{type:d,eventTarget:u,fn:m,options:h}),u.addEventListener(d,m,h)},[]),s=w.useCallback((u,d,f,h)=>{var m;let g=((m=n.current.get(f))===null||m===void 0?void 0:m.fn)||f;u.removeEventListener(d,g,h),n.current.delete(f)},[]),o=w.useCallback(()=>{n.current.forEach((u,d)=>{s(u.eventTarget,u.type,d,u.options)})},[s]);return w.useEffect(()=>o,[o]),{addGlobalListener:a,removeGlobalListener:s,removeAllGlobalListeners:o}}function MT(n){return n.pointerType===""&&n.isTrusted?!0:NT()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}var DT=Z0();function ey(n){let a=n;return a.nativeEvent=n,a.isDefaultPrevented=()=>a.defaultPrevented,a.isPropagationStopped=()=>a.cancelBubble,a.persist=()=>{},a}function zT(n,a){Object.defineProperty(n,"target",{value:a}),Object.defineProperty(n,"currentTarget",{value:a})}function ny(n){let a=w.useRef({isFocused:!1,observer:null});return gT(()=>{const s=a.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]),w.useCallback(s=>{let o=me(s);if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){a.current.isFocused=!0;let u=o,d=f=>{if(a.current.isFocused=!1,u.disabled){let h=ey(f);n==null||n(h)}a.current.observer&&(a.current.observer.disconnect(),a.current.observer=null)};u.addEventListener("focusout",d,{once:!0}),a.current.observer=new MutationObserver(()=>{if(a.current.isFocused&&u.disabled){var f;(f=a.current.observer)===null||f===void 0||f.disconnect();let h=u===Ki()?null:Ki();u.dispatchEvent(new FocusEvent("blur",{relatedTarget:h})),u.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:h}))}}),a.current.observer.observe(u,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let OT=!1,ps=null;const Vf=new Set;let ns=new Map,Wa=!1,_f=!1;const RT={Tab:!0,Escape:!0};function yd(n,a){for(let s of Vf)s(n,a)}function LT(n){return!(n.metaKey||!sr()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function or(n){Wa=!0,!cs.isOpening&<(n)&&(ps="keyboard",yd("keyboard",n))}function Xi(n){ps="pointer","pointerType"in n&&n.pointerType,(n.type==="mousedown"||n.type==="pointerdown")&&(Wa=!0,yd("pointer",n))}function ay(n){!cs.isOpening&&MT(n)&&(Wa=!0,ps="virtual")}function iy(n){me(n)===window||me(n)===document||OT||!n.isTrusted||(!Wa&&!_f&&(ps="virtual",yd("virtual",n)),Wa=!1,_f=!1)}function ly(){Wa=!1,_f=!0}function kf(n){if(typeof window>"u"||typeof document>"u"||ns.get(Xa(n)))return;const a=Xa(n),s=xa(n);let o=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){Wa=!0,o.apply(this,arguments)},s.addEventListener("keydown",or,!0),s.addEventListener("keyup",or,!0),s.addEventListener("click",ay,!0),a.addEventListener("focus",iy,!0),a.addEventListener("blur",ly,!1),typeof PointerEvent<"u"&&(s.addEventListener("pointerdown",Xi,!0),s.addEventListener("pointermove",Xi,!0),s.addEventListener("pointerup",Xi,!0)),a.addEventListener("beforeunload",()=>{sy(n)},{once:!0}),ns.set(a,{focus:o})}const sy=(n,a)=>{const s=Xa(n),o=xa(n);a&&o.removeEventListener("DOMContentLoaded",a),ns.has(s)&&(s.HTMLElement.prototype.focus=ns.get(s).focus,o.removeEventListener("keydown",or,!0),o.removeEventListener("keyup",or,!0),o.removeEventListener("click",ay,!0),s.removeEventListener("focus",iy,!0),s.removeEventListener("blur",ly,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Xi,!0),o.removeEventListener("pointermove",Xi,!0),o.removeEventListener("pointerup",Xi,!0)),ns.delete(s))};function VT(n){const a=xa(n);let s;return a.readyState!=="loading"?kf(n):(s=()=>{kf(n)},a.addEventListener("DOMContentLoaded",s)),()=>sy(n,s)}typeof document<"u"&&VT();function Uf(){return ps!=="pointer"}const _T=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kT(n,a,s){let o=xa(s?me(s):void 0),u=s?me(s):void 0;const d=typeof window<"u"?Xa(u).HTMLInputElement:HTMLInputElement,f=typeof window<"u"?Xa(u).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Xa(u).HTMLElement:HTMLElement,m=typeof window<"u"?Xa(u).KeyboardEvent:KeyboardEvent;let g=Ki(o);return n=n||g instanceof d&&!_T.has(g.type)||g instanceof f||g instanceof h&&g.isContentEditable,!(n&&a==="keyboard"&&s instanceof m&&!RT[s.key])}function UT(n,a,s){kf(),w.useEffect(()=>{if((s==null?void 0:s.enabled)===!1)return;let o=(u,d)=>{kT(!!(s!=null&&s.isTextInput),u,d)&&n(Uf())};return Vf.add(o),()=>{Vf.delete(o)}},a)}function BT(n){let{isDisabled:a,onFocus:s,onBlur:o,onFocusChange:u}=n;const d=w.useCallback(m=>{if(me(m)===m.currentTarget)return o&&o(m),u&&u(!1),!0},[o,u]),f=ny(d),h=w.useCallback(m=>{let g=me(m);const y=xa(g),b=y?Ki(y):Ki();g===m.currentTarget&&g===b&&(s&&s(m),u&&u(!0),f(m))},[u,s,f]);return{focusProps:{onFocus:!a&&(s||u||o)?h:void 0,onBlur:!a&&(o||u)?d:void 0}}}function HT(n){let{isDisabled:a,onBlurWithin:s,onFocusWithin:o,onFocusWithinChange:u}=n,d=w.useRef({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=ty(),m=w.useCallback(b=>{Ka(b.currentTarget,me(b))&&d.current.isFocusWithin&&!Ka(b.currentTarget,b.relatedTarget)&&(d.current.isFocusWithin=!1,h(),s&&s(b),u&&u(!1))},[s,u,d,h]),g=ny(m),y=w.useCallback(b=>{if(!Ka(b.currentTarget,me(b)))return;let S=me(b);const T=xa(S),A=Ki(T);if(!d.current.isFocusWithin&&A===S){o&&o(b),u&&u(!0),d.current.isFocusWithin=!0,g(b);let E=b.currentTarget;f(T,"focus",C=>{let N=me(C);if(d.current.isFocusWithin&&!Ka(E,N)){let V=new T.defaultView.FocusEvent("blur",{relatedTarget:N});zT(V,E);let _=ey(V);m(_)}},{capture:!0})}},[o,u,g,f,m]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:y,onBlur:m}}}let Bf=!1,Yo=0;function $T(){Bf=!0,setTimeout(()=>{Bf=!1},50)}function dv(n){n.pointerType==="touch"&&$T()}function GT(){if(!(typeof document>"u"))return Yo===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",dv),Yo++,()=>{Yo--,!(Yo>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",dv)}}function oy(n){let{onHoverStart:a,onHoverChange:s,onHoverEnd:o,isDisabled:u}=n,[d,f]=w.useState(!1),h=w.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;w.useEffect(GT,[]);let{addGlobalListener:m,removeAllGlobalListeners:g}=ty(),{hoverProps:y,triggerHoverEnd:b}=w.useMemo(()=>{let S=(E,C)=>{if(h.pointerType=C,u||C==="touch"||h.isHovered||!Ka(E.currentTarget,me(E)))return;h.isHovered=!0;let N=E.currentTarget;h.target=N,m(xa(me(E)),"pointerover",V=>{h.isHovered&&h.target&&!Ka(h.target,me(V))&&T(V,V.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:N,pointerType:C}),s&&s(!0),f(!0)},T=(E,C)=>{let N=h.target;h.pointerType="",h.target=null,!(C==="touch"||!h.isHovered||!N)&&(h.isHovered=!1,g(),o&&o({type:"hoverend",target:N,pointerType:C}),s&&s(!1),f(!1))},A={};return typeof PointerEvent<"u"&&(A.onPointerEnter=E=>{Bf&&E.pointerType==="mouse"||S(E,E.pointerType)},A.onPointerLeave=E=>{!u&&Ka(E.currentTarget,me(E))&&T(E,E.pointerType)}),{hoverProps:A,triggerHoverEnd:T}},[a,s,o,u,h,m,g]);return w.useEffect(()=>{u&&b({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:y,isHovered:d}}function ry(n={}){let{autoFocus:a=!1,isTextInput:s,within:o}=n,u=w.useRef({isFocused:!1,isFocusVisible:a||Uf()}),[d,f]=w.useState(!1),[h,m]=w.useState(()=>u.current.isFocused&&u.current.isFocusVisible),g=w.useCallback(()=>m(u.current.isFocused&&u.current.isFocusVisible),[]),y=w.useCallback(T=>{u.current.isFocused=T,u.current.isFocusVisible=Uf(),f(T),g()},[g]);UT(T=>{u.current.isFocusVisible=T,g()},[s,d],{enabled:d,isTextInput:s});let{focusProps:b}=BT({isDisabled:o,onFocusChange:y}),{focusWithinProps:S}=HT({isDisabled:!o,onFocusWithinChange:y});return{isFocused:d,isFocusVisible:h,focusProps:o?S:b}}var YT=Object.defineProperty,qT=(n,a,s)=>a in n?YT(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,of=(n,a,s)=>(qT(n,typeof a!="symbol"?a+"":a,s),s);let XT=class{constructor(){of(this,"current",this.detect()),of(this,"handoffState","pending"),of(this,"currentId",0)}set(a){this.current!==a&&(this.handoffState="pending",this.currentId=0,this.current=a)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},hn=new XT;function Ji(n){var a;return hn.isServer?null:n==null?document:(a=n==null?void 0:n.ownerDocument)!=null?a:document}function Hf(n){var a,s;return hn.isServer?null:n==null?document:(s=(a=n==null?void 0:n.getRootNode)==null?void 0:a.call(n))!=null?s:document}function uy(n){var a,s;return(s=(a=Hf(n))==null?void 0:a.activeElement)!=null?s:null}function KT(n){return uy(n)===n}function wr(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(a=>setTimeout(()=>{throw a}))}function Un(){let n=[],a={addEventListener(s,o,u,d){return s.addEventListener(o,u,d),a.add(()=>s.removeEventListener(o,u,d))},requestAnimationFrame(...s){let o=requestAnimationFrame(...s);return a.add(()=>cancelAnimationFrame(o))},nextFrame(...s){return a.requestAnimationFrame(()=>a.requestAnimationFrame(...s))},setTimeout(...s){let o=setTimeout(...s);return a.add(()=>clearTimeout(o))},microTask(...s){let o={current:!0};return wr(()=>{o.current&&s[0]()}),a.add(()=>{o.current=!1})},style(s,o,u){let d=s.style.getPropertyValue(o);return Object.assign(s.style,{[o]:u}),this.add(()=>{Object.assign(s.style,{[o]:d})})},group(s){let o=Un();return s(o),this.add(()=>o.dispose())},add(s){return n.includes(s)||n.push(s),()=>{let o=n.indexOf(s);if(o>=0)for(let u of n.splice(o,1))u()}},dispose(){for(let s of n.splice(0))s()}};return a}function gs(){let[n]=w.useState(Un);return w.useEffect(()=>()=>n.dispose(),[n]),n}let Ee=(n,a)=>{hn.isServer?w.useEffect(n,a):w.useLayoutEffect(n,a)};function ti(n){let a=w.useRef(n);return Ee(()=>{a.current=n},[n]),a}let jt=function(n){let a=ti(n);return st.useCallback((...s)=>a.current(...s),[a])};function FT(n){let a=n.width/2,s=n.height/2;return{top:n.clientY-s,right:n.clientX+a,bottom:n.clientY+s,left:n.clientX-a}}function ZT(n,a){return!(!n||!a||n.right<a.left||n.left>a.right||n.bottom<a.top||n.top>a.bottom)}function cy({disabled:n=!1}={}){let a=w.useRef(null),[s,o]=w.useState(!1),u=gs(),d=jt(()=>{a.current=null,o(!1),u.dispose()}),f=jt(h=>{if(u.dispose(),a.current===null){a.current=h.currentTarget,o(!0);{let m=Ji(h.currentTarget);u.addEventListener(m,"pointerup",d,!1),u.addEventListener(m,"pointermove",g=>{if(a.current){let y=FT(g);o(ZT(y,a.current.getBoundingClientRect()))}},!1),u.addEventListener(m,"pointercancel",d,!1)}}});return{pressed:s,pressProps:n?{}:{onPointerDown:f,onPointerUp:d,onClick:d}}}function ei(n){return w.useMemo(()=>n,Object.values(n))}let QT=w.createContext(void 0);function fy(){return w.useContext(QT)}function $f(...n){return Array.from(new Set(n.flatMap(a=>typeof a=="string"?a.split(" "):[]))).filter(Boolean).join(" ")}function kn(n,a,...s){if(n in a){let u=a[n];return typeof u=="function"?u(...s):u}let o=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(a).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,kn),o}var rr=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(rr||{}),ha=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(ha||{});function Ae(){let n=JT();return w.useCallback(a=>PT({mergeRefs:n,...a}),[n])}function PT({ourProps:n,theirProps:a,slot:s,defaultTag:o,features:u,visible:d=!0,name:f,mergeRefs:h}){h=h??WT;let m=dy(a,n);if(d)return qo(m,s,o,f,h);let g=u??0;if(g&2){let{static:y=!1,...b}=m;if(y)return qo(b,s,o,f,h)}if(g&1){let{unmount:y=!0,...b}=m;return kn(y?0:1,{0(){return null},1(){return qo({...b,hidden:!0,style:{display:"none"}},s,o,f,h)}})}return qo(m,s,o,f,h)}function qo(n,a={},s,o,u){let{as:d=s,children:f,refName:h="ref",...m}=rf(n,["unmount","static"]),g=n.ref!==void 0?{[h]:n.ref}:{},y=typeof f=="function"?f(a):f;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(a)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let b={};if(a){let S=!1,T=[];for(let[A,E]of Object.entries(a))typeof E=="boolean"&&(S=!0),E===!0&&T.push(A.replace(/([A-Z])/g,C=>`-${C.toLowerCase()}`));if(S){b["data-headlessui-state"]=T.join(" ");for(let A of T)b[`data-${A}`]=""}}if(as(d)&&(Object.keys(Ga(m)).length>0||Object.keys(Ga(b)).length>0))if(!w.isValidElement(y)||Array.isArray(y)&&y.length>1||t2(y)){if(Object.keys(Ga(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ga(m)).concat(Object.keys(Ga(b))).map(S=>` - ${S}`).join(`
|
|
50
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(S=>` - ${S}`).join(`
|
|
51
|
-
`)].join(`
|
|
52
|
-
`))}else{let S=y.props,T=S==null?void 0:S.className,A=typeof T=="function"?(...N)=>$f(T(...N),m.className):$f(T,m.className),E=A?{className:A}:{},C=dy(y.props,Ga(rf(m,["ref"])));for(let N in b)N in C&&delete b[N];return w.cloneElement(y,Object.assign({},C,b,g,{ref:u(IT(y),g.ref)},E))}return w.createElement(d,Object.assign({},rf(m,["ref"]),!as(d)&&g,!as(d)&&b),y)}function JT(){let n=w.useRef([]),a=w.useCallback(s=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(s):o.current=s)},[]);return(...s)=>{if(!s.every(o=>o==null))return n.current=s,a}}function WT(...n){return n.every(a=>a==null)?void 0:a=>{for(let s of n)s!=null&&(typeof s=="function"?s(a):s.current=a)}}function dy(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(s[u]!=null||(s[u]=[]),s[u].push(o[u])):a[u]=o[u];if(a.disabled||a["aria-disabled"])for(let o in s)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(s[o]=[u=>{var d;return(d=u==null?void 0:u.preventDefault)==null?void 0:d.call(u)}]);for(let o in s)Object.assign(a,{[o](u,...d){let f=s[o];for(let h of f){if((u instanceof Event||(u==null?void 0:u.nativeEvent)instanceof Event)&&u.defaultPrevented)return;h(u,...d)}}});return a}function bd(...n){if(n.length===0)return{};if(n.length===1)return n[0];let a={},s={};for(let o of n)for(let u in o)u.startsWith("on")&&typeof o[u]=="function"?(s[u]!=null||(s[u]=[]),s[u].push(o[u])):a[u]=o[u];for(let o in s)Object.assign(a,{[o](...u){let d=s[o];for(let f of d)f==null||f(...u)}});return a}function fe(n){var a;return Object.assign(w.forwardRef(n),{displayName:(a=n.displayName)!=null?a:n.name})}function Ga(n){let a=Object.assign({},n);for(let s in a)a[s]===void 0&&delete a[s];return a}function rf(n,a=[]){let s=Object.assign({},n);for(let o of a)o in s&&delete s[o];return s}function IT(n){return st.version.split(".")[0]>="19"?n.props.ref:n.ref}function as(n){return n===w.Fragment||n===Symbol.for("react.fragment")}function t2(n){return as(n.type)}let e2="button";function n2(n,a){var s;let o=fy(),{disabled:u=o||!1,autoFocus:d=!1,...f}=n,{isFocusVisible:h,focusProps:m}=ry({autoFocus:d}),{isHovered:g,hoverProps:y}=oy({isDisabled:u}),{pressed:b,pressProps:S}=cy({disabled:u}),T=bd({ref:a,type:(s=f.type)!=null?s:"button",disabled:u||void 0,autoFocus:d},m,y,S),A=ei({disabled:u,hover:g,focus:h,active:b,autofocus:d});return Ae()({ourProps:T,theirProps:f,slot:A,defaultTag:e2,name:"Button"})}let vs=fe(n2),a2="span";var ur=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(ur||{});function i2(n,a){var s;let{features:o=1,...u}=n,d={ref:a,"aria-hidden":(o&2)===2?!0:(s=u["aria-hidden"])!=null?s:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Ae()({ourProps:d,theirProps:u,slot:{},defaultTag:a2,name:"Hidden"})}let Gf=fe(i2);function l2(n){return typeof n!="object"||n===null?!1:"nodeType"in n}function ga(n){return l2(n)&&"tagName"in n}function Ia(n){return ga(n)&&"accessKey"in n}function ma(n){return ga(n)&&"tabIndex"in n}function s2(n){return ga(n)&&"style"in n}function o2(n){return Ia(n)&&n.nodeName==="IFRAME"}function r2(n){return Ia(n)&&n.nodeName==="INPUT"}let hy=Symbol();function u2(n,a=!0){return Object.assign(n,{[hy]:a})}function gn(...n){let a=w.useRef(n);w.useEffect(()=>{a.current=n},[n]);let s=jt(o=>{for(let u of a.current)u!=null&&(typeof u=="function"?u(o):u.current=o)});return n.every(o=>o==null||(o==null?void 0:o[hy]))?void 0:s}let xd=w.createContext(null);xd.displayName="DescriptionContext";function my(){let n=w.useContext(xd);if(n===null){let a=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(a,my),a}return n}function c2(){let[n,a]=w.useState([]);return[n.length>0?n.join(" "):void 0,w.useMemo(()=>function(s){let o=jt(d=>(a(f=>[...f,d]),()=>a(f=>{let h=f.slice(),m=h.indexOf(d);return m!==-1&&h.splice(m,1),h}))),u=w.useMemo(()=>({register:o,slot:s.slot,name:s.name,props:s.props,value:s.value}),[o,s.slot,s.name,s.props,s.value]);return st.createElement(xd.Provider,{value:u},s.children)},[a])]}let f2="p";function d2(n,a){let s=w.useId(),o=fy(),{id:u=`headlessui-description-${s}`,...d}=n,f=my(),h=gn(a);Ee(()=>f.register(u),[u,f.register]);let m=ei({...f.slot,disabled:o||!1}),g={ref:h,...f.props,id:u};return Ae()({ourProps:g,theirProps:d,slot:m,defaultTag:f2,name:f.name||"Description"})}let h2=fe(d2),m2=Object.assign(h2,{});var py=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(py||{});let gy=w.createContext(()=>{});function p2(){return w.useContext(gy)}function g2({value:n,children:a}){return st.createElement(gy.Provider,{value:n},a)}function v2(n,a){let s=p2();return st.createElement(vs,{ref:a,...bd({onClick:s},n)})}let vy=fe(v2),yy=class extends Map{constructor(a){super(),this.factory=a}get(a){let s=super.get(a);return s===void 0&&(s=this.factory(a),this.set(a,s)),s}};var y2=Object.defineProperty,b2=(n,a,s)=>a in n?y2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,x2=(n,a,s)=>(b2(n,a+"",s),s),by=(n,a,s)=>{if(!a.has(n))throw TypeError("Cannot "+s)},Fe=(n,a,s)=>(by(n,a,"read from private field"),s?s.call(n):a.get(n)),uf=(n,a,s)=>{if(a.has(n))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(n):a.set(n,s)},hv=(n,a,s,o)=>(by(n,a,"write to private field"),a.set(n,s),s),cn,Wl,Il;let S2=class{constructor(a){uf(this,cn,{}),uf(this,Wl,new yy(()=>new Set)),uf(this,Il,new Set),x2(this,"disposables",Un()),hv(this,cn,a),hn.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Fe(this,cn)}subscribe(a,s){if(hn.isServer)return()=>{};let o={selector:a,callback:s,current:a(Fe(this,cn))};return Fe(this,Il).add(o),this.disposables.add(()=>{Fe(this,Il).delete(o)})}on(a,s){return hn.isServer?()=>{}:(Fe(this,Wl).get(a).add(s),this.disposables.add(()=>{Fe(this,Wl).get(a).delete(s)}))}send(a){let s=this.reduce(Fe(this,cn),a);if(s!==Fe(this,cn)){hv(this,cn,s);for(let o of Fe(this,Il)){let u=o.selector(Fe(this,cn));xy(o.current,u)||(o.current=u,o.callback(u))}for(let o of Fe(this,Wl).get(a.type))o(Fe(this,cn),a)}}};cn=new WeakMap,Wl=new WeakMap,Il=new WeakMap;function xy(n,a){return Object.is(n,a)?!0:typeof n!="object"||n===null||typeof a!="object"||a===null?!1:Array.isArray(n)&&Array.isArray(a)?n.length!==a.length?!1:cf(n[Symbol.iterator](),a[Symbol.iterator]()):n instanceof Map&&a instanceof Map||n instanceof Set&&a instanceof Set?n.size!==a.size?!1:cf(n.entries(),a.entries()):mv(n)&&mv(a)?cf(Object.entries(n)[Symbol.iterator](),Object.entries(a)[Symbol.iterator]()):!1}function cf(n,a){do{let s=n.next(),o=a.next();if(s.done&&o.done)return!0;if(s.done||o.done||!Object.is(s.value,o.value))return!1}while(!0)}function mv(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;let a=Object.getPrototypeOf(n);return a===null||Object.getPrototypeOf(a)===null}var T2=Object.defineProperty,w2=(n,a,s)=>a in n?T2(n,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[a]=s,pv=(n,a,s)=>(w2(n,typeof a!="symbol"?a+"":a,s),s),E2=(n=>(n[n.Push=0]="Push",n[n.Pop=1]="Pop",n))(E2||{});let A2={0(n,a){let s=a.id,o=n.stack,u=n.stack.indexOf(s);if(u!==-1){let d=n.stack.slice();return d.splice(u,1),d.push(s),o=d,{...n,stack:o}}return{...n,stack:[...n.stack,s]}},1(n,a){let s=a.id,o=n.stack.indexOf(s);if(o===-1)return n;let u=n.stack.slice();return u.splice(o,1),{...n,stack:u}}},j2=class Sy extends S2{constructor(){super(...arguments),pv(this,"actions",{push:a=>this.send({type:0,id:a}),pop:a=>this.send({type:1,id:a})}),pv(this,"selectors",{isTop:(a,s)=>a.stack[a.stack.length-1]===s,inStack:(a,s)=>a.stack.includes(s)})}static new(){return new Sy({stack:[]})}reduce(a,s){return kn(s.type,A2,a,s)}};const Ty=new yy(()=>j2.new());var ff={exports:{}},df={};/**
|
|
53
|
-
* @license React
|
|
54
|
-
* use-sync-external-store-with-selector.production.js
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/var gv;function N2(){if(gv)return df;gv=1;var n=Sr();function a(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var s=typeof Object.is=="function"?Object.is:a,o=n.useSyncExternalStore,u=n.useRef,d=n.useEffect,f=n.useMemo,h=n.useDebugValue;return df.useSyncExternalStoreWithSelector=function(m,g,y,b,S){var T=u(null);if(T.current===null){var A={hasValue:!1,value:null};T.current=A}else A=T.current;T=f(function(){function C(X){if(!N){if(N=!0,V=X,X=b(X),S!==void 0&&A.hasValue){var tt=A.value;if(S(tt,X))return _=tt}return _=X}if(tt=_,s(V,X))return tt;var F=b(X);return S!==void 0&&S(tt,F)?(V=X,tt):(V=X,_=F)}var N=!1,V,_,H=y===void 0?null:y;return[function(){return C(g())},H===null?void 0:function(){return C(H())}]},[g,y,b,S]);var E=o(m,T[0],T[1]);return d(function(){A.hasValue=!0,A.value=E},[E]),h(E),E},df}var vv;function C2(){return vv||(vv=1,ff.exports=N2()),ff.exports}var M2=C2();function wy(n,a,s=xy){return M2.useSyncExternalStoreWithSelector(jt(o=>n.subscribe(D2,o)),jt(()=>n.state),jt(()=>n.state),jt(a),s)}function D2(n){return n}function ys(n,a){let s=w.useId(),o=Ty.get(a),[u,d]=wy(o,w.useCallback(f=>[o.selectors.isTop(f,s),o.selectors.inStack(f,s)],[o,s]));return Ee(()=>{if(n)return o.actions.push(s),()=>o.actions.pop(s)},[o,n,s]),n?d?u:!0:!1}let Yf=new Map,is=new Map;function yv(n){var a;let s=(a=is.get(n))!=null?a:0;return is.set(n,s+1),s!==0?()=>bv(n):(Yf.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>bv(n))}function bv(n){var a;let s=(a=is.get(n))!=null?a:1;if(s===1?is.delete(n):is.set(n,s-1),s!==1)return;let o=Yf.get(n);o&&(o["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",o["aria-hidden"]),n.inert=o.inert,Yf.delete(n))}function z2(n,{allowed:a,disallowed:s}={}){let o=ys(n,"inert-others");Ee(()=>{var u,d;if(!o)return;let f=Un();for(let m of(u=s==null?void 0:s())!=null?u:[])m&&f.add(yv(m));let h=(d=a==null?void 0:a())!=null?d:[];for(let m of h){if(!m)continue;let g=Ji(m);if(!g)continue;let y=m.parentElement;for(;y&&y!==g.body;){for(let b of y.children)h.some(S=>b.contains(S))||f.add(yv(b));y=y.parentElement}}return f.dispose},[o,a,s])}function O2(n,a,s){let o=ti(u=>{let d=u.getBoundingClientRect();d.x===0&&d.y===0&&d.width===0&&d.height===0&&s()});w.useEffect(()=>{if(!n)return;let u=a===null?null:Ia(a)?a:a.current;if(!u)return;let d=Un();if(typeof ResizeObserver<"u"){let f=new ResizeObserver(()=>o.current(u));f.observe(u),d.add(()=>f.disconnect())}if(typeof IntersectionObserver<"u"){let f=new IntersectionObserver(()=>o.current(u));f.observe(u),d.add(()=>f.disconnect())}return()=>d.dispose()},[a,o,n])}let cr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),R2=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Vn=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(Vn||{}),qf=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(qf||{}),L2=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(L2||{});function V2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(cr)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}function _2(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(R2)).sort((a,s)=>Math.sign((a.tabIndex||Number.MAX_SAFE_INTEGER)-(s.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ey=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Ey||{});function k2(n,a=0){var s;return n===((s=Ji(n))==null?void 0:s.body)?!1:kn(a,{0(){return n.matches(cr)},1(){let o=n;for(;o!==null;){if(o.matches(cr))return!0;o=o.parentElement}return!1}})}var U2=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(U2||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function _n(n){n==null||n.focus({preventScroll:!0})}let B2=["textarea","input"].join(",");function H2(n){var a,s;return(s=(a=n==null?void 0:n.matches)==null?void 0:a.call(n,B2))!=null?s:!1}function $2(n,a=s=>s){return n.slice().sort((s,o)=>{let u=a(s),d=a(o);if(u===null||d===null)return 0;let f=u.compareDocumentPosition(d);return f&Node.DOCUMENT_POSITION_FOLLOWING?-1:f&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ls(n,a,{sorted:s=!0,relativeTo:o=null,skipElements:u=[]}={}){let d=Array.isArray(n)?n.length>0?Hf(n[0]):document:Hf(n),f=Array.isArray(n)?s?$2(n):n:a&64?_2(n):V2(n);u.length>0&&f.length>1&&(f=f.filter(T=>!u.some(A=>A!=null&&"current"in A?(A==null?void 0:A.current)===T:A===T))),o=o??(d==null?void 0:d.activeElement);let h=(()=>{if(a&5)return 1;if(a&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=(()=>{if(a&1)return 0;if(a&2)return Math.max(0,f.indexOf(o))-1;if(a&4)return Math.max(0,f.indexOf(o))+1;if(a&8)return f.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),g=a&32?{preventScroll:!0}:{},y=0,b=f.length,S;do{if(y>=b||y+b<=0)return 0;let T=m+y;if(a&16)T=(T+b)%b;else{if(T<0)return 3;if(T>=b)return 1}S=f[T],S==null||S.focus(g),y+=h}while(S!==uy(S));return a&6&&H2(S)&&S.select(),2}function Ay(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G2(){return/Android/gi.test(window.navigator.userAgent)}function xv(){return Ay()||G2()}function Xo(n,a,s,o){let u=ti(s);w.useEffect(()=>{if(!n)return;function d(f){u.current(f)}return document.addEventListener(a,d,o),()=>document.removeEventListener(a,d,o)},[n,a,o])}function jy(n,a,s,o){let u=ti(s);w.useEffect(()=>{if(!n)return;function d(f){u.current(f)}return window.addEventListener(a,d,o),()=>window.removeEventListener(a,d,o)},[n,a,o])}const Sv=30;function Y2(n,a,s){let o=ti(s),u=w.useCallback(function(h,m){if(h.defaultPrevented)return;let g=m(h);if(g===null||!g.getRootNode().contains(g)||!g.isConnected)return;let y=(function b(S){return typeof S=="function"?b(S()):Array.isArray(S)||S instanceof Set?S:[S]})(a);for(let b of y)if(b!==null&&(b.contains(g)||h.composed&&h.composedPath().includes(b)))return;return!k2(g,Ey.Loose)&&g.tabIndex!==-1&&h.preventDefault(),o.current(h,g)},[o,a]),d=w.useRef(null);Xo(n,"pointerdown",h=>{var m,g;xv()||(d.current=((g=(m=h.composedPath)==null?void 0:m.call(h))==null?void 0:g[0])||h.target)},!0),Xo(n,"pointerup",h=>{if(xv()||!d.current)return;let m=d.current;return d.current=null,u(h,()=>m)},!0);let f=w.useRef({x:0,y:0});Xo(n,"touchstart",h=>{f.current.x=h.touches[0].clientX,f.current.y=h.touches[0].clientY},!0),Xo(n,"touchend",h=>{let m={x:h.changedTouches[0].clientX,y:h.changedTouches[0].clientY};if(!(Math.abs(m.x-f.current.x)>=Sv||Math.abs(m.y-f.current.y)>=Sv))return u(h,()=>ma(h.target)?h.target:null)},!0),jy(n,"blur",h=>u(h,()=>o2(window.document.activeElement)?window.document.activeElement:null),!0)}function Sd(...n){return w.useMemo(()=>Ji(...n),[...n])}function Ny(n,a,s,o){let u=ti(s);w.useEffect(()=>{n=n??window;function d(f){u.current(f)}return n.addEventListener(a,d,o),()=>n.removeEventListener(a,d,o)},[n,a,o])}function q2(n){return w.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}function X2(n,a){let s=n(),o=new Set;return{getSnapshot(){return s},subscribe(u){return o.add(u),()=>o.delete(u)},dispatch(u,...d){let f=a[u].call(s,...d);f&&(s=f,o.forEach(h=>h()))}}}function K2(){let n;return{before({doc:a}){var s;let o=a.documentElement,u=(s=a.defaultView)!=null?s:window;n=Math.max(0,u.innerWidth-o.clientWidth)},after({doc:a,d:s}){let o=a.documentElement,u=Math.max(0,o.clientWidth-o.offsetWidth),d=Math.max(0,n-u);s.style(o,"paddingRight",`${d}px`)}}}function F2(){return Ay()?{before({doc:n,d:a,meta:s}){function o(u){for(let d of s().containers)for(let f of d())if(f.contains(u))return!0;return!1}a.microTask(()=>{var u;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let h=Un();h.style(n.documentElement,"scrollBehavior","auto"),a.add(()=>a.microTask(()=>h.dispose()))}let d=(u=window.scrollY)!=null?u:window.pageYOffset,f=null;a.addEventListener(n,"click",h=>{if(ma(h.target))try{let m=h.target.closest("a");if(!m)return;let{hash:g}=new URL(m.href),y=n.querySelector(g);ma(y)&&!o(y)&&(f=y)}catch{}},!0),a.group(h=>{a.addEventListener(n,"touchstart",m=>{if(h.dispose(),ma(m.target)&&s2(m.target))if(o(m.target)){let g=m.target;for(;g.parentElement&&o(g.parentElement);)g=g.parentElement;h.style(g,"overscrollBehavior","contain")}else h.style(m.target,"touchAction","none")})}),a.addEventListener(n,"touchmove",h=>{if(ma(h.target)){if(r2(h.target))return;if(o(h.target)){let m=h.target;for(;m.parentElement&&m.dataset.headlessuiPortal!==""&&!(m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth);)m=m.parentElement;m.dataset.headlessuiPortal===""&&h.preventDefault()}else h.preventDefault()}},{passive:!1}),a.add(()=>{var h;let m=(h=window.scrollY)!=null?h:window.pageYOffset;d!==m&&window.scrollTo(0,d),f&&f.isConnected&&(f.scrollIntoView({block:"nearest"}),f=null)})})}}:{}}function Z2(){return{before({doc:n,d:a}){a.style(n.documentElement,"overflow","hidden")}}}function Tv(n){let a={};for(let s of n)Object.assign(a,s(a));return a}let Fa=X2(()=>new Map,{PUSH(n,a){var s;let o=(s=this.get(n))!=null?s:{doc:n,count:0,d:Un(),meta:new Set,computedMeta:{}};return o.count++,o.meta.add(a),o.computedMeta=Tv(o.meta),this.set(n,o),this},POP(n,a){let s=this.get(n);return s&&(s.count--,s.meta.delete(a),s.computedMeta=Tv(s.meta)),this},SCROLL_PREVENT(n){let a={doc:n.doc,d:n.d,meta(){return n.computedMeta}},s=[F2(),K2(),Z2()];s.forEach(({before:o})=>o==null?void 0:o(a)),s.forEach(({after:o})=>o==null?void 0:o(a))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});Fa.subscribe(()=>{let n=Fa.getSnapshot(),a=new Map;for(let[s]of n)a.set(s,s.documentElement.style.overflow);for(let s of n.values()){let o=a.get(s.doc)==="hidden",u=s.count!==0;(u&&!o||!u&&o)&&Fa.dispatch(s.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",s),s.count===0&&Fa.dispatch("TEARDOWN",s)}});function Q2(n,a,s=()=>({containers:[]})){let o=q2(Fa),u=a?o.get(a):void 0,d=u?u.count>0:!1;return Ee(()=>{if(!(!a||!n))return Fa.dispatch("PUSH",a,s),()=>Fa.dispatch("POP",a,s)},[n,a]),d}function P2(n,a,s=()=>[document.body]){let o=ys(n,"scroll-lock");Q2(o,a,u=>{var d;return{containers:[...(d=u.containers)!=null?d:[],s]}})}function J2(n=0){let[a,s]=w.useState(n),o=w.useCallback(m=>s(m),[]),u=w.useCallback(m=>s(g=>g|m),[]),d=w.useCallback(m=>(a&m)===m,[a]),f=w.useCallback(m=>s(g=>g&~m),[]),h=w.useCallback(m=>s(g=>g^m),[]);return{flags:a,setFlag:o,addFlag:u,hasFlag:d,removeFlag:f,toggleFlag:h}}var W2={},wv,Ev;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((wv=process==null?void 0:W2)==null?void 0:wv.NODE_ENV)==="test"&&typeof((Ev=Element==null?void 0:Element.prototype)==null?void 0:Ev.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
61
|
-
`)),[]});var I2=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(I2||{});function tw(n){let a={};for(let s in n)n[s]===!0&&(a[`data-${s}`]="");return a}function ew(n,a,s,o){let[u,d]=w.useState(s),{hasFlag:f,addFlag:h,removeFlag:m}=J2(n&&u?3:0),g=w.useRef(!1),y=w.useRef(!1),b=gs();return Ee(()=>{var S;if(n){if(s&&d(!0),!a){s&&h(3);return}return(S=o==null?void 0:o.start)==null||S.call(o,s),nw(a,{inFlight:g,prepare(){y.current?y.current=!1:y.current=g.current,g.current=!0,!y.current&&(s?(h(3),m(4)):(h(4),m(2)))},run(){y.current?s?(m(3),h(4)):(m(4),h(3)):s?m(1):h(1)},done(){var T;y.current&&lw(a)||(g.current=!1,m(7),s||d(!1),(T=o==null?void 0:o.end)==null||T.call(o,s))}})}},[n,s,a,b]),n?[u,{closed:f(1),enter:f(2),leave:f(4),transition:f(2)||f(4)}]:[s,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function nw(n,{prepare:a,run:s,done:o,inFlight:u}){let d=Un();return iw(n,{prepare:a,inFlight:u}),d.nextFrame(()=>{s(),d.requestAnimationFrame(()=>{d.add(aw(n,o))})}),d.dispose}function aw(n,a){var s,o;let u=Un();if(!n)return u.dispose;let d=!1;u.add(()=>{d=!0});let f=(o=(s=n.getAnimations)==null?void 0:s.call(n).filter(h=>h instanceof CSSTransition))!=null?o:[];return f.length===0?(a(),u.dispose):(Promise.allSettled(f.map(h=>h.finished)).then(()=>{d||a()}),u.dispose)}function iw(n,{inFlight:a,prepare:s}){if(a!=null&&a.current){s();return}let o=n.style.transition;n.style.transition="none",s(),n.offsetHeight,n.style.transition=o}function lw(n){var a,s;return((s=(a=n.getAnimations)==null?void 0:a.call(n))!=null?s:[]).some(o=>o instanceof CSSTransition&&o.playState!=="finished")}function Td(n,a){let s=w.useRef([]),o=jt(n);w.useEffect(()=>{let u=[...s.current];for(let[d,f]of a.entries())if(s.current[d]!==f){let h=o(a,u);return s.current=a,h}},[o,...a])}let Er=w.createContext(null);Er.displayName="OpenClosedContext";var an=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(an||{});function Ar(){return w.useContext(Er)}function sw({value:n,children:a}){return st.createElement(Er.Provider,{value:n},a)}function ow({children:n}){return st.createElement(Er.Provider,{value:null},n)}function rw(n){function a(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",a))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",a),a())}let da=[];rw(()=>{function n(a){if(!ma(a.target)||a.target===document.body||da[0]===a.target)return;let s=a.target;s=s.closest(cr),da.unshift(s??a.target),da=da.filter(o=>o!=null&&o.isConnected),da.splice(10)}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function Cy(n){let a=jt(n),s=w.useRef(!1);w.useEffect(()=>(s.current=!1,()=>{s.current=!0,wr(()=>{s.current&&a()})}),[a])}let My=w.createContext(!1);function uw(){return w.useContext(My)}function Av(n){return st.createElement(My.Provider,{value:n.force},n.children)}function cw(n){let a=uw(),s=w.useContext(zy),[o,u]=w.useState(()=>{var d;if(!a&&s!==null)return(d=s.current)!=null?d:null;if(hn.isServer)return null;let f=n==null?void 0:n.getElementById("headlessui-portal-root");if(f)return f;if(n===null)return null;let h=n.createElement("div");return h.setAttribute("id","headlessui-portal-root"),n.body.appendChild(h)});return w.useEffect(()=>{o!==null&&(n!=null&&n.body.contains(o)||n==null||n.body.appendChild(o))},[o,n]),w.useEffect(()=>{a||s!==null&&u(s.current)},[s,u,a]),o}let Dy=w.Fragment,fw=fe(function(n,a){let{ownerDocument:s=null,...o}=n,u=w.useRef(null),d=gn(u2(S=>{u.current=S}),a),f=Sd(u.current),h=s??f,m=cw(h),g=w.useContext(Xf),y=gs(),b=Ae();return Cy(()=>{var S;m&&m.childNodes.length<=0&&((S=m.parentElement)==null||S.removeChild(m))}),m?DT.createPortal(st.createElement("div",{"data-headlessui-portal":"",ref:S=>{y.dispose(),g&&S&&y.add(g.register(S))}},b({ourProps:{ref:d},theirProps:o,slot:{},defaultTag:Dy,name:"Portal"})),m):null});function dw(n,a){let s=gn(a),{enabled:o=!0,ownerDocument:u,...d}=n,f=Ae();return o?st.createElement(fw,{...d,ownerDocument:u,ref:s}):f({ourProps:{ref:s},theirProps:d,slot:{},defaultTag:Dy,name:"Portal"})}let hw=w.Fragment,zy=w.createContext(null);function mw(n,a){let{target:s,...o}=n,u={ref:gn(a)},d=Ae();return st.createElement(zy.Provider,{value:s},d({ourProps:u,theirProps:o,defaultTag:hw,name:"Popover.Group"}))}let Xf=w.createContext(null);function pw(){let n=w.useContext(Xf),a=w.useRef([]),s=jt(d=>(a.current.push(d),n&&n.register(d),()=>o(d))),o=jt(d=>{let f=a.current.indexOf(d);f!==-1&&a.current.splice(f,1),n&&n.unregister(d)}),u=w.useMemo(()=>({register:s,unregister:o,portals:a}),[s,o,a]);return[a,w.useMemo(()=>function({children:d}){return st.createElement(Xf.Provider,{value:u},d)},[u])]}let gw=fe(dw),Oy=fe(mw),vw=Object.assign(gw,{Group:Oy}),yw=w.Fragment;function bw(n,a){let{...s}=n,o=!1,{isFocusVisible:u,focusProps:d}=ry(),{isHovered:f,hoverProps:h}=oy({isDisabled:o}),{pressed:m,pressProps:g}=cy({disabled:o}),y=bd({ref:a},d,h,g),b=ei({hover:f,focus:u,active:m});return Ae()({ourProps:y,theirProps:s,slot:b,defaultTag:yw,name:"DataInteractive"})}let xw=fe(bw);function Sw(n,a=typeof document<"u"?document.defaultView:null,s){let o=ys(n,"escape");Ny(a,"keydown",u=>{o&&(u.defaultPrevented||u.key===py.Escape&&s(u))})}function Tw(){var n;let[a]=w.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[s,o]=w.useState((n=a==null?void 0:a.matches)!=null?n:!1);return Ee(()=>{if(!a)return;function u(d){o(d.matches)}return a.addEventListener("change",u),()=>a.removeEventListener("change",u)},[a]),s}function ww({defaultContainers:n=[],portals:a,mainTreeNode:s}={}){let o=jt(()=>{var u,d;let f=Ji(s),h=[];for(let m of n)m!==null&&(ga(m)?h.push(m):"current"in m&&ga(m.current)&&h.push(m.current));if(a!=null&&a.current)for(let m of a.current)h.push(m);for(let m of(u=f==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?u:[])m!==document.body&&m!==document.head&&ga(m)&&m.id!=="headlessui-portal-root"&&(s&&(m.contains(s)||m.contains((d=s==null?void 0:s.getRootNode())==null?void 0:d.host))||h.some(g=>m.contains(g))||h.push(m));return h});return{resolveContainers:o,contains:jt(u=>o().some(d=>d.contains(u)))}}let Ry=w.createContext(null);function jv({children:n,node:a}){let[s,o]=w.useState(null),u=Ly(a??s);return st.createElement(Ry.Provider,{value:u},n,u===null&&st.createElement(Gf,{features:ur.Hidden,ref:d=>{var f,h;if(d){for(let m of(h=(f=Ji(d))==null?void 0:f.querySelectorAll("html > *, body > *"))!=null?h:[])if(m!==document.body&&m!==document.head&&ga(m)&&m!=null&&m.contains(d)){o(m);break}}}}))}function Ly(n=null){var a;return(a=w.useContext(Ry))!=null?a:n}function Ew(){let n=typeof document>"u";return"useSyncExternalStore"in lv?(a=>a.useSyncExternalStore)(lv)(()=>()=>{},()=>!1,()=>!n):!1}function jr(){let n=Ew(),[a,s]=w.useState(hn.isHandoffComplete);return a&&hn.isHandoffComplete===!1&&s(!1),w.useEffect(()=>{a!==!0&&s(!0)},[a]),w.useEffect(()=>hn.handoff(),[]),n?!1:a}function wd(){let n=w.useRef(!1);return Ee(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var ts=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(ts||{});function Aw(){let n=w.useRef(0);return jy(!0,"keydown",a=>{a.key==="Tab"&&(n.current=a.shiftKey?1:0)},!0),n}function Vy(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let a=new Set;for(let s of n.current)ga(s.current)&&a.add(s.current);return a}let jw="div";var qa=(n=>(n[n.None=0]="None",n[n.InitialFocus=1]="InitialFocus",n[n.TabLock=2]="TabLock",n[n.FocusLock=4]="FocusLock",n[n.RestoreFocus=8]="RestoreFocus",n[n.AutoFocus=16]="AutoFocus",n))(qa||{});function Nw(n,a){let s=w.useRef(null),o=gn(s,a),{initialFocus:u,initialFocusFallback:d,containers:f,features:h=15,...m}=n;jr()||(h=0);let g=Sd(s.current);zw(h,{ownerDocument:g});let y=Ow(h,{ownerDocument:g,container:s,initialFocus:u,initialFocusFallback:d});Rw(h,{ownerDocument:g,container:s,containers:f,previousActiveElement:y});let b=Aw(),S=jt(V=>{if(!Ia(s.current))return;let _=s.current;(H=>H())(()=>{kn(b.current,{[ts.Forwards]:()=>{ls(_,Vn.First,{skipElements:[V.relatedTarget,d]})},[ts.Backwards]:()=>{ls(_,Vn.Last,{skipElements:[V.relatedTarget,d]})}})})}),T=ys(!!(h&2),"focus-trap#tab-lock"),A=gs(),E=w.useRef(!1),C={ref:o,onKeyDown(V){V.key=="Tab"&&(E.current=!0,A.requestAnimationFrame(()=>{E.current=!1}))},onBlur(V){if(!(h&4))return;let _=Vy(f);Ia(s.current)&&_.add(s.current);let H=V.relatedTarget;ma(H)&&H.dataset.headlessuiFocusGuard!=="true"&&(_y(_,H)||(E.current?ls(s.current,kn(b.current,{[ts.Forwards]:()=>Vn.Next,[ts.Backwards]:()=>Vn.Previous})|Vn.WrapAround,{relativeTo:V.target}):ma(V.target)&&_n(V.target)))}},N=Ae();return st.createElement(st.Fragment,null,T&&st.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}),N({ourProps:C,theirProps:m,defaultTag:jw,name:"FocusTrap"}),T&&st.createElement(Gf,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:S,features:ur.Focusable}))}let Cw=fe(Nw),Mw=Object.assign(Cw,{features:qa});function Dw(n=!0){let a=w.useRef(da.slice());return Td(([s],[o])=>{o===!0&&s===!1&&wr(()=>{a.current.splice(0)}),o===!1&&s===!0&&(a.current=da.slice())},[n,da,a]),jt(()=>{var s;return(s=a.current.find(o=>o!=null&&o.isConnected))!=null?s:null})}function zw(n,{ownerDocument:a}){let s=!!(n&8),o=Dw(s);Td(()=>{s||KT(a==null?void 0:a.body)&&_n(o())},[s]),Cy(()=>{s&&_n(o())})}function Ow(n,{ownerDocument:a,container:s,initialFocus:o,initialFocusFallback:u}){let d=w.useRef(null),f=ys(!!(n&1),"focus-trap#initial-focus"),h=wd();return Td(()=>{if(n===0)return;if(!f){u!=null&&u.current&&_n(u.current);return}let m=s.current;m&&wr(()=>{if(!h.current)return;let g=a==null?void 0:a.activeElement;if(o!=null&&o.current){if((o==null?void 0:o.current)===g){d.current=g;return}}else if(m.contains(g)){d.current=g;return}if(o!=null&&o.current)_n(o.current);else{if(n&16){if(ls(m,Vn.First|Vn.AutoFocus)!==qf.Error)return}else if(ls(m,Vn.First)!==qf.Error)return;if(u!=null&&u.current&&(_n(u.current),(a==null?void 0:a.activeElement)===u.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}d.current=a==null?void 0:a.activeElement})},[u,f,n]),d}function Rw(n,{ownerDocument:a,container:s,containers:o,previousActiveElement:u}){let d=wd(),f=!!(n&4);Ny(a==null?void 0:a.defaultView,"focus",h=>{if(!f||!d.current)return;let m=Vy(o);Ia(s.current)&&m.add(s.current);let g=u.current;if(!g)return;let y=h.target;Ia(y)?_y(m,y)?(u.current=y,_n(y)):(h.preventDefault(),h.stopPropagation(),_n(g)):_n(u.current)},!0)}function _y(n,a){for(let s of n)if(s.contains(a))return!0;return!1}function ky(n){var a;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||!as((a=n.as)!=null?a:By)||st.Children.count(n.children)===1}let Nr=w.createContext(null);Nr.displayName="TransitionContext";var Lw=(n=>(n.Visible="visible",n.Hidden="hidden",n))(Lw||{});function Vw(){let n=w.useContext(Nr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function _w(){let n=w.useContext(Cr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let Cr=w.createContext(null);Cr.displayName="NestingContext";function Mr(n){return"children"in n?Mr(n.children):n.current.filter(({el:a})=>a.current!==null).filter(({state:a})=>a==="visible").length>0}function Uy(n,a){let s=ti(n),o=w.useRef([]),u=wd(),d=gs(),f=jt((T,A=ha.Hidden)=>{let E=o.current.findIndex(({el:C})=>C===T);E!==-1&&(kn(A,{[ha.Unmount](){o.current.splice(E,1)},[ha.Hidden](){o.current[E].state="hidden"}}),d.microTask(()=>{var C;!Mr(o)&&u.current&&((C=s.current)==null||C.call(s))}))}),h=jt(T=>{let A=o.current.find(({el:E})=>E===T);return A?A.state!=="visible"&&(A.state="visible"):o.current.push({el:T,state:"visible"}),()=>f(T,ha.Unmount)}),m=w.useRef([]),g=w.useRef(Promise.resolve()),y=w.useRef({enter:[],leave:[]}),b=jt((T,A,E)=>{m.current.splice(0),a&&(a.chains.current[A]=a.chains.current[A].filter(([C])=>C!==T)),a==null||a.chains.current[A].push([T,new Promise(C=>{m.current.push(C)})]),a==null||a.chains.current[A].push([T,new Promise(C=>{Promise.all(y.current[A].map(([N,V])=>V)).then(()=>C())})]),A==="enter"?g.current=g.current.then(()=>a==null?void 0:a.wait.current).then(()=>E(A)):E(A)}),S=jt((T,A,E)=>{Promise.all(y.current[A].splice(0).map(([C,N])=>N)).then(()=>{var C;(C=m.current.shift())==null||C()}).then(()=>E(A))});return w.useMemo(()=>({children:o,register:h,unregister:f,onStart:b,onStop:S,wait:g,chains:y}),[h,f,o,b,S,y,g])}let By=w.Fragment,Hy=rr.RenderStrategy;function kw(n,a){var s,o;let{transition:u=!0,beforeEnter:d,afterEnter:f,beforeLeave:h,afterLeave:m,enter:g,enterFrom:y,enterTo:b,entered:S,leave:T,leaveFrom:A,leaveTo:E,...C}=n,[N,V]=w.useState(null),_=w.useRef(null),H=ky(n),X=gn(...H?[_,a,V]:a===null?[]:[a]),tt=(s=C.unmount)==null||s?ha.Unmount:ha.Hidden,{show:F,appear:nt,initial:xt}=Vw(),[P,ft]=w.useState(F?"visible":"hidden"),vt=_w(),{register:Ot,unregister:Nt}=vt;Ee(()=>Ot(_),[Ot,_]),Ee(()=>{if(tt===ha.Hidden&&_.current){if(F&&P!=="visible"){ft("visible");return}return kn(P,{hidden:()=>Nt(_),visible:()=>Ot(_)})}},[P,_,Ot,Nt,F,tt]);let Rt=jr();Ee(()=>{if(H&&Rt&&P==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,P,Rt,H]);let U=xt&&!nt,K=nt&&F&&xt,Z=w.useRef(!1),it=Uy(()=>{Z.current||(ft("hidden"),Nt(_))},vt),ct=jt(bt=>{Z.current=!0;let Ft=bt?"enter":"leave";it.onStart(_,Ft,Lt=>{Lt==="enter"?d==null||d():Lt==="leave"&&(h==null||h())})}),M=jt(bt=>{let Ft=bt?"enter":"leave";Z.current=!1,it.onStop(_,Ft,Lt=>{Lt==="enter"?f==null||f():Lt==="leave"&&(m==null||m())}),Ft==="leave"&&!Mr(it)&&(ft("hidden"),Nt(_))});w.useEffect(()=>{H&&u||(ct(F),M(F))},[F,H,u]);let G=!(!u||!H||!Rt||U),[,q]=ew(G,N,F,{start:ct,end:M}),Q=Ga({ref:X,className:((o=$f(C.className,K&&g,K&&y,q.enter&&g,q.enter&&q.closed&&y,q.enter&&!q.closed&&b,q.leave&&T,q.leave&&!q.closed&&A,q.leave&&q.closed&&E,!q.transition&&F&&S))==null?void 0:o.trim())||void 0,...tw(q)}),lt=0;P==="visible"&&(lt|=an.Open),P==="hidden"&&(lt|=an.Closed),F&&P==="hidden"&&(lt|=an.Opening),!F&&P==="visible"&&(lt|=an.Closing);let dt=Ae();return st.createElement(Cr.Provider,{value:it},st.createElement(sw,{value:lt},dt({ourProps:Q,theirProps:C,defaultTag:By,features:Hy,visible:P==="visible",name:"Transition.Child"})))}function Uw(n,a){let{show:s,appear:o=!1,unmount:u=!0,...d}=n,f=w.useRef(null),h=ky(n),m=gn(...h?[f,a]:a===null?[]:[a]);jr();let g=Ar();if(s===void 0&&g!==null&&(s=(g&an.Open)===an.Open),s===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,b]=w.useState(s?"visible":"hidden"),S=Uy(()=>{s||b("hidden")}),[T,A]=w.useState(!0),E=w.useRef([s]);Ee(()=>{T!==!1&&E.current[E.current.length-1]!==s&&(E.current.push(s),A(!1))},[E,s]);let C=w.useMemo(()=>({show:s,appear:o,initial:T}),[s,o,T]);Ee(()=>{s?b("visible"):!Mr(S)&&f.current!==null&&b("hidden")},[s,S]);let N={unmount:u},V=jt(()=>{var X;T&&A(!1),(X=n.beforeEnter)==null||X.call(n)}),_=jt(()=>{var X;T&&A(!1),(X=n.beforeLeave)==null||X.call(n)}),H=Ae();return st.createElement(Cr.Provider,{value:S},st.createElement(Nr.Provider,{value:C},H({ourProps:{...N,as:w.Fragment,children:st.createElement($y,{ref:m,...N,...d,beforeEnter:V,beforeLeave:_})},theirProps:{},defaultTag:w.Fragment,features:Hy,visible:y==="visible",name:"Transition"})))}function Bw(n,a){let s=w.useContext(Nr)!==null,o=Ar()!==null;return st.createElement(st.Fragment,null,!s&&o?st.createElement(Kf,{ref:a,...n}):st.createElement($y,{ref:a,...n}))}let Kf=fe(Uw),$y=fe(kw),Ed=fe(Bw),Hw=Object.assign(Kf,{Child:Ed,Root:Kf});var $w=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))($w||{}),Gw=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(Gw||{});let Yw={0(n,a){return n.titleId===a.id?n:{...n,titleId:a.id}}},Ad=w.createContext(null);Ad.displayName="DialogContext";function Dr(n){let a=w.useContext(Ad);if(a===null){let s=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,Dr),s}return a}function qw(n,a){return kn(a.type,Yw,n,a)}let Nv=fe(function(n,a){let s=w.useId(),{id:o=`headlessui-dialog-${s}`,open:u,onClose:d,initialFocus:f,role:h="dialog",autoFocus:m=!0,__demoMode:g=!1,unmount:y=!1,...b}=n,S=w.useRef(!1);h=(function(){return h==="dialog"||h==="alertdialog"?h:(S.current||(S.current=!0,console.warn(`Invalid role [${h}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let T=Ar();u===void 0&&T!==null&&(u=(T&an.Open)===an.Open);let A=w.useRef(null),E=gn(A,a),C=Sd(A.current),N=u?0:1,[V,_]=w.useReducer(qw,{titleId:null,descriptionId:null,panelRef:w.createRef()}),H=jt(()=>d(!1)),X=jt(q=>_({type:0,id:q})),tt=jr()?N===0:!1,[F,nt]=pw(),xt={get current(){var q;return(q=V.panelRef.current)!=null?q:A.current}},P=Ly(),{resolveContainers:ft}=ww({mainTreeNode:P,portals:F,defaultContainers:[xt]}),vt=T!==null?(T&an.Closing)===an.Closing:!1;z2(g||vt?!1:tt,{allowed:jt(()=>{var q,Q;return[(Q=(q=A.current)==null?void 0:q.closest("[data-headlessui-portal]"))!=null?Q:null]}),disallowed:jt(()=>{var q;return[(q=P==null?void 0:P.closest("body > *:not(#headlessui-portal-root)"))!=null?q:null]})});let Ot=Ty.get(null);Ee(()=>{if(tt)return Ot.actions.push(o),()=>Ot.actions.pop(o)},[Ot,o,tt]);let Nt=wy(Ot,w.useCallback(q=>Ot.selectors.isTop(q,o),[Ot,o]));Y2(Nt,ft,q=>{q.preventDefault(),H()}),Sw(Nt,C==null?void 0:C.defaultView,q=>{q.preventDefault(),q.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),H()}),P2(g||vt?!1:tt,C,ft),O2(tt,A,H);let[Rt,U]=c2(),K=w.useMemo(()=>[{dialogState:N,close:H,setTitleId:X,unmount:y},V],[N,H,X,y,V]),Z=ei({open:N===0}),it={ref:E,id:o,role:h,tabIndex:-1,"aria-modal":g?void 0:N===0?!0:void 0,"aria-labelledby":V.titleId,"aria-describedby":Rt,unmount:y},ct=!Tw(),M=qa.None;tt&&!g&&(M|=qa.RestoreFocus,M|=qa.TabLock,m&&(M|=qa.AutoFocus),ct&&(M|=qa.InitialFocus));let G=Ae();return st.createElement(ow,null,st.createElement(Av,{force:!0},st.createElement(vw,null,st.createElement(Ad.Provider,{value:K},st.createElement(Oy,{target:A},st.createElement(Av,{force:!1},st.createElement(U,{slot:Z},st.createElement(nt,null,st.createElement(Mw,{initialFocus:f,initialFocusFallback:A,containers:ft,features:M},st.createElement(g2,{value:H},G({ourProps:it,theirProps:b,slot:Z,defaultTag:Xw,features:Kw,visible:N===0,name:"Dialog"})))))))))))}),Xw="div",Kw=rr.RenderStrategy|rr.Static;function Fw(n,a){let{transition:s=!1,open:o,...u}=n,d=Ar(),f=n.hasOwnProperty("open")||d!==null,h=n.hasOwnProperty("onClose");if(!f&&!h)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!f)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!h)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!d&&typeof n.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n.open}`);if(typeof n.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${n.onClose}`);return(o!==void 0||s)&&!u.static?st.createElement(jv,null,st.createElement(Hw,{show:o,transition:s,unmount:u.unmount},st.createElement(Nv,{ref:a,...u}))):st.createElement(jv,null,st.createElement(Nv,{ref:a,open:o,...u}))}let Zw="div";function Qw(n,a){let s=w.useId(),{id:o=`headlessui-dialog-panel-${s}`,transition:u=!1,...d}=n,[{dialogState:f,unmount:h},m]=Dr("Dialog.Panel"),g=gn(a,m.panelRef),y=ei({open:f===0}),b=jt(C=>{C.stopPropagation()}),S={ref:g,id:o,onClick:b},T=u?Ed:w.Fragment,A=u?{unmount:h}:{},E=Ae();return st.createElement(T,{...A},E({ourProps:S,theirProps:d,slot:y,defaultTag:Zw,name:"Dialog.Panel"}))}let Pw="div";function Jw(n,a){let{transition:s=!1,...o}=n,[{dialogState:u,unmount:d}]=Dr("Dialog.Backdrop"),f=ei({open:u===0}),h={ref:a,"aria-hidden":!0},m=s?Ed:w.Fragment,g=s?{unmount:d}:{},y=Ae();return st.createElement(m,{...g},y({ourProps:h,theirProps:o,slot:f,defaultTag:Pw,name:"Dialog.Backdrop"}))}let Ww="h2";function Iw(n,a){let s=w.useId(),{id:o=`headlessui-dialog-title-${s}`,...u}=n,[{dialogState:d,setTitleId:f}]=Dr("Dialog.Title"),h=gn(a);w.useEffect(()=>(f(o),()=>f(null)),[o,f]);let m=ei({open:d===0}),g={ref:h,id:o};return Ae()({ourProps:g,theirProps:u,slot:m,defaultTag:Ww,name:"Dialog.Title"})}let tE=fe(Fw),Gy=fe(Qw),eE=fe(Jw),nE=fe(Iw),aE=Object.assign(tE,{Panel:Gy,Title:nE,Description:m2});const fr=w.createContext({});function iE(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const lE=typeof window<"u",Yy=lE?w.useLayoutEffect:w.useEffect,jd=w.createContext(null);function Nd(n,a){n.indexOf(a)===-1&&n.push(a)}function dr(n,a){const s=n.indexOf(a);s>-1&&n.splice(s,1)}const pn=(n,a,s)=>s>a?a:s<n?n:s;let Cd=()=>{};const va={},qy=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function Xy(n){return typeof n=="object"&&n!==null}const Ky=n=>/^0[^.\s]+$/u.test(n);function Fy(n){let a;return()=>(a===void 0&&(a=n()),a)}const Pe=n=>n,sE=(n,a)=>s=>a(n(s)),bs=(...n)=>n.reduce(sE),fs=(n,a,s)=>{const o=a-n;return o===0?1:(s-n)/o};class Md{constructor(){this.subscriptions=[]}add(a){return Nd(this.subscriptions,a),()=>dr(this.subscriptions,a)}notify(a,s,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](a,s,o);else for(let d=0;d<u;d++){const f=this.subscriptions[d];f&&f(a,s,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=n=>n*1e3,Ze=n=>n/1e3;function Zy(n,a){return a?n*(1e3/a):0}const Qy=(n,a,s)=>(((1-3*s+3*a)*n+(3*s-6*a))*n+3*a)*n,oE=1e-7,rE=12;function uE(n,a,s,o,u){let d,f,h=0;do f=a+(s-a)/2,d=Qy(f,o,u)-n,d>0?s=f:a=f;while(Math.abs(d)>oE&&++h<rE);return f}function xs(n,a,s,o){if(n===a&&s===o)return Pe;const u=d=>uE(d,0,1,n,s);return d=>d===0||d===1?d:Qy(u(d),a,o)}const Py=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,Jy=n=>a=>1-n(1-a),Wy=xs(.33,1.53,.69,.99),Dd=Jy(Wy),Iy=Py(Dd),tb=n=>n>=1?1:(n*=2)<1?.5*Dd(n):.5*(2-Math.pow(2,-10*(n-1))),zd=n=>1-Math.sin(Math.acos(n)),eb=Jy(zd),nb=Py(zd),cE=xs(.42,0,1,1),fE=xs(0,0,.58,1),ab=xs(.42,0,.58,1),dE=n=>Array.isArray(n)&&typeof n[0]!="number",ib=n=>Array.isArray(n)&&typeof n[0]=="number",hE={linear:Pe,easeIn:cE,easeInOut:ab,easeOut:fE,circIn:zd,circInOut:nb,circOut:eb,backIn:Dd,backInOut:Iy,backOut:Wy,anticipate:tb},mE=n=>typeof n=="string",Cv=n=>{if(ib(n)){Cd(n.length===4);const[a,s,o,u]=n;return xs(a,s,o,u)}else if(mE(n))return hE[n];return n},Ko=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pE(n,a){let s=new Set,o=new Set,u=!1,d=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){f.has(y)&&(g.schedule(y),n()),y(h)}const g={schedule:(y,b=!1,S=!1)=>{const A=S&&u?s:o;return b&&f.add(y),A.add(y),y},cancel:y=>{o.delete(y),f.delete(y)},process:y=>{if(h=y,u){d=!0;return}u=!0;const b=s;s=o,o=b,s.forEach(m),s.clear(),u=!1,d&&(d=!1,g.process(y))}};return g}const gE=40;function lb(n,a){let s=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=Ko.reduce((_,H)=>(_[H]=pE(d),_),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:y,update:b,preRender:S,render:T,postRender:A}=f,E=()=>{const _=va.useManualTiming,H=_?u.timestamp:performance.now();s=!1,_||(u.delta=o?1e3/60:Math.max(Math.min(H-u.timestamp,gE),1)),u.timestamp=H,u.isProcessing=!0,h.process(u),m.process(u),g.process(u),y.process(u),b.process(u),S.process(u),T.process(u),A.process(u),u.isProcessing=!1,s&&a&&(o=!1,n(E))},C=()=>{s=!0,o=!0,u.isProcessing||n(E)};return{schedule:Ko.reduce((_,H)=>{const X=f[H];return _[H]=(tt,F=!1,nt=!1)=>(s||C(),X.schedule(tt,F,nt)),_},{}),cancel:_=>{for(let H=0;H<Ko.length;H++)f[Ko[H]].cancel(_)},state:u,steps:f}}const{schedule:zt,cancel:ya,state:re,steps:hf}=lb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let Io;function vE(){Io=void 0}const pe={now:()=>(Io===void 0&&pe.set(re.isProcessing||va.useManualTiming?re.timestamp:performance.now()),Io),set:n=>{Io=n,queueMicrotask(vE)}},sb=n=>a=>typeof a=="string"&&a.startsWith(n),ob=sb("--"),yE=sb("var(--"),Od=n=>yE(n)?bE.test(n.split("/*")[0].trim()):!1,bE=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mv(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Wi={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ds={...Wi,transform:n=>pn(0,1,n)},Fo={...Wi,default:1},ss=n=>Math.round(n*1e5)/1e5,Rd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xE(n){return n==null}const SE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ld=(n,a)=>s=>!!(typeof s=="string"&&SE.test(s)&&s.startsWith(n)||a&&!xE(s)&&Object.prototype.hasOwnProperty.call(s,a)),rb=(n,a,s)=>o=>{if(typeof o!="string")return o;const[u,d,f,h]=o.match(Rd);return{[n]:parseFloat(u),[a]:parseFloat(d),[s]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},TE=n=>pn(0,255,n),mf={...Wi,transform:n=>Math.round(TE(n))},Za={test:Ld("rgb","red"),parse:rb("red","green","blue"),transform:({red:n,green:a,blue:s,alpha:o=1})=>"rgba("+mf.transform(n)+", "+mf.transform(a)+", "+mf.transform(s)+", "+ss(ds.transform(o))+")"};function wE(n){let a="",s="",o="",u="";return n.length>5?(a=n.substring(1,3),s=n.substring(3,5),o=n.substring(5,7),u=n.substring(7,9)):(a=n.substring(1,2),s=n.substring(2,3),o=n.substring(3,4),u=n.substring(4,5),a+=a,s+=s,o+=o,u+=u),{red:parseInt(a,16),green:parseInt(s,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const Ff={test:Ld("#"),parse:wE,transform:Za.transform},Ss=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ca=Ss("deg"),mn=Ss("%"),W=Ss("px"),EE=Ss("vh"),AE=Ss("vw"),Dv={...mn,parse:n=>mn.parse(n)/100,transform:n=>mn.transform(n*100)},Gi={test:Ld("hsl","hue"),parse:rb("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:s,alpha:o=1})=>"hsla("+Math.round(n)+", "+mn.transform(ss(a))+", "+mn.transform(ss(s))+", "+ss(ds.transform(o))+")"},Wt={test:n=>Za.test(n)||Ff.test(n)||Gi.test(n),parse:n=>Za.test(n)?Za.parse(n):Gi.test(n)?Gi.parse(n):Ff.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Za.transform(n):Gi.transform(n),getAnimatableNone:n=>{const a=Wt.parse(n);return a.alpha=0,Wt.transform(a)}},jE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function NE(n){var a,s;return isNaN(n)&&typeof n=="string"&&(((a=n.match(Rd))==null?void 0:a.length)||0)+(((s=n.match(jE))==null?void 0:s.length)||0)>0}const ub="number",cb="color",CE="var",ME="var(",zv="${}",DE=/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 Fi(n){const a=n.toString(),s=[],o={color:[],number:[],var:[]},u=[];let d=0;const h=a.replace(DE,m=>(Wt.test(m)?(o.color.push(d),u.push(cb),s.push(Wt.parse(m))):m.startsWith(ME)?(o.var.push(d),u.push(CE),s.push(m)):(o.number.push(d),u.push(ub),s.push(parseFloat(m))),++d,zv)).split(zv);return{values:s,split:h,indexes:o,types:u}}function zE(n){return Fi(n).values}function fb({split:n,types:a}){const s=n.length;return o=>{let u="";for(let d=0;d<s;d++)if(u+=n[d],o[d]!==void 0){const f=a[d];f===ub?u+=ss(o[d]):f===cb?u+=Wt.transform(o[d]):u+=o[d]}return u}}function OE(n){return fb(Fi(n))}const RE=n=>typeof n=="number"?0:Wt.test(n)?Wt.getAnimatableNone(n):n,LE=(n,a)=>typeof n=="number"?a!=null&&a.trim().endsWith("/")?n:0:RE(n);function VE(n){const a=Fi(n);return fb(a)(a.values.map((o,u)=>LE(o,a.split[u])))}const ln={test:NE,parse:zE,createTransformer:OE,getAnimatableNone:VE};function pf(n,a,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(a-n)*6*s:s<1/2?a:s<2/3?n+(a-n)*(2/3-s)*6:n}function _E({hue:n,saturation:a,lightness:s,alpha:o}){n/=360,a/=100,s/=100;let u=0,d=0,f=0;if(!a)u=d=f=s;else{const h=s<.5?s*(1+a):s+a-s*a,m=2*s-h;u=pf(m,h,n+1/3),d=pf(m,h,n),f=pf(m,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function hr(n,a){return s=>s>0?a:n}const Ut=(n,a,s)=>n+(a-n)*s,gf=(n,a,s)=>{const o=n*n,u=s*(a*a-o)+o;return u<0?0:Math.sqrt(u)},kE=[Ff,Za,Gi],UE=n=>kE.find(a=>a.test(n));function Ov(n){const a=UE(n);if(!a)return!1;let s=a.parse(n);return a===Gi&&(s=_E(s)),s}const Rv=(n,a)=>{const s=Ov(n),o=Ov(a);if(!s||!o)return hr(n,a);const u={...s};return d=>(u.red=gf(s.red,o.red,d),u.green=gf(s.green,o.green,d),u.blue=gf(s.blue,o.blue,d),u.alpha=Ut(s.alpha,o.alpha,d),Za.transform(u))},Zf=new Set(["none","hidden"]);function BE(n,a){return Zf.has(n)?s=>s<=0?n:a:s=>s>=1?a:n}function HE(n,a){return s=>Ut(n,a,s)}function Vd(n){return typeof n=="number"?HE:typeof n=="string"?Od(n)?hr:Wt.test(n)?Rv:YE:Array.isArray(n)?db:typeof n=="object"?Wt.test(n)?Rv:$E:hr}function db(n,a){const s=[...n],o=s.length,u=n.map((d,f)=>Vd(d)(d,a[f]));return d=>{for(let f=0;f<o;f++)s[f]=u[f](d);return s}}function $E(n,a){const s={...n,...a},o={};for(const u in s)n[u]!==void 0&&a[u]!==void 0&&(o[u]=Vd(n[u])(n[u],a[u]));return u=>{for(const d in o)s[d]=o[d](u);return s}}function GE(n,a){const s=[],o={color:0,var:0,number:0};for(let u=0;u<a.values.length;u++){const d=a.types[u],f=n.indexes[d][o[d]],h=n.values[f]??0;s[u]=h,o[d]++}return s}const YE=(n,a)=>{const s=ln.createTransformer(a),o=Fi(n),u=Fi(a);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?Zf.has(n)&&!u.values.length||Zf.has(a)&&!o.values.length?BE(n,a):bs(db(GE(o,u),u.values),s):hr(n,a)};function hb(n,a,s){return typeof n=="number"&&typeof a=="number"&&typeof s=="number"?Ut(n,a,s):Vd(n)(n,a)}const qE=n=>{const a=({timestamp:s})=>n(s);return{start:(s=!0)=>zt.update(a,s),stop:()=>ya(a),now:()=>re.isProcessing?re.timestamp:pe.now()}},mb=(n,a,s=10)=>{let o="";const u=Math.max(Math.round(a/s),2);for(let d=0;d<u;d++)o+=Math.round(n(d/(u-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},mr=2e4;function _d(n){let a=0;const s=50;let o=n.next(a);for(;!o.done&&a<mr;)a+=s,o=n.next(a);return a>=mr?1/0:a}function XE(n,a=100,s){const o=s({...n,keyframes:[0,a]}),u=Math.min(_d(o),mr);return{type:"keyframes",ease:d=>o.next(u*d).value/a,duration:Ze(u)}}const Gt={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 Qf(n,a){return n*Math.sqrt(1-a*a)}const KE=12;function FE(n,a,s){let o=s;for(let u=1;u<KE;u++)o=o-n(o)/a(o);return o}const vf=.001;function ZE({duration:n=Gt.duration,bounce:a=Gt.bounce,velocity:s=Gt.velocity,mass:o=Gt.mass}){let u,d,f=1-a;f=pn(Gt.minDamping,Gt.maxDamping,f),n=pn(Gt.minDuration,Gt.maxDuration,Ze(n)),f<1?(u=g=>{const y=g*f,b=y*n,S=y-s,T=Qf(g,f),A=Math.exp(-b);return vf-S/T*A},d=g=>{const b=g*f*n,S=b*s+s,T=Math.pow(f,2)*Math.pow(g,2)*n,A=Math.exp(-b),E=Qf(Math.pow(g,2),f);return(-u(g)+vf>0?-1:1)*((S-T)*A)/E}):(u=g=>{const y=Math.exp(-g*n),b=(g-s)*n+1;return-vf+y*b},d=g=>{const y=Math.exp(-g*n),b=(s-g)*(n*n);return y*b});const h=5/n,m=FE(u,d,h);if(n=_e(n),isNaN(m))return{stiffness:Gt.stiffness,damping:Gt.damping,duration:n};{const g=Math.pow(m,2)*o;return{stiffness:g,damping:f*2*Math.sqrt(o*g),duration:n}}}const QE=["duration","bounce"],PE=["stiffness","damping","mass"];function Lv(n,a){return a.some(s=>n[s]!==void 0)}function JE(n){let a={velocity:Gt.velocity,stiffness:Gt.stiffness,damping:Gt.damping,mass:Gt.mass,isResolvedFromDuration:!1,...n};if(!Lv(n,PE)&&Lv(n,QE))if(a.velocity=0,n.visualDuration){const s=n.visualDuration,o=2*Math.PI/(s*1.2),u=o*o,d=2*pn(.05,1,1-(n.bounce||0))*Math.sqrt(u);a={...a,mass:Gt.mass,stiffness:u,damping:d}}else{const s=ZE({...n,velocity:0});a={...a,...s,mass:Gt.mass},a.isResolvedFromDuration=!0}return a}function pr(n=Gt.visualDuration,a=Gt.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:o,restDelta:u}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],h={done:!1,value:d},{stiffness:m,damping:g,mass:y,duration:b,velocity:S,isResolvedFromDuration:T}=JE({...s,velocity:-Ze(s.velocity||0)}),A=S||0,E=g/(2*Math.sqrt(m*y)),C=f-d,N=Ze(Math.sqrt(m/y)),V=Math.abs(C)<5;o||(o=V?Gt.restSpeed.granular:Gt.restSpeed.default),u||(u=V?Gt.restDelta.granular:Gt.restDelta.default);let _,H,X,tt,F,nt;if(E<1)X=Qf(N,E),tt=(A+E*N*C)/X,_=P=>{const ft=Math.exp(-E*N*P);return f-ft*(tt*Math.sin(X*P)+C*Math.cos(X*P))},F=E*N*tt+C*X,nt=E*N*C-tt*X,H=P=>Math.exp(-E*N*P)*(F*Math.sin(X*P)+nt*Math.cos(X*P));else if(E===1){_=ft=>f-Math.exp(-N*ft)*(C+(A+N*C)*ft);const P=A+N*C;H=ft=>Math.exp(-N*ft)*(N*P*ft-A)}else{const P=N*Math.sqrt(E*E-1);_=Nt=>{const Rt=Math.exp(-E*N*Nt),U=Math.min(P*Nt,300);return f-Rt*((A+E*N*C)*Math.sinh(U)+P*C*Math.cosh(U))/P};const ft=(A+E*N*C)/P,vt=E*N*ft-C*P,Ot=E*N*C-ft*P;H=Nt=>{const Rt=Math.exp(-E*N*Nt),U=Math.min(P*Nt,300);return Rt*(vt*Math.sinh(U)+Ot*Math.cosh(U))}}const xt={calculatedDuration:T&&b||null,velocity:P=>_e(H(P)),next:P=>{if(!T&&E<1){const vt=Math.exp(-E*N*P),Ot=Math.sin(X*P),Nt=Math.cos(X*P),Rt=f-vt*(tt*Ot+C*Nt),U=_e(vt*(F*Ot+nt*Nt));return h.done=Math.abs(U)<=o&&Math.abs(f-Rt)<=u,h.value=h.done?f:Rt,h}const ft=_(P);if(T)h.done=P>=b;else{const vt=_e(H(P));h.done=Math.abs(vt)<=o&&Math.abs(f-ft)<=u}return h.value=h.done?f:ft,h},toString:()=>{const P=Math.min(_d(xt),mr),ft=mb(vt=>xt.next(P*vt).value,P,30);return P+"ms "+ft},toTransition:()=>{}};return xt}pr.applyToOptions=n=>{const a=XE(n,100,pr);return n.ease=a.ease,n.duration=_e(a.duration),n.type="keyframes",n};const WE=5;function pb(n,a,s){const o=Math.max(a-WE,0);return Zy(s-n(o),a-o)}function Pf({keyframes:n,velocity:a=0,power:s=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:f,min:h,max:m,restDelta:g=.5,restSpeed:y}){const b=n[0],S={done:!1,value:b},T=nt=>h!==void 0&&nt<h||m!==void 0&&nt>m,A=nt=>h===void 0?m:m===void 0||Math.abs(h-nt)<Math.abs(m-nt)?h:m;let E=s*a;const C=b+E,N=f===void 0?C:f(C);N!==C&&(E=N-b);const V=nt=>-E*Math.exp(-nt/o),_=nt=>N+V(nt),H=nt=>{const xt=V(nt),P=_(nt);S.done=Math.abs(xt)<=g,S.value=S.done?N:P};let X,tt;const F=nt=>{T(S.value)&&(X=nt,tt=pr({keyframes:[S.value,A(S.value)],velocity:pb(_,nt,S.value),damping:u,stiffness:d,restDelta:g,restSpeed:y}))};return F(0),{calculatedDuration:null,next:nt=>{let xt=!1;return!tt&&X===void 0&&(xt=!0,H(nt),F(nt)),X!==void 0&&nt>=X?tt.next(nt-X):(!xt&&H(nt),S)}}}function IE(n,a,s){const o=[],u=s||va.mix||hb,d=n.length-1;for(let f=0;f<d;f++){let h=u(n[f],n[f+1]);if(a){const m=Array.isArray(a)?a[f]||Pe:a;h=bs(m,h)}o.push(h)}return o}function t5(n,a,{clamp:s=!0,ease:o,mixer:u}={}){const d=n.length;if(Cd(d===a.length),d===1)return()=>a[0];if(d===2&&a[0]===a[1])return()=>a[1];const f=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),a=[...a].reverse());const h=IE(a,o,u),m=h.length,g=y=>{if(f&&y<n[0])return a[0];let b=0;if(m>1)for(;b<n.length-2&&!(y<n[b+1]);b++);const S=fs(n[b],n[b+1],y);return h[b](S)};return s?y=>g(pn(n[0],n[d-1],y)):g}function e5(n,a){const s=n[n.length-1];for(let o=1;o<=a;o++){const u=fs(0,a,o);n.push(Ut(s,1,u))}}function n5(n){const a=[0];return e5(a,n.length-1),a}function a5(n,a){return n.map(s=>s*a)}function i5(n,a){return n.map(()=>a||ab).splice(0,n.length-1)}function os({duration:n=300,keyframes:a,times:s,ease:o="easeInOut"}){const u=dE(o)?o.map(Cv):Cv(o),d={done:!1,value:a[0]},f=a5(s&&s.length===a.length?s:n5(a),n),h=t5(f,a,{ease:Array.isArray(u)?u:i5(a,u)});return{calculatedDuration:n,next:m=>(d.value=h(m),d.done=m>=n,d)}}const l5=n=>n!==null;function zr(n,{repeat:a,repeatType:s="loop"},o,u=1){const d=n.filter(l5),h=u<0||a&&s!=="loop"&&a%2===1?0:d.length-1;return!h||o===void 0?d[h]:o}const s5={decay:Pf,inertia:Pf,tween:os,keyframes:os,spring:pr};function gb(n){typeof n.type=="string"&&(n.type=s5[n.type])}class kd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,s){return this.finished.then(a,s)}}const o5=n=>n/100;class gr extends kd{constructor(a){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 o,u;const{motionValue:s}=this.options;s&&s.updatedAt!==pe.now()&&this.tick(pe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(o=this.options).onStop)==null||u.call(o))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;gb(a);const{type:s=os,repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:f=0}=a;let{keyframes:h}=a;const m=s||os;m!==os&&typeof h[0]!="number"&&(this.mixKeyframes=bs(o5,hb(h[0],h[1])),h=[0,100]);const g=m({...a,keyframes:h});d==="mirror"&&(this.mirroredGenerator=m({...a,keyframes:[...h].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=_d(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+u,this.totalDuration=this.resolvedDuration*(o+1)-u,this.generator=g}updateTime(a){const s=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(a,s=!1){const{generator:o,totalDuration:u,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:S,repeatDelay:T,type:A,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-u/this.speed,this.startTime)),s?this.currentTime=a:this.updateTime(a);const N=this.currentTime-g*(this.playbackSpeed>=0?1:-1),V=this.playbackSpeed>=0?N<0:N>u;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let _=this.currentTime,H=o;if(b){const nt=Math.min(this.currentTime,u)/h;let xt=Math.floor(nt),P=nt%1;!P&&nt>=1&&(P=1),P===1&&xt--,xt=Math.min(xt,b+1),!!(xt%2)&&(S==="reverse"?(P=1-P,T&&(P-=T/h)):S==="mirror"&&(H=f)),_=pn(0,1,P)*h}let X;V?(this.delayState.value=y[0],X=this.delayState):X=H.next(_),d&&!V&&(X.value=d(X.value));let{done:tt}=X;!V&&m!==null&&(tt=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&tt);return F&&A!==Pf&&(X.value=zr(y,this.options,C,this.speed)),E&&E(X.value),F&&this.finish(),X}then(a,s){return this.finished.then(a,s)}get duration(){return Ze(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ze(a)}get time(){return Ze(this.currentTime)}set time(a){a=_e(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const s=this.generator.next(a).value;return pb(o=>this.generator.next(o).value,a,s)}get speed(){return this.playbackSpeed}set speed(a){const s=this.playbackSpeed!==a;s&&this.driver&&this.updateTime(pe.now()),this.playbackSpeed=a,s&&this.driver&&(this.time=Ze(this.currentTime))}play(){var u,d;if(this.isStopped)return;const{driver:a=qE,startTime:s}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(d=(u=this.options).onPlay)==null||d.call(u);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=s??o),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(pe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(a=this.options).onComplete)==null||s.call(a)}cancel(){var a,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(a=this.options).onCancel)==null||s.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),a.observe(this)}}function r5(n){for(let a=1;a<n.length;a++)n[a]??(n[a]=n[a-1])}const Qa=n=>n*180/Math.PI,Jf=n=>{const a=Qa(Math.atan2(n[1],n[0]));return Wf(a)},u5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Jf,rotateZ:Jf,skewX:n=>Qa(Math.atan(n[1])),skewY:n=>Qa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Wf=n=>(n=n%360,n<0&&(n+=360),n),Vv=Jf,_v=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),kv=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),c5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_v,scaleY:kv,scale:n=>(_v(n)+kv(n))/2,rotateX:n=>Wf(Qa(Math.atan2(n[6],n[5]))),rotateY:n=>Wf(Qa(Math.atan2(-n[2],n[0]))),rotateZ:Vv,rotate:Vv,skewX:n=>Qa(Math.atan(n[4])),skewY:n=>Qa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function If(n){return n.includes("scale")?1:0}function td(n,a){if(!n||n==="none")return If(a);const s=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,u;if(s)o=c5,u=s;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=u5,u=h}if(!u)return If(a);const d=o[a],f=u[1].split(",").map(d5);return typeof d=="function"?d(f):f[d]}const f5=(n,a)=>{const{transform:s="none"}=getComputedStyle(n);return td(s,a)};function d5(n){return parseFloat(n.trim())}const Ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tl=new Set(Ii),Uv=n=>n===Wi||n===W,h5=new Set(["x","y","z"]),m5=Ii.filter(n=>!h5.has(n));function p5(n){const a=[];return m5.forEach(s=>{const o=n.getValue(s);o!==void 0&&(a.push([s,o.get()]),o.set(s.startsWith("scale")?1:0))}),a}const pa={width:({x:n},{paddingLeft:a="0",paddingRight:s="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(s)},height:({y:n},{paddingTop:a="0",paddingBottom:s="0",boxSizing:o})=>{const u=n.max-n.min;return o==="border-box"?u:u-parseFloat(a)-parseFloat(s)},top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>td(a,"x"),y:(n,{transform:a})=>td(a,"y")};pa.translateX=pa.x;pa.translateY=pa.y;const Pa=new Set;let ed=!1,nd=!1,ad=!1;function vb(){if(nd){const n=Array.from(Pa).filter(o=>o.needsMeasurement),a=new Set(n.map(o=>o.element)),s=new Map;a.forEach(o=>{const u=p5(o);u.length&&(s.set(o,u),o.render())}),n.forEach(o=>o.measureInitialState()),a.forEach(o=>{o.render();const u=s.get(o);u&&u.forEach(([d,f])=>{var h;(h=o.getValue(d))==null||h.set(f)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}nd=!1,ed=!1,Pa.forEach(n=>n.complete(ad)),Pa.clear()}function yb(){Pa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(nd=!0)})}function g5(){ad=!0,yb(),vb(),ad=!1}class Ud{constructor(a,s,o,u,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=s,this.name=o,this.motionValue=u,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Pa.add(this),ed||(ed=!0,zt.read(yb),zt.resolveKeyframes(vb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:s,element:o,motionValue:u}=this;if(a[0]===null){const d=u==null?void 0:u.get(),f=a[a.length-1];if(d!==void 0)a[0]=d;else if(o&&s){const h=o.readValue(s,f);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=f),u&&d===void 0&&u.set(a[0])}r5(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Pa.delete(this)}cancel(){this.state==="scheduled"&&(Pa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const v5=n=>n.startsWith("--");function bb(n,a,s){v5(a)?n.style.setProperty(a,s):n.style[a]=s}const y5={};function xb(n,a){const s=Fy(n);return()=>y5[a]??s()}const b5=xb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Sb=xb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),es=([n,a,s,o])=>`cubic-bezier(${n}, ${a}, ${s}, ${o})`,Bv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:es([0,.65,.55,1]),circOut:es([.55,0,1,.45]),backIn:es([.31,.01,.66,-.59]),backOut:es([.33,1.53,.69,.99])};function Tb(n,a){if(n)return typeof n=="function"?Sb()?mb(n,a):"ease-out":ib(n)?es(n):Array.isArray(n)?n.map(s=>Tb(s,a)||Bv.easeOut):Bv[n]}function x5(n,a,s,{delay:o=0,duration:u=300,repeat:d=0,repeatType:f="loop",ease:h="easeOut",times:m}={},g=void 0){const y={[a]:s};m&&(y.offset=m);const b=Tb(h,u);Array.isArray(b)&&(y.easing=b);const S={delay:o,duration:u,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),n.animate(y,S)}function wb(n){return typeof n=="function"&&"applyToOptions"in n}function S5({type:n,...a}){return wb(n)&&Sb()?n.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class Eb extends kd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:s,name:o,keyframes:u,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=a;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=a,Cd(typeof a.type!="string");const g=S5(a);this.animation=x5(s,o,u,g,d),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=zr(u,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),bb(s,o,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 a,s;(s=(a=this.animation).finish)==null||s.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var s,o,u;const a=(s=this.options)==null?void 0:s.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((u=(o=this.animation).commitStyles)==null||u.call(o))}get duration(){var s,o;const a=((o=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:o.call(s).duration)||0;return Ze(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ze(a)}get time(){return Ze(Number(this.animation.currentTime)||0)}set time(a){const s=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_e(a),s&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:s,rangeEnd:o,observe:u}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&b5()?(this.animation.timeline=a,s&&(this.animation.rangeStart=s),o&&(this.animation.rangeEnd=o),Pe):u(this)}}const Ab={anticipate:tb,backInOut:Iy,circInOut:nb};function T5(n){return n in Ab}function w5(n){typeof n.ease=="string"&&T5(n.ease)&&(n.ease=Ab[n.ease])}const yf=10;class E5 extends Eb{constructor(a){w5(a),gb(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:s,onUpdate:o,onComplete:u,element:d,...f}=this.options;if(!s)return;if(a!==void 0){s.set(a);return}const h=new gr({...f,autoplay:!1}),m=Math.max(yf,pe.now()-this.startTime),g=pn(0,yf,m-yf),y=h.sample(m).value,{name:b}=this.options;d&&b&&bb(d,b,y),s.setWithVelocity(h.sample(Math.max(0,m-g)).value,y,g),h.stop()}}const Hv=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ln.test(n)||n==="0")&&!n.startsWith("url("));function A5(n){const a=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==a)return!0}function j5(n,a,s,o){const u=n[0];if(u===null)return!1;if(a==="display"||a==="visibility")return!0;const d=n[n.length-1],f=Hv(u,a),h=Hv(d,a);return!f||!h?!1:A5(n)||(s==="spring"||wb(s))&&o}function id(n){n.duration=0,n.type="keyframes"}const jb=new Set(["opacity","clipPath","filter","transform"]),N5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function C5(n){for(let a=0;a<n.length;a++)if(typeof n[a]=="string"&&N5.test(n[a]))return!0;return!1}const M5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),D5=Fy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z5(n){var b;const{motionValue:a,name:s,repeatDelay:o,repeatType:u,damping:d,type:f,keyframes:h}=n;if(!(((b=a==null?void 0:a.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=a.owner.getProps();return D5()&&s&&(jb.has(s)||M5.has(s)&&C5(h))&&(s!=="transform"||!y)&&!g&&!o&&u!=="mirror"&&d!==0&&f!=="inertia"}const O5=40;class R5 extends kd{constructor({autoplay:a=!0,delay:s=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:f="loop",keyframes:h,name:m,motionValue:g,element:y,...b}){var A;super(),this.stop=()=>{var E,C;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(C=this.keyframeResolver)==null||C.cancel()},this.createdAt=pe.now();const S={autoplay:a,delay:s,type:o,repeat:u,repeatDelay:d,repeatType:f,name:m,motionValue:g,element:y,...b},T=(y==null?void 0:y.KeyframeResolver)||Ud;this.keyframeResolver=new T(h,(E,C,N)=>this.onKeyframesResolved(E,C,S,!N),m,g,y),(A=this.keyframeResolver)==null||A.scheduleResolve()}onKeyframesResolved(a,s,o,u){var N,V;this.keyframeResolver=void 0;const{name:d,type:f,velocity:h,delay:m,isHandoff:g,onUpdate:y}=o;this.resolvedAt=pe.now();let b=!0;j5(a,d,f,h)||(b=!1,(va.instantAnimations||!m)&&(y==null||y(zr(a,o,s))),a[0]=a[a.length-1],id(o),o.repeat=0);const T={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>O5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...o,keyframes:a},A=b&&!g&&z5(T),E=(V=(N=T.motionValue)==null?void 0:N.owner)==null?void 0:V.current;let C;if(A)try{C=new E5({...T,element:E})}catch{C=new gr(T)}else C=new gr(T);C.finished.then(()=>{this.notifyFinished()}).catch(Pe),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(a,s){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),g5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function Nb(n,a,s,o=0,u=1){const d=Array.from(n).sort((g,y)=>g.sortNodePosition(y)).indexOf(a),f=n.size,h=(f-1)*o;return typeof s=="function"?s(d,f):u===1?d*o:h-d*o}const L5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V5(n){const a=L5.exec(n);if(!a)return[,];const[,s,o,u]=a;return[`--${s??o}`,u]}function Cb(n,a,s=1){const[o,u]=V5(n);if(!o)return;const d=window.getComputedStyle(a).getPropertyValue(o);if(d){const f=d.trim();return qy(f)?parseFloat(f):f}return Od(u)?Cb(u,a,s+1):u}const _5={type:"spring",stiffness:500,damping:25,restSpeed:10},k5=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),U5={type:"keyframes",duration:.8},B5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H5=(n,{keyframes:a})=>a.length>2?U5:tl.has(n)?n.startsWith("scale")?k5(a[1]):_5:B5;function Mb(n,a){if(n!=null&&n.inherit&&a){const{inherit:s,...o}=n;return{...a,...o}}return n}function Bd(n,a){const s=(n==null?void 0:n[a])??(n==null?void 0:n.default)??n;return s!==n?Mb(s,n):s}const $5=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function G5(n){for(const a in n)if(!$5.has(a))return!0;return!1}const Hd=(n,a,s,o={},u,d)=>f=>{const h=Bd(o,n)||{},m=h.delay||o.delay||0;let{elapsed:g=0}=o;g=g-_e(m);const y={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-g,onUpdate:S=>{a.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:n,motionValue:a,element:d?void 0:u};G5(h)||Object.assign(y,H5(n,y)),y.duration&&(y.duration=_e(y.duration)),y.repeatDelay&&(y.repeatDelay=_e(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(id(y),y.delay===0&&(b=!0)),(va.instantAnimations||va.skipAnimations||u!=null&&u.shouldSkipAnimations)&&(b=!0,id(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,b&&!d&&a.get()!==void 0){const S=zr(y.keyframes,h);if(S!==void 0){zt.update(()=>{y.onUpdate(S),y.onComplete()});return}}return h.isSync?new gr(y):new R5(y)};function $v(n){const a=[{},{}];return n==null||n.values.forEach((s,o)=>{a[0][o]=s.get(),a[1][o]=s.getVelocity()}),a}function $d(n,a,s,o){if(typeof a=="function"){const[u,d]=$v(o);a=a(s!==void 0?s:n.custom,u,d)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[u,d]=$v(o);a=a(s!==void 0?s:n.custom,u,d)}return a}function Ja(n,a,s){const o=n.getProps();return $d(o,a,s!==void 0?s:o.custom,n)}const Db=new Set(["width","height","top","left","right","bottom",...Ii]),Gv=30,Y5=n=>!isNaN(parseFloat(n));class q5{constructor(a,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const u=pe.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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(a),this.owner=s.owner}setCurrent(a){this.current=a,this.updatedAt=pe.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=Y5(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,s){this.events[a]||(this.events[a]=new Md);const o=this.events[a].add(s);return a==="change"?()=>{o(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,s){this.passiveEffect=a,this.stopPassiveEffect=s}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,s,o){this.set(s),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-o}jump(a,s=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Gv)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Gv);return Zy(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(a){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=a(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 a,s;(a=this.dependents)==null||a.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(n,a){return new q5(n,a)}const ld=n=>Array.isArray(n);function X5(n,a,s){n.hasValue(a)?n.getValue(a).set(s):n.addValue(a,Zi(s))}function K5(n){return ld(n)?n[n.length-1]||0:n}function F5(n,a){const s=Ja(n,a);let{transitionEnd:o={},transition:u={},...d}=s||{};d={...d,...o};for(const f in d){const h=K5(d[f]);X5(n,f,h)}}const ue=n=>!!(n&&n.getVelocity);function Z5(n){return!!(ue(n)&&n.add)}function sd(n,a){const s=n.getValue("willChange");if(Z5(s))return s.add(a);if(!s&&va.WillChange){const o=new va.WillChange("auto");n.addValue("willChange",o),o.add(a)}}function Gd(n){return n.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const Q5="framerAppearId",zb="data-"+Gd(Q5);function Ob(n){return n.props[zb]}function P5({protectedKeys:n,needsAnimating:a},s){const o=n.hasOwnProperty(s)&&a[s]!==!0;return a[s]=!1,o}function Rb(n,a,{delay:s=0,transitionOverride:o,type:u}={}){let{transition:d,transitionEnd:f,...h}=a;const m=n.getDefaultTransition();d=d?Mb(d,m):m;const g=d==null?void 0:d.reduceMotion;o&&(d=o);const y=[],b=u&&n.animationState&&n.animationState.getState()[u];for(const S in h){const T=n.getValue(S,n.latestValues[S]??null),A=h[S];if(A===void 0||b&&P5(b,S))continue;const E={delay:s,...Bd(d||{},S)},C=T.get();if(C!==void 0&&!T.isAnimating()&&!Array.isArray(A)&&A===C&&!E.velocity){zt.update(()=>T.set(A));continue}let N=!1;if(window.MotionHandoffAnimation){const H=Ob(n);if(H){const X=window.MotionHandoffAnimation(H,S,zt);X!==null&&(E.startTime=X,N=!0)}}sd(n,S);const V=g??n.shouldReduceMotion;T.start(Hd(S,T,A,V&&Db.has(S)?{type:!1}:E,n,N));const _=T.animation;_&&y.push(_)}if(f){const S=()=>zt.update(()=>{f&&F5(n,f)});y.length?Promise.all(y).then(S):S()}return y}function od(n,a,s={}){var m;const o=Ja(n,a,s.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:u=n.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(u=s.transitionOverride);const d=o?()=>Promise.all(Rb(n,o,s)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:S}=u;return J5(n,a,g,y,b,S,s)}:()=>Promise.resolve(),{when:h}=u;if(h){const[g,y]=h==="beforeChildren"?[d,f]:[f,d];return g().then(()=>y())}else return Promise.all([d(),f(s.delay)])}function J5(n,a,s=0,o=0,u=0,d=1,f){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",a),h.push(od(m,a,{...f,delay:s+(typeof o=="function"?0:o)+Nb(n.variantChildren,m,o,u,d)}).then(()=>m.notify("AnimationComplete",a)));return Promise.all(h)}function W5(n,a,s={}){n.notify("AnimationStart",a);let o;if(Array.isArray(a)){const u=a.map(d=>od(n,d,s));o=Promise.all(u)}else if(typeof a=="string")o=od(n,a,s);else{const u=typeof a=="function"?Ja(n,a,s.custom):a;o=Promise.all(Rb(n,u,s))}return o.then(()=>{n.notify("AnimationComplete",a)})}const I5={test:n=>n==="auto",parse:n=>n},Lb=n=>a=>a.test(n),Vb=[Wi,W,mn,ca,AE,EE,I5],Yv=n=>Vb.find(Lb(n));function tA(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Ky(n):!0}const eA=new Set(["brightness","contrast","saturate","opacity"]);function nA(n){const[a,s]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[o]=s.match(Rd)||[];if(!o)return n;const u=s.replace(o,"");let d=eA.has(a)?1:0;return o!==s&&(d*=100),a+"("+d+u+")"}const aA=/\b([a-z-]*)\(.*?\)/gu,rd={...ln,getAnimatableNone:n=>{const a=n.match(aA);return a?a.map(nA).join(" "):n}},ud={...ln,getAnimatableNone:n=>{const a=ln.parse(n);return ln.createTransformer(n)(a.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},qv={...Wi,transform:Math.round},iA={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:Fo,scaleX:Fo,scaleY:Fo,scaleZ:Fo,skew:ca,skewX:ca,skewY:ca,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ds,originX:Dv,originY:Dv,originZ:W},Yd={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...iA,zIndex:qv,fillOpacity:ds,strokeOpacity:ds,numOctaves:qv},lA={...Yd,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:rd,WebkitFilter:rd,mask:ud,WebkitMask:ud},_b=n=>lA[n],sA=new Set([rd,ud]);function kb(n,a){let s=_b(n);return sA.has(s)||(s=ln),s.getAnimatableNone?s.getAnimatableNone(a):void 0}const oA=new Set(["auto","none","0"]);function rA(n,a,s){let o=0,u;for(;o<n.length&&!u;){const d=n[o];typeof d=="string"&&!oA.has(d)&&Fi(d).values.length&&(u=n[o]),o++}if(u&&s)for(const d of a)n[d]=kb(s,u)}class uA extends Ud{constructor(a,s,o,u,d){super(a,s,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:s,name:o}=this;if(!s||!s.current)return;super.readKeyframes();for(let y=0;y<a.length;y++){let b=a[y];if(typeof b=="string"&&(b=b.trim(),Od(b))){const S=Cb(b,s.current);S!==void 0&&(a[y]=S),y===a.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Db.has(o)||a.length!==2)return;const[u,d]=a,f=Yv(u),h=Yv(d),m=Mv(u),g=Mv(d);if(m!==g&&pa[o]){this.needsMeasurement=!0;return}if(f!==h)if(Uv(f)&&Uv(h))for(let y=0;y<a.length;y++){const b=a[y];typeof b=="string"&&(a[y]=parseFloat(b))}else pa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:s}=this,o=[];for(let u=0;u<a.length;u++)(a[u]===null||tA(a[u]))&&o.push(u);o.length&&rA(a,o,s)}measureInitialState(){const{element:a,unresolvedKeyframes:s,name:o}=this;if(!a||!a.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pa[o](a.measureViewportBox(),window.getComputedStyle(a.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&a.getValue(o,u).jump(u,!1)}measureEndState(){var h;const{element:a,name:s,unresolvedKeyframes:o}=this;if(!a||!a.current)return;const u=a.getValue(s);u&&u.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=pa[s](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,g])=>{a.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function Ub(n,a,s){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const u=(s==null?void 0:s[n])??o.querySelectorAll(n);return u?Array.from(u):[]}return Array.from(n).filter(o=>o!=null)}const Bb=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function cA(n){return Xy(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:qd}=lb(queueMicrotask,!1),en={x:!1,y:!1};function Hb(){return en.x||en.y}function fA(n){return n==="x"||n==="y"?en[n]?null:(en[n]=!0,()=>{en[n]=!1}):en.x||en.y?null:(en.x=en.y=!0,()=>{en.x=en.y=!1})}function $b(n,a){const s=Ub(n),o=new AbortController,u={passive:!0,...a,signal:o.signal};return[s,u,()=>o.abort()]}function dA(n){return!(n.pointerType==="touch"||Hb())}function hA(n,a,s={}){const[o,u,d]=$b(n,s);return o.forEach(f=>{let h=!1,m=!1,g;const y=()=>{f.removeEventListener("pointerleave",A)},b=C=>{g&&(g(C),g=void 0),y()},S=C=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),m&&(m=!1,b(C))},T=()=>{h=!0,window.addEventListener("pointerup",S,u),window.addEventListener("pointercancel",S,u)},A=C=>{if(C.pointerType!=="touch"){if(h){m=!0;return}b(C)}},E=C=>{if(!dA(C))return;m=!1;const N=a(f,C);typeof N=="function"&&(g=N,f.addEventListener("pointerleave",A,u))};f.addEventListener("pointerenter",E,u),f.addEventListener("pointerdown",T,u)}),d}const Gb=(n,a)=>a?n===a?!0:Gb(n,a.parentElement):!1,Xd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,mA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pA(n){return mA.has(n.tagName)||n.isContentEditable===!0}const gA=new Set(["INPUT","SELECT","TEXTAREA"]);function vA(n){return gA.has(n.tagName)||n.isContentEditable===!0}const tr=new WeakSet;function Xv(n){return a=>{a.key==="Enter"&&n(a)}}function bf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const yA=(n,a)=>{const s=n.currentTarget;if(!s)return;const o=Xv(()=>{if(tr.has(s))return;bf(s,"down");const u=Xv(()=>{bf(s,"up")}),d=()=>bf(s,"cancel");s.addEventListener("keyup",u,a),s.addEventListener("blur",d,a)});s.addEventListener("keydown",o,a),s.addEventListener("blur",()=>s.removeEventListener("keydown",o),a)};function Kv(n){return Xd(n)&&!Hb()}const Fv=new WeakSet;function bA(n,a,s={}){const[o,u,d]=$b(n,s),f=h=>{const m=h.currentTarget;if(!Kv(h)||Fv.has(h))return;tr.add(m),s.stopPropagation&&Fv.add(h);const g=a(m,h),y=(T,A)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),tr.has(m)&&tr.delete(m),Kv(T)&&typeof g=="function"&&g(T,{success:A})},b=T=>{y(T,m===window||m===document||s.useGlobalTarget||Gb(m,T.target))},S=T=>{y(T,!1)};window.addEventListener("pointerup",b,u),window.addEventListener("pointercancel",S,u)};return o.forEach(h=>{(s.useGlobalTarget?window:h).addEventListener("pointerdown",f,u),cA(h)&&(h.addEventListener("focus",g=>yA(g,u)),!pA(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),d}function Kd(n){return Xy(n)&&"ownerSVGElement"in n}const er=new WeakMap;let fa;const Yb=(n,a,s)=>(o,u)=>u&&u[0]?u[0][n+"Size"]:Kd(o)&&"getBBox"in o?o.getBBox()[a]:o[s],xA=Yb("inline","width","offsetWidth"),SA=Yb("block","height","offsetHeight");function TA({target:n,borderBoxSize:a}){var s;(s=er.get(n))==null||s.forEach(o=>{o(n,{get width(){return xA(n,a)},get height(){return SA(n,a)}})})}function wA(n){n.forEach(TA)}function EA(){typeof ResizeObserver>"u"||(fa=new ResizeObserver(wA))}function AA(n,a){fa||EA();const s=Ub(n);return s.forEach(o=>{let u=er.get(o);u||(u=new Set,er.set(o,u)),u.add(a),fa==null||fa.observe(o)}),()=>{s.forEach(o=>{const u=er.get(o);u==null||u.delete(a),u!=null&&u.size||fa==null||fa.unobserve(o)})}}const nr=new Set;let Yi;function jA(){Yi=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};nr.forEach(a=>a(n))},window.addEventListener("resize",Yi)}function NA(n){return nr.add(n),Yi||jA(),()=>{nr.delete(n),!nr.size&&typeof Yi=="function"&&(window.removeEventListener("resize",Yi),Yi=void 0)}}function Zv(n,a){return typeof n=="function"?NA(n):AA(n,a)}function CA(n){return Kd(n)&&n.tagName==="svg"}const MA=[...Vb,Wt,ln],DA=n=>MA.find(Lb(n)),Qv=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Qv(),y:Qv()}),Pv=()=>({min:0,max:0}),te=()=>({x:Pv(),y:Pv()}),zA=new WeakMap;function Or(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function hs(n){return typeof n=="string"||Array.isArray(n)}const Fd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zd=["initial",...Fd];function Rr(n){return Or(n.animate)||Zd.some(a=>hs(n[a]))}function qb(n){return!!(Rr(n)||n.variants)}function OA(n,a,s){for(const o in a){const u=a[o],d=s[o];if(ue(u))n.addValue(o,u);else if(ue(d))n.addValue(o,Zi(u,{owner:n}));else if(d!==u)if(n.hasValue(o)){const f=n.getValue(o);f.liveStyle===!0?f.jump(u):f.hasAnimated||f.set(u)}else{const f=n.getStaticValue(o);n.addValue(o,Zi(f!==void 0?f:u,{owner:n}))}}for(const o in s)a[o]===void 0&&n.removeValue(o);return a}const cd={current:null},Xb={current:!1},RA=typeof window<"u";function LA(){if(Xb.current=!0,!!RA)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>cd.current=n.matches;n.addEventListener("change",a),a()}else cd.current=!1}const Jv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vr={};function Kb(n){vr=n}function VA(){return vr}class _A{scrapeMotionValuesFromProps(a,s,o){return{}}constructor({parent:a,props:s,presenceContext:o,reducedMotionConfig:u,skipAnimations:d,blockInitialAnimation:f,visualState:h},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=Ud,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 T=pe.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,zt.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=y,this.parent=a,this.props=s,this.presenceContext=o,this.depth=a?a.depth+1:0,this.reducedMotionConfig=u,this.skipAnimationsConfig=d,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=Rr(s),this.isVariantNode=qb(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const T in S){const A=S[T];g[T]!==void 0&&ue(A)&&A.set(g[T])}}mount(a){var s,o;if(this.hasBeenMounted)for(const u in this.initialValues)(s=this.values.get(u))==null||s.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=a,zA.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((u,d)=>this.bindToMotionValue(d,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Xb.current||LA(),this.shouldReduceMotion=cd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),ya(this.notifyUpdate),ya(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,s){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),s.accelerate&&jb.has(a)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:g,duration:y}=s.accelerate,b=new Eb({element:this.current,name:a,keyframes:h,times:m,ease:g,duration:_e(y)}),S=f(b);this.valueSubscriptions.set(a,()=>{S(),b.cancel()});return}const o=tl.has(a);o&&this.onBindTransform&&this.onBindTransform();const u=s.on("change",f=>{this.latestValues[a]=f,this.props.onUpdate&&zt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,a,s)),this.valueSubscriptions.set(a,()=>{u(),d&&d(),s.owner&&s.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in vr){const s=vr[a];if(!s)continue;const{isEnabled:o,Feature:u}=s;if(!this.features[a]&&u&&o(this.props)&&(this.features[a]=new u(this)),this.features[a]){const d=this.features[a];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):te()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,s){this.latestValues[a]=s}update(a,s){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let o=0;o<Jv.length;o++){const u=Jv[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,f=a[d];f&&(this.propEventSubscriptions[u]=this.on(u,f))}this.prevMotionValues=OA(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(a),()=>s.variantChildren.delete(a)}addValue(a,s){const o=this.values.get(a);s!==o&&(o&&this.removeValue(a),this.bindToMotionValue(a,s),this.values.set(a,s),this.latestValues[a]=s.get())}removeValue(a){this.values.delete(a);const s=this.valueSubscriptions.get(a);s&&(s(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,s){if(this.props.values&&this.props.values[a])return this.props.values[a];let o=this.values.get(a);return o===void 0&&s!==void 0&&(o=Zi(s===null?void 0:s,{owner:this}),this.addValue(a,o)),o}readValue(a,s){let o=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return o!=null&&(typeof o=="string"&&(qy(o)||Ky(o))?o=parseFloat(o):!DA(o)&&ln.test(s)&&(o=kb(a,s)),this.setBaseTarget(a,ue(o)?o.get():o)),ue(o)?o.get():o}setBaseTarget(a,s){this.baseTarget[a]=s}getBaseTarget(a){var d;const{initial:s}=this.props;let o;if(typeof s=="string"||typeof s=="object"){const f=$d(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[a])}if(s&&o!==void 0)return o;const u=this.getBaseTargetFromProps(this.props,a);return u!==void 0&&!ue(u)?u:this.initialValues[a]!==void 0&&o===void 0?void 0:this.baseTarget[a]}on(a,s){return this.events[a]||(this.events[a]=new Md),this.events[a].add(s)}notify(a,...s){this.events[a]&&this.events[a].notify(...s)}scheduleRenderMicrotask(){qd.render(this.render)}}class Fb extends _A{constructor(){super(...arguments),this.KeyframeResolver=uA}sortInstanceNodePosition(a,s){return a.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(a,s){const o=a.style;return o?o[s]:void 0}removeValueFromRenderState(a,{vars:s,style:o}){delete s[a],delete o[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;ue(a)&&(this.childSubscription=a.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class Sa{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Zb({top:n,left:a,right:s,bottom:o}){return{x:{min:a,max:s},y:{min:n,max:o}}}function kA({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function UA(n,a){if(!a)return n;const s=a({x:n.left,y:n.top}),o=a({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:o.y,right:o.x}}function xf(n){return n===void 0||n===1}function fd({scale:n,scaleX:a,scaleY:s}){return!xf(n)||!xf(a)||!xf(s)}function Ya(n){return fd(n)||Qb(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Qb(n){return Wv(n.x)||Wv(n.y)}function Wv(n){return n&&n!=="0%"}function yr(n,a,s){const o=n-s,u=a*o;return s+u}function Iv(n,a,s,o,u){return u!==void 0&&(n=yr(n,u,o)),yr(n,s,o)+a}function dd(n,a=0,s=1,o,u){n.min=Iv(n.min,a,s,o,u),n.max=Iv(n.max,a,s,o,u)}function Pb(n,{x:a,y:s}){dd(n.x,a.translate,a.scale,a.originPoint),dd(n.y,s.translate,s.scale,s.originPoint)}const t0=.999999999999,e0=1.0000000000001;function BA(n,a,s,o=!1){var h;const u=s.length;if(!u)return;a.x=a.y=1;let d,f;for(let m=0;m<u;m++){d=s[m],f=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(dn(n.x,-d.scroll.offset.x),dn(n.y,-d.scroll.offset.y)),f&&(a.x*=f.x.scale,a.y*=f.y.scale,Pb(n,f)),o&&Ya(d.latestValues)&&ar(n,d.latestValues,(h=d.layout)==null?void 0:h.layoutBox))}a.x<e0&&a.x>t0&&(a.x=1),a.y<e0&&a.y>t0&&(a.y=1)}function dn(n,a){n.min+=a,n.max+=a}function n0(n,a,s,o,u=.5){const d=Ut(n.min,n.max,u);dd(n,a,s,d,o)}function a0(n,a){return typeof n=="string"?parseFloat(n)/100*(a.max-a.min):n}function ar(n,a,s){const o=s??n;n0(n.x,a0(a.x,o.x),a.scaleX,a.scale,a.originX),n0(n.y,a0(a.y,o.y),a.scaleY,a.scale,a.originY)}function Jb(n,a){return Zb(UA(n.getBoundingClientRect(),a))}function HA(n,a,s){const o=Jb(n,s),{scroll:u}=a;return u&&(dn(o.x,u.offset.x),dn(o.y,u.offset.y)),o}const $A={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GA=Ii.length;function YA(n,a,s){let o="",u=!0;for(let d=0;d<GA;d++){const f=Ii[d],h=n[f];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(f.startsWith("scale")?1:0);else{const g=parseFloat(h);m=f.startsWith("scale")?g===1:g===0}if(!m||s){const g=Bb(h,Yd[f]);if(!m){u=!1;const y=$A[f]||f;o+=`${y}(${g}) `}s&&(a[f]=g)}}return o=o.trim(),s?o=s(a,u?"":o):u&&(o="none"),o}function Qd(n,a,s){const{style:o,vars:u,transformOrigin:d}=n;let f=!1,h=!1;for(const m in a){const g=a[m];if(tl.has(m)){f=!0;continue}else if(ob(m)){u[m]=g;continue}else{const y=Bb(g,Yd[m]);m.startsWith("origin")?(h=!0,d[m]=y):o[m]=y}}if(a.transform||(f||s?o.transform=YA(a,n.transform,s):o.transform&&(o.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:y=0}=d;o.transformOrigin=`${m} ${g} ${y}`}}function Wb(n,{style:a,vars:s},o,u){const d=n.style;let f;for(f in a)d[f]=a[f];u==null||u.applyProjectionStyles(d,o);for(f in s)d.setProperty(f,s[f])}function i0(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Pl={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(W.test(n))n=parseFloat(n);else return n;const s=i0(n,a.target.x),o=i0(n,a.target.y);return`${s}% ${o}%`}},qA={correct:(n,{treeScale:a,projectionDelta:s})=>{const o=n,u=ln.parse(n);if(u.length>5)return o;const d=ln.createTransformer(n),f=typeof u[0]!="number"?1:0,h=s.x.scale*a.x,m=s.y.scale*a.y;u[0+f]/=h,u[1+f]/=m;const g=Ut(h,m,.5);return typeof u[2+f]=="number"&&(u[2+f]/=g),typeof u[3+f]=="number"&&(u[3+f]/=g),d(u)}},hd={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:qA};function Ib(n,{layout:a,layoutId:s}){return tl.has(n)||n.startsWith("origin")||(a||s!==void 0)&&(!!hd[n]||n==="opacity")}function Pd(n,a,s){var f;const o=n.style,u=a==null?void 0:a.style,d={};if(!o)return d;for(const h in o)(ue(o[h])||u&&ue(u[h])||Ib(h,n)||((f=s==null?void 0:s.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(d[h]=o[h]);return d}function XA(n){return window.getComputedStyle(n)}class KA extends Fb{constructor(){super(...arguments),this.type="html",this.renderInstance=Wb}readValueFromInstance(a,s){var o;if(tl.has(s))return(o=this.projection)!=null&&o.isProjecting?If(s):f5(a,s);{const u=XA(a),d=(ob(s)?u.getPropertyValue(s):u[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:s}){return Jb(a,s)}build(a,s,o){Qd(a,s,o.transformTemplate)}scrapeMotionValuesFromProps(a,s,o){return Pd(a,s,o)}}const FA={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZA={offset:"strokeDashoffset",array:"strokeDasharray"};function QA(n,a,s=1,o=0,u=!0){n.pathLength=1;const d=u?FA:ZA;n[d.offset]=`${-o}`,n[d.array]=`${a} ${s}`}const PA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tx(n,{attrX:a,attrY:s,attrScale:o,pathLength:u,pathSpacing:d=1,pathOffset:f=0,...h},m,g,y){if(Qd(n,h,g),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const T of PA)b[T]!==void 0&&(S[T]=b[T],delete b[T]);a!==void 0&&(b.x=a),s!==void 0&&(b.y=s),o!==void 0&&(b.scale=o),u!==void 0&&QA(b,u,d,f,!1)}const ex=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"]),nx=n=>typeof n=="string"&&n.toLowerCase()==="svg";function JA(n,a,s,o){Wb(n,a,void 0,o);for(const u in a.attrs)n.setAttribute(ex.has(u)?u:Gd(u),a.attrs[u])}function ax(n,a,s){const o=Pd(n,a,s);for(const u in n)if(ue(n[u])||ue(a[u])){const d=Ii.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=n[u]}return o}class WA extends Fb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(a,s){return a[s]}readValueFromInstance(a,s){if(tl.has(s)){const o=_b(s);return o&&o.default||0}return s=ex.has(s)?s:Gd(s),a.getAttribute(s)}scrapeMotionValuesFromProps(a,s,o){return ax(a,s,o)}build(a,s,o){tx(a,s,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(a,s,o,u){JA(a,s,o,u)}mount(a){this.isSVGTag=nx(a.tagName),super.mount(a)}}const IA=Zd.length;function ix(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?ix(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const a={};for(let s=0;s<IA;s++){const o=Zd[s],u=n.props[o];(hs(u)||u===!1)&&(a[o]=u)}return a}function lx(n,a){if(!Array.isArray(a))return!1;const s=a.length;if(s!==n.length)return!1;for(let o=0;o<s;o++)if(a[o]!==n[o])return!1;return!0}const tj=[...Fd].reverse(),ej=Fd.length;function nj(n){return a=>Promise.all(a.map(({animation:s,options:o})=>W5(n,s,o)))}function aj(n){let a=nj(n),s=l0(),o=!0,u=!1;const d=g=>(y,b)=>{var T;const S=Ja(n,b,g==="exit"?(T=n.presenceContext)==null?void 0:T.custom:void 0);if(S){const{transition:A,transitionEnd:E,...C}=S;y={...y,...C,...E}}return y};function f(g){a=g(n)}function h(g){const{props:y}=n,b=ix(n.parent)||{},S=[],T=new Set;let A={},E=1/0;for(let N=0;N<ej;N++){const V=tj[N],_=s[V],H=y[V]!==void 0?y[V]:b[V],X=hs(H),tt=V===g?_.isActive:null;tt===!1&&(E=N);let F=H===b[V]&&H!==y[V]&&X;if(F&&(o||u)&&n.manuallyAnimateOnMount&&(F=!1),_.protectedKeys={...A},!_.isActive&&tt===null||!H&&!_.prevProp||Or(H)||typeof H=="boolean")continue;if(V==="exit"&&_.isActive&&tt!==!0){_.prevResolvedValues&&(A={...A,..._.prevResolvedValues});continue}const nt=ij(_.prevProp,H);let xt=nt||V===g&&_.isActive&&!F&&X||N>E&&X,P=!1;const ft=Array.isArray(H)?H:[H];let vt=ft.reduce(d(V),{});tt===!1&&(vt={});const{prevResolvedValues:Ot={}}=_,Nt={...Ot,...vt},Rt=Z=>{xt=!0,T.has(Z)&&(P=!0,T.delete(Z)),_.needsAnimating[Z]=!0;const it=n.getValue(Z);it&&(it.liveStyle=!1)};for(const Z in Nt){const it=vt[Z],ct=Ot[Z];if(A.hasOwnProperty(Z))continue;let M=!1;ld(it)&&ld(ct)?M=!lx(it,ct):M=it!==ct,M?it!=null?Rt(Z):T.add(Z):it!==void 0&&T.has(Z)?Rt(Z):_.protectedKeys[Z]=!0}_.prevProp=H,_.prevResolvedValues=vt,_.isActive&&(A={...A,...vt}),(o||u)&&n.blockInitialAnimation&&(xt=!1);const U=F&&nt;xt&&(!U||P)&&S.push(...ft.map(Z=>{const it={type:V};if(typeof Z=="string"&&(o||u)&&!U&&n.manuallyAnimateOnMount&&n.parent){const{parent:ct}=n,M=Ja(ct,Z);if(ct.enteringChildren&&M){const{delayChildren:G}=M.transition||{};it.delay=Nb(ct.enteringChildren,n,G)}}return{animation:Z,options:it}}))}if(T.size){const N={};if(typeof y.initial!="boolean"){const V=Ja(n,Array.isArray(y.initial)?y.initial[0]:y.initial);V&&V.transition&&(N.transition=V.transition)}T.forEach(V=>{const _=n.getBaseTarget(V),H=n.getValue(V);H&&(H.liveStyle=!0),N[V]=_??null}),S.push({animation:N})}let C=!!S.length;return o&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(C=!1),o=!1,u=!1,C?a(S):Promise.resolve()}function m(g,y){var S;if(s[g].isActive===y)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(T=>{var A;return(A=T.animationState)==null?void 0:A.setActive(g,y)}),s[g].isActive=y;const b=h(g);for(const T in s)s[T].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:f,getState:()=>s,reset:()=>{s=l0(),u=!0}}}function ij(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!lx(a,n):!1}function $a(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function l0(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}function md(n,a){n.min=a.min,n.max=a.max}function tn(n,a){md(n.x,a.x),md(n.y,a.y)}function s0(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}const sx=1e-4,lj=1-sx,sj=1+sx,ox=.01,oj=0-ox,rj=0+ox;function ge(n){return n.max-n.min}function uj(n,a,s){return Math.abs(n-a)<=s}function o0(n,a,s,o=.5){n.origin=o,n.originPoint=Ut(a.min,a.max,n.origin),n.scale=ge(s)/ge(a),n.translate=Ut(s.min,s.max,n.origin)-n.originPoint,(n.scale>=lj&&n.scale<=sj||isNaN(n.scale))&&(n.scale=1),(n.translate>=oj&&n.translate<=rj||isNaN(n.translate))&&(n.translate=0)}function rs(n,a,s,o){o0(n.x,a.x,s.x,o?o.originX:void 0),o0(n.y,a.y,s.y,o?o.originY:void 0)}function r0(n,a,s,o=0){const u=o?Ut(s.min,s.max,o):s.min;n.min=u+a.min,n.max=n.min+ge(a)}function cj(n,a,s,o){r0(n.x,a.x,s.x,o==null?void 0:o.x),r0(n.y,a.y,s.y,o==null?void 0:o.y)}function u0(n,a,s,o=0){const u=o?Ut(s.min,s.max,o):s.min;n.min=a.min-u,n.max=n.min+ge(a)}function br(n,a,s,o){u0(n.x,a.x,s.x,o==null?void 0:o.x),u0(n.y,a.y,s.y,o==null?void 0:o.y)}function c0(n,a,s,o,u){return n-=a,n=yr(n,1/s,o),u!==void 0&&(n=yr(n,1/u,o)),n}function fj(n,a=0,s=1,o=.5,u,d=n,f=n){if(mn.test(a)&&(a=parseFloat(a),a=Ut(f.min,f.max,a/100)-f.min),typeof a!="number")return;let h=Ut(d.min,d.max,o);n===d&&(h-=a),n.min=c0(n.min,a,s,h,u),n.max=c0(n.max,a,s,h,u)}function f0(n,a,[s,o,u],d,f){fj(n,a[s],a[o],a[u],a.scale,d,f)}const dj=["x","scaleX","originX"],hj=["y","scaleY","originY"];function d0(n,a,s,o){f0(n.x,a,dj,s?s.x:void 0,o?o.x:void 0),f0(n.y,a,hj,s?s.y:void 0,o?o.y:void 0)}function h0(n){return n.translate===0&&n.scale===1}function rx(n){return h0(n.x)&&h0(n.y)}function m0(n,a){return n.min===a.min&&n.max===a.max}function mj(n,a){return m0(n.x,a.x)&&m0(n.y,a.y)}function p0(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function ux(n,a){return p0(n.x,a.x)&&p0(n.y,a.y)}function g0(n){return ge(n.x)/ge(n.y)}function v0(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}function fn(n){return[n("x"),n("y")]}function pj(n,a,s){let o="";const u=n.x.translate/a.x,d=n.y.translate/a.y,f=(s==null?void 0:s.z)||0;if((u||d||f)&&(o=`translate3d(${u}px, ${d}px, ${f}px) `),(a.x!==1||a.y!==1)&&(o+=`scale(${1/a.x}, ${1/a.y}) `),s){const{transformPerspective:g,rotate:y,rotateX:b,rotateY:S,skewX:T,skewY:A}=s;g&&(o=`perspective(${g}px) ${o}`),y&&(o+=`rotate(${y}deg) `),b&&(o+=`rotateX(${b}deg) `),S&&(o+=`rotateY(${S}deg) `),T&&(o+=`skewX(${T}deg) `),A&&(o+=`skewY(${A}deg) `)}const h=n.x.scale*a.x,m=n.y.scale*a.y;return(h!==1||m!==1)&&(o+=`scale(${h}, ${m})`),o||"none"}const cx=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],gj=cx.length,y0=n=>typeof n=="string"?parseFloat(n):n,b0=n=>typeof n=="number"||W.test(n);function vj(n,a,s,o,u,d){u?(n.opacity=Ut(0,s.opacity??1,yj(o)),n.opacityExit=Ut(a.opacity??1,0,bj(o))):d&&(n.opacity=Ut(a.opacity??1,s.opacity??1,o));for(let f=0;f<gj;f++){const h=cx[f];let m=x0(a,h),g=x0(s,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||b0(m)===b0(g)?(n[h]=Math.max(Ut(y0(m),y0(g),o),0),(mn.test(g)||mn.test(m))&&(n[h]+="%")):n[h]=g}(a.rotate||s.rotate)&&(n.rotate=Ut(a.rotate||0,s.rotate||0,o))}function x0(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const yj=fx(0,.5,eb),bj=fx(.5,.95,Pe);function fx(n,a,s){return o=>o<n?0:o>a?1:s(fs(n,a,o))}function xj(n,a,s){const o=ue(n)?n:Zi(n);return o.start(Hd("",o,a,s)),o.animation}function ms(n,a,s,o={passive:!0}){return n.addEventListener(a,s,o),()=>n.removeEventListener(a,s)}const Sj=(n,a)=>n.depth-a.depth;class Tj{constructor(){this.children=[],this.isDirty=!1}add(a){Nd(this.children,a),this.isDirty=!0}remove(a){dr(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(Sj),this.isDirty=!1,this.children.forEach(a)}}function wj(n,a){const s=pe.now(),o=({timestamp:u})=>{const d=u-s;d>=a&&(ya(o),n(d-a))};return zt.setup(o,!0),()=>ya(o)}function ir(n){return ue(n)?n.get():n}class Ej{constructor(){this.members=[]}add(a){Nd(this.members,a);for(let s=this.members.length-1;s>=0;s--){const o=this.members[s];if(o===a||o===this.lead||o===this.prevLead)continue;const u=o.instance;(!u||u.isConnected===!1)&&!o.snapshot&&(dr(this.members,o),o.unmount())}a.scheduleRender()}remove(a){if(dr(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(a){var s;for(let o=this.members.indexOf(a)-1;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1&&((s=u.instance)==null?void 0:s.isConnected)!==!1)return this.promote(u),!0}return!1}promote(a,s){var u;const o=this.lead;if(a!==o&&(this.prevLead=o,this.lead=a,a.show(),o)){o.updateSnapshot(),a.scheduleRender();const{layoutDependency:d}=o.options,{layoutDependency:f}=a.options;(d===void 0||d!==f)&&(a.resumeFrom=o,s&&(o.preserveOpacity=!0),o.snapshot&&(a.snapshot=o.snapshot,a.snapshot.latestValues=o.animationValues||o.latestValues),(u=a.root)!=null&&u.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(a=>{var s,o,u,d,f;(o=(s=a.options).onExitComplete)==null||o.call(s),(f=(u=a.resumingFrom)==null?void 0:(d=u.options).onExitComplete)==null||f.call(d)})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){var a;(a=this.lead)!=null&&a.snapshot&&(this.lead.snapshot=void 0)}}const lr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Sf=["","X","Y","Z"],Aj=1e3;let jj=0;function Tf(n,a,s,o){const{latestValues:u}=a;u[n]&&(s[n]=u[n],a.setStaticValue(n,0),o&&(o[n]=0))}function dx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const s=Ob(a);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",zt,!(u||d))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&dx(o)}function hx({attachResizeListener:n,defaultParent:a,measureScroll:s,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(f={},h=a==null?void 0:a()){this.id=jj++,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(Mj),this.nodes.forEach(Vj),this.nodes.forEach(_j),this.nodes.forEach(Dj)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new Tj)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Md),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Kd(f)&&!CA(f),this.instance=f;const{layoutId:h,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||h)&&(this.isLayoutDirty=!0),n){let y,b=0;const S=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{b=window.innerWidth}),n(f,()=>{const T=window.innerWidth;T!==b&&(b=T,this.root.updateBlockedByResize=!0,y&&y(),y=wj(S,250),lr.hasAnimatedSinceResize&&(lr.hasAnimatedSinceResize=!1,this.nodes.forEach(w0)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const A=this.options.transition||g.getDefaultTransition()||$j,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=g.getProps(),N=!this.targetLayout||!ux(this.targetLayout,T),V=!b&&S;if(this.options.layoutRoot||this.resumeFrom||V||b&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...Bd(A,"layout"),onPlay:E,onComplete:C};(g.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(y,V)}else b||w0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}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(),ya(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(kj),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&&dx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===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(Oj),this.nodes.forEach(S0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rj),this.nodes.forEach(Lj),this.nodes.forEach(Nj),this.nodes.forEach(Cj)):this.nodes.forEach(T0),this.clearAllSnapshots();const h=pe.now();re.delta=pn(0,1e3/60,h-re.timestamp),re.timestamp=h,re.isProcessing=!0,hf.update.process(re),hf.preRender.process(re),hf.render.process(re),re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zj),this.sharedNodes.forEach(Uj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ge(this.snapshot.measuredBox.x)&&!ge(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=te()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=o(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(!u)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!rx(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;f&&this.instance&&(h||Ya(this.latestValues)||y)&&(u(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),Gj(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:f}=this.options;if(!f)return te();const h=f.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(Yj))){const{scroll:y}=this.root;y&&(dn(h.x,y.offset.x),dn(h.y,y.offset.y))}return h}removeElementScroll(f){var m;const h=te();if(tn(h,f),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:b,options:S}=y;y!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&tn(h,f),dn(h.x,b.offset.x),dn(h.y,b.offset.y))}return h}applyTransform(f,h=!1,m){var y,b;const g=m||te();tn(g,f);for(let S=0;S<this.path.length;S++){const T=this.path[S];!h&&T.options.layoutScroll&&T.scroll&&T!==T.root&&(dn(g.x,-T.scroll.offset.x),dn(g.y,-T.scroll.offset.y)),Ya(T.latestValues)&&ar(g,T.latestValues,(y=T.layout)==null?void 0:y.layoutBox)}return Ya(this.latestValues)&&ar(g,this.latestValues,(b=this.layout)==null?void 0:b.layoutBox),g}removeTransform(f){var m;const h=te();tn(h,f);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!Ya(y.latestValues))continue;let b;y.instance&&(fd(y.latestValues)&&y.updateSnapshot(),b=te(),tn(b,y.measurePageBox())),d0(h,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,b)}return Ya(this.latestValues)&&d0(h,this.latestValues),h}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!==re.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var T;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=re.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cj(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tn(this.target,this.layout.layoutBox),Pb(this.target,this.targetDelta)):tn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fd(this.parent.latestValues)||Qb(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,h,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),br(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),tn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var A;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(A=this.parent)!=null&&A.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===re.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;tn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;BA(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=te());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(s0(this.prevProjectionDelta.x,this.projectionDelta.x),s0(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!v0(this.projectionDelta.x,this.prevProjectionDelta.x)||!v0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(f,h=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},b=qi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=te(),T=m?m.source:void 0,A=this.layout?this.layout.source:void 0,E=T!==A,C=this.getStack(),N=!C||C.members.length<=1,V=!!(E&&!N&&this.options.crossfade===!0&&!this.path.some(Hj));this.animationProgress=0;let _;this.mixTargetDelta=H=>{const X=H/1e3;E0(b.x,f.x,X),E0(b.y,f.y,X),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Bj(this.relativeTarget,this.relativeTargetOrigin,S,X),_&&mj(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=te()),tn(_,this.relativeTarget)),E&&(this.animationValues=y,vj(y,g,this.latestValues,X,V,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(ya(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{lr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.motionValue.jump(0,!1),this.currentAnimation=xj(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(Aj),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:y}=f;if(!(!h||!m||!g)){if(this!==f&&this.layout&&g&&mx(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||te();const b=ge(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+b;const S=ge(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}tn(h,m),ar(h,y),rs(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new Ej),this.sharedNodes.get(f).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&Tf("z",f,g,this.animationValues);for(let y=0;y<Sf.length;y++)Tf(`rotate${Sf[y]}`,f,g,this.animationValues),Tf(`skew${Sf[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,h){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=ir(h==null?void 0:h.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=ir(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Ya(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=pj(this.projectionDeltaWithTransform,this.treeScale,y);m&&(b=m(y,b)),f.transform=b;const{x:S,y:T}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${T.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 A in hd){if(y[A]===void 0)continue;const{correct:E,applyTo:C,isCSSVariable:N}=hd[A],V=b==="none"?y[A]:E(y[A],g);if(C){const _=C.length;for(let H=0;H<_;H++)f[C[H]]=V}else N?this.options.visualElement.renderState.vars[A]=V:f[A]=V}this.options.layoutId&&(f.pointerEvents=g===this?ir(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(S0),this.root.sharedNodes.clear()}}}function Nj(n){n.updateLayout()}function Cj(n){var s;const a=((s=n.resumeFrom)==null?void 0:s.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=n.layout,{animationType:d}=n.options,f=a.source!==n.layout.source;if(d==="size")fn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=ge(S);S.min=o[b].min,S.max=S.min+T});else if(d==="x"||d==="y"){const b=d==="x"?"y":"x";md(f?a.measuredBox[b]:a.layoutBox[b],o[b])}else mx(d,a.layoutBox,o)&&fn(b=>{const S=f?a.measuredBox[b]:a.layoutBox[b],T=ge(o[b]);S.max=S.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[b].max=n.relativeTarget[b].min+T)});const h=qi();rs(h,o,a.layoutBox);const m=qi();f?rs(m,n.applyTransform(u,!0),a.measuredBox):rs(m,o,a.layoutBox);const g=!rx(h);let y=!1;if(!n.resumeFrom){const b=n.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:T}=b;if(S&&T){const A=n.options.layoutAnchor||void 0,E=te();br(E,a.layoutBox,S.layoutBox,A);const C=te();br(C,o,T.layoutBox,A),ux(E,C)||(y=!0),b.options.layoutRoot&&(n.relativeTarget=C,n.relativeTargetOrigin=E,n.relativeParent=b)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:a,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function Mj(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 Dj(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function zj(n){n.clearSnapshot()}function S0(n){n.clearMeasurements()}function Oj(n){n.isLayoutDirty=!0,n.updateLayout()}function T0(n){n.isLayoutDirty=!1}function Rj(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function Lj(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function w0(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Vj(n){n.resolveTargetDelta()}function _j(n){n.calcProjection()}function kj(n){n.resetSkewAndRotation()}function Uj(n){n.removeLeadSnapshot()}function E0(n,a,s){n.translate=Ut(a.translate,0,s),n.scale=Ut(a.scale,1,s),n.origin=a.origin,n.originPoint=a.originPoint}function A0(n,a,s,o){n.min=Ut(a.min,s.min,o),n.max=Ut(a.max,s.max,o)}function Bj(n,a,s,o){A0(n.x,a.x,s.x,o),A0(n.y,a.y,s.y,o)}function Hj(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const $j={duration:.45,ease:[.4,0,.1,1]},j0=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),N0=j0("applewebkit/")&&!j0("chrome/")?Math.round:Pe;function C0(n){n.min=N0(n.min),n.max=N0(n.max)}function Gj(n){C0(n.x),C0(n.y)}function mx(n,a,s){return n==="position"||n==="preserve-aspect"&&!uj(g0(a),g0(s),.2)}function Yj(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const qj=hx({attachResizeListener:(n,a)=>ms(n,"resize",a),measureScroll:()=>{var n,a;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Xj=n=>!n.isLayoutDirty&&n.willUpdate(!1);function M0(){const n=new Set,a=new WeakMap,s=()=>n.forEach(Xj);return{add:o=>{n.add(o),a.set(o,o.addEventListener("willUpdate",s))},remove:o=>{n.delete(o);const u=a.get(o);u&&(u(),a.delete(o)),s()},dirty:s}}const wf={current:void 0},px=hx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!wf.current){const n=new qj({});n.mount(window),n.setOptions({layoutScroll:!0}),wf.current=n}return wf.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),gx=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Kj(n=!0){const a=w.useContext(jd);if(a===null)return[!0,null];const{isPresent:s,onExitComplete:o,register:u}=a,d=w.useId();w.useEffect(()=>{if(n)return u(d)},[n]);const f=w.useCallback(()=>n&&o&&o(d),[d,o,n]);return!s&&o?[!1,f]:[!0]}const Fj=w.createContext(null);function Zj(){const n=w.useRef(!1);return Yy(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function Qj(){const n=Zj(),[a,s]=w.useState(0),o=w.useCallback(()=>{n.current&&s(a+1)},[a]);return[w.useCallback(()=>zt.postRender(o),[o]),a]}const vx=n=>n===!0,Pj=n=>vx(n===!0)||n==="id",yx=({children:n,id:a,inherit:s=!0})=>{const o=w.useContext(fr),u=w.useContext(Fj),[d,f]=Qj(),h=w.useRef(null),m=o.id||u;h.current===null&&(Pj(s)&&m&&(a=a?m+"-"+a:m),h.current={id:a,group:vx(s)&&o.group||M0()});const g=w.useMemo(()=>({...h.current,forceRender:d}),[f]);return p.jsx(fr.Provider,{value:g,children:n})},bx=w.createContext({strict:!1}),D0={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 z0=!1;function Jj(){if(z0)return;const n={};for(const a in D0)n[a]={isEnabled:s=>D0[a].some(o=>!!s[o])};Kb(n),z0=!0}function xx(){return Jj(),VA()}function Wj(n){const a=xx();for(const s in n)a[s]={...a[s],...n[s]};Kb(a)}const Ij=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 xr(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Ij.has(n)}let Sx=n=>!xr(n);function t3(n){typeof n=="function"&&(Sx=a=>a.startsWith("on")?!xr(a):n(a))}try{t3(require("@emotion/is-prop-valid").default)}catch{}function e3(n,a,s){const o={};for(const u in n)u==="values"&&typeof n.values=="object"||ue(n[u])||(Sx(u)||s===!0&&xr(u)||!a&&!xr(u)||n.draggable&&u.startsWith("onDrag"))&&(o[u]=n[u]);return o}const Lr=w.createContext({});function n3(n,a){if(Rr(n)){const{initial:s,animate:o}=n;return{initial:s===!1||hs(s)?s:void 0,animate:hs(o)?o:void 0}}return n.inherit!==!1?a:{}}function a3(n){const{initial:a,animate:s}=n3(n,w.useContext(Lr));return w.useMemo(()=>({initial:a,animate:s}),[O0(a),O0(s)])}function O0(n){return Array.isArray(n)?n.join(" "):n}const Jd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tx(n,a,s){for(const o in a)!ue(a[o])&&!Ib(o,s)&&(n[o]=a[o])}function i3({transformTemplate:n},a){return w.useMemo(()=>{const s=Jd();return Qd(s,a,n),Object.assign({},s.vars,s.style)},[a])}function l3(n,a){const s=n.style||{},o={};return Tx(o,s,n),Object.assign(o,i3(n,a)),o}function s3(n,a){const s={},o=l3(n,a);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,s}const wx=()=>({...Jd(),attrs:{}});function o3(n,a,s,o){const u=w.useMemo(()=>{const d=wx();return tx(d,a,nx(o),n.transformTemplate,n.style),{...d.attrs,style:{...d.style}}},[a]);if(n.style){const d={};Tx(d,n.style,n),u.style={...d,...u.style}}return u}const r3=["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 Wd(n){return typeof n!="string"||n.includes("-")?!1:!!(r3.indexOf(n)>-1||/[A-Z]/u.test(n))}function u3(n,a,s,{latestValues:o},u,d=!1,f){const m=(f??Wd(n)?o3:s3)(a,o,u,n),g=e3(a,typeof n=="string",d),y=n!==w.Fragment?{...g,...m,ref:s}:{},{children:b}=a,S=w.useMemo(()=>ue(b)?b.get():b,[b]);return w.createElement(n,{...y,children:S})}function c3({scrapeMotionValuesFromProps:n,createRenderState:a},s,o,u){return{latestValues:f3(s,o,u,n),renderState:a()}}function f3(n,a,s,o){const u={},d=o(n,{});for(const S in d)u[S]=ir(d[S]);let{initial:f,animate:h}=n;const m=Rr(n),g=qb(n);a&&g&&!m&&n.inherit!==!1&&(f===void 0&&(f=a.initial),h===void 0&&(h=a.animate));let y=s?s.initial===!1:!1;y=y||f===!1;const b=y?h:f;if(b&&typeof b!="boolean"&&!Or(b)){const S=Array.isArray(b)?b:[b];for(let T=0;T<S.length;T++){const A=$d(n,S[T]);if(A){const{transitionEnd:E,transition:C,...N}=A;for(const V in N){let _=N[V];if(Array.isArray(_)){const H=y?_.length-1:0;_=_[H]}_!==null&&(u[V]=_)}for(const V in E)u[V]=E[V]}}}return u}const Ex=n=>(a,s)=>{const o=w.useContext(Lr),u=w.useContext(jd),d=()=>c3(n,a,o,u);return s?d():iE(d)},d3=Ex({scrapeMotionValuesFromProps:Pd,createRenderState:Jd}),h3=Ex({scrapeMotionValuesFromProps:ax,createRenderState:wx}),m3=Symbol.for("motionComponentSymbol");function p3(n,a,s){const o=w.useRef(s);w.useInsertionEffect(()=>{o.current=s});const u=w.useRef(null);return w.useCallback(d=>{var h;d&&((h=n.onMount)==null||h.call(n,d));const f=o.current;if(typeof f=="function")if(d){const m=f(d);typeof m=="function"&&(u.current=m)}else u.current?(u.current(),u.current=null):f(d);else f&&(f.current=d);a&&(d?a.mount(d):a.unmount())},[a])}const Ax=w.createContext({});function $i(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function g3(n,a,s,o,u,d){var _,H;const{visualElement:f}=w.useContext(Lr),h=w.useContext(bx),m=w.useContext(jd),g=w.useContext(gx),y=g.reducedMotion,b=g.skipAnimations,S=w.useRef(null),T=w.useRef(!1);o=o||h.renderer,!S.current&&o&&(S.current=o(n,{visualState:a,parent:f,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:d}),T.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const A=S.current,E=w.useContext(Ax);A&&!A.projection&&u&&(A.type==="html"||A.type==="svg")&&v3(S.current,s,u,E);const C=w.useRef(!1);w.useInsertionEffect(()=>{A&&C.current&&A.update(s,m)});const N=s[zb],V=w.useRef(!!N&&typeof window<"u"&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,N))&&((H=window.MotionHasOptimisedAnimation)==null?void 0:H.call(window,N)));return Yy(()=>{T.current=!0,A&&(C.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),V.current&&A.animationState&&A.animationState.animateChanges())}),w.useEffect(()=>{A&&(!V.current&&A.animationState&&A.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{var X;(X=window.MotionHandoffMarkAsComplete)==null||X.call(window,N)}),V.current=!1),A.enteringChildren=void 0)}),A}function v3(n,a,s,o){const{layoutId:u,layout:d,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutAnchor:y,layoutCrossfade:b}=a;n.projection=new s(n.latestValues,a["data-framer-portal-id"]?void 0:jx(n.parent)),n.projection.setOptions({layoutId:u,layout:d,alwaysMeasureLayout:!!f||h&&$i(h),visualElement:n,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:m,layoutRoot:g,layoutAnchor:y})}function jx(n){if(n)return n.options.allowProjection!==!1?n.projection:jx(n.parent)}function Ef(n,{forwardMotionProps:a=!1,type:s}={},o,u){o&&Wj(o);const d=s?s==="svg":Wd(n),f=d?h3:d3;function h(g,y){let b;const S={...w.useContext(gx),...g,layoutId:y3(g)},{isStatic:T}=S,A=a3(g),E=f(g,T);if(!T&&typeof window<"u"){b3();const C=x3(S);b=C.MeasureLayout,A.visualElement=g3(n,E,S,u,C.ProjectionNode,d)}return p.jsxs(Lr.Provider,{value:A,children:[b&&A.visualElement?p.jsx(b,{visualElement:A.visualElement,...S}):null,u3(n,g,p3(E,A.visualElement,y),E,T,a,d)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=w.forwardRef(h);return m[m3]=n,m}function y3({layoutId:n}){const a=w.useContext(fr).id;return a&&n!==void 0?a+"-"+n:n}function b3(n,a){w.useContext(bx).strict}function x3(n){const a=xx(),{drag:s,layout:o}=a;if(!s&&!o)return{};const u={...s,...o};return{MeasureLayout:s!=null&&s.isEnabled(n)||o!=null&&o.isEnabled(n)?u.MeasureLayout:void 0,ProjectionNode:u.ProjectionNode}}function S3(n,a){if(typeof Proxy>"u")return Ef;const s=new Map,o=(d,f)=>Ef(d,f,n,a),u=(d,f)=>o(d,f);return new Proxy(u,{get:(d,f)=>f==="create"?o:(s.has(f)||s.set(f,Ef(f,void 0,n,a)),s.get(f))})}const T3=(n,a)=>a.isSVG??Wd(n)?new WA(a):new KA(a,{allowProjection:n!==w.Fragment});class w3 extends Sa{constructor(a){super(a),a.animationState||(a.animationState=aj(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();Or(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:s}=this.node.prevProps||{};a!==s&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let E3=0;class A3 extends Sa{constructor(){super(...arguments),this.id=E3++,this.isExitComplete=!1}update(){var d;if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:s}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===o)return;if(a&&o===!1){if(this.isExitComplete){const{initial:f,custom:h}=this.node.getProps();if(typeof f=="string"){const m=Ja(this.node,f,h);if(m){const{transition:g,transitionEnd:y,...b}=m;for(const S in b)(d=this.node.getValue(S))==null||d.jump(b[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const u=this.node.animationState.setActive("exit",!a);s&&!a&&u.then(()=>{this.isExitComplete=!0,s(this.id)})}mount(){const{register:a,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const j3={animation:{Feature:w3},exit:{Feature:A3}};function Ts(n){return{point:{x:n.pageX,y:n.pageY}}}const N3=n=>a=>Xd(a)&&n(a,Ts(a));function us(n,a,s,o){return ms(n,a,N3(s),o)}const Nx=({current:n})=>n?n.ownerDocument.defaultView:null,R0=(n,a)=>Math.abs(n-a);function C3(n,a){const s=R0(n.x,a.x),o=R0(n.y,a.y);return Math.sqrt(s**2+o**2)}const L0=new Set(["auto","scroll"]);class Cx{constructor(a,s,{transformPagePoint:o,contextWindow:u=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:h}={}){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=T=>{this.handleScroll(T.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zo(this.lastRawMoveEventInfo,this.transformPagePoint));const T=Af(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,E=C3(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!A&&!E)return;const{point:C}=T,{timestamp:N}=re;this.history.push({...C,timestamp:N});const{onStart:V,onMove:_}=this.handlers;A||(V&&V(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,T)},this.handlePointerMove=(T,A)=>{this.lastMoveEvent=T,this.lastRawMoveEventInfo=A,this.lastMoveEventInfo=Zo(A,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(T,A)=>{this.end();const{onEnd:E,onSessionEnd:C,resumeAnimation:N}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const V=Af(T.type==="pointercancel"?this.lastMoveEventInfo:Zo(A,this.transformPagePoint),this.history);this.startEvent&&E&&E(T,V),C&&C(T,V)},!Xd(a))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=u||window;const m=Ts(a),g=Zo(m,this.transformPagePoint),{point:y}=g,{timestamp:b}=re;this.history=[{...y,timestamp:b}];const{onSessionStart:S}=s;S&&S(a,Af(g,this.history)),this.removeListeners=bs(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let s=a.parentElement;for(;s;){const o=getComputedStyle(s);(L0.has(o.overflowX)||L0.has(o.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(a){const s=this.scrollPositions.get(a);if(!s)return;const o=a===window,u=o?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},d={x:u.x-s.x,y:u.y-s.y};d.x===0&&d.y===0||(o?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(a,u),zt.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ya(this.updatePoint)}}function Zo(n,a){return a?{point:a(n.point)}:n}function V0(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Af({point:n},a){return{point:n,delta:V0(n,Mx(a)),offset:V0(n,M3(a)),velocity:D3(a,.1)}}function M3(n){return n[0]}function Mx(n){return n[n.length-1]}function D3(n,a){if(n.length<2)return{x:0,y:0};let s=n.length-1,o=null;const u=Mx(n);for(;s>=0&&(o=n[s],!(u.timestamp-o.timestamp>_e(a)));)s--;if(!o)return{x:0,y:0};o===n[0]&&n.length>2&&u.timestamp-o.timestamp>_e(a)*2&&(o=n[1]);const d=Ze(u.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(u.x-o.x)/d,y:(u.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function z3(n,{min:a,max:s},o){return a!==void 0&&n<a?n=o?Ut(a,n,o.min):Math.max(n,a):s!==void 0&&n>s&&(n=o?Ut(s,n,o.max):Math.min(n,s)),n}function _0(n,a,s){return{min:a!==void 0?n.min+a:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function O3(n,{top:a,left:s,bottom:o,right:u}){return{x:_0(n.x,s,u),y:_0(n.y,a,o)}}function k0(n,a){let s=a.min-n.min,o=a.max-n.max;return a.max-a.min<n.max-n.min&&([s,o]=[o,s]),{min:s,max:o}}function R3(n,a){return{x:k0(n.x,a.x),y:k0(n.y,a.y)}}function L3(n,a){let s=.5;const o=ge(n),u=ge(a);return u>o?s=fs(a.min,a.max-o,n.min):o>u&&(s=fs(n.min,n.max-u,a.min)),pn(0,1,s)}function V3(n,a){const s={};return a.min!==void 0&&(s.min=a.min-n.min),a.max!==void 0&&(s.max=a.max-n.min),s}const pd=.35;function _3(n=pd){return n===!1?n=0:n===!0&&(n=pd),{x:U0(n,"left","right"),y:U0(n,"top","bottom")}}function U0(n,a,s){return{min:B0(n,a),max:B0(n,s)}}function B0(n,a){return typeof n=="number"?n:n[a]||0}const k3=new WeakMap;class U3{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:s=!1,distanceThreshold:o}={}){const{presenceContext:u}=this.visualElement;if(u&&u.isPresent===!1)return;const d=b=>{s&&this.snapToCursor(Ts(b).point),this.stopAnimation()},f=(b,S)=>{const{drag:T,dragPropagation:A,onDragStart:E}=this.getProps();if(T&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fA(T),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(N=>{let V=this.getAxisMotionValue(N).get()||0;if(mn.test(V)){const{projection:_}=this.visualElement;if(_&&_.layout){const H=_.layout.layoutBox[N];H&&(V=ge(H)*(parseFloat(V)/100))}}this.originPoint[N]=V}),E&&zt.update(()=>E(b,S),!1,!0),sd(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},h=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:T,dragDirectionLock:A,onDirectionLock:E,onDrag:C}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:N}=S;if(A&&this.currentDirection===null){this.currentDirection=H3(N),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",S.point,N),this.updateAxis("y",S.point,N),this.visualElement.render(),C&&zt.update(()=>C(b,S),!1,!0)},m=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Cx(a,{onSessionStart:d,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:Nx(this.visualElement),element:this.visualElement.current})}stop(a,s){const o=a||this.latestPointerEvent,u=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!u||!o)return;const{velocity:f}=u;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&zt.postRender(()=>h(o,u))}cancel(){this.isDragging=!1;const{projection:a,animationState:s}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,s,o){const{drag:u}=this.getProps();if(!o||!Qo(a,u,this.currentDirection))return;const d=this.getAxisMotionValue(a);let f=this.originPoint[a]+o[a];this.constraints&&this.constraints[a]&&(f=z3(f,this.constraints[a],this.elastic[a])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:a,dragElastic:s}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,u=this.constraints;a&&$i(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&o?this.constraints=O3(o.layoutBox,a):this.constraints=!1,this.elastic=_3(s),u!==this.constraints&&!$i(a)&&o&&this.constraints&&!this.hasMutatedConstraints&&fn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=V3(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:s}=this.getProps();if(!a||!$i(a))return!1;const o=a.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=HA(o,u.root,this.visualElement.getTransformPagePoint());let f=R3(u.layout.layoutBox,d);if(s){const h=s(kA(f));this.hasMutatedConstraints=!!h,h&&(f=Zb(h))}return f}startAnimation(a){const{drag:s,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=fn(y=>{if(!Qo(y,s,this.currentDirection))return;let b=m&&m[y]||{};(f===!0||f===y)&&(b={min:0,max:0});const S=u?200:1e6,T=u?40:1e7,A={type:"inertia",velocity:o?a[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(y,A)});return Promise.all(g).then(h)}startAxisValueAnimation(a,s){const o=this.getAxisMotionValue(a);return sd(this.visualElement,a),o.start(Hd(a,o,0,s,this.visualElement,!1))}stopAnimation(){fn(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const s=`_drag${a.toUpperCase()}`,o=this.visualElement.getProps(),u=o[s];return u||this.visualElement.getValue(a,(o.initial?o.initial[a]:void 0)||0)}snapToCursor(a){fn(s=>{const{drag:o}=this.getProps();if(!Qo(s,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(s);if(u&&u.layout){const{min:f,max:h}=u.layout.layoutBox[s],m=d.get()||0;d.set(a[s]-Ut(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:s}=this.getProps(),{projection:o}=this.visualElement;if(!$i(s)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};fn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();u[f]=L3({min:m,max:m},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),fn(f=>{if(!Qo(f,a,null))return;const h=this.getAxisMotionValue(f),{min:m,max:g}=this.constraints[f];h.set(Ut(m,g,u[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;k3.set(this.visualElement,this);const a=this.visualElement.current,s=us(a,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),S=g.target,T=S!==a&&vA(S);y&&b&&!T&&this.start(g)});let o;const u=()=>{const{dragConstraints:g}=this.getProps();$i(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),o||(o=B3(a,g.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",u);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),zt.read(u);const h=ms(window,"resize",()=>this.scalePositionWithinConstraints()),m=d.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(fn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=g[b].translate,S.set(S.get()+g[b].translate))}),this.visualElement.render())}));return()=>{h(),s(),f(),m&&m(),o&&o()}}getProps(){const a=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:f=pd,dragMomentum:h=!0}=a;return{...a,drag:s,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:f,dragMomentum:h}}}function H0(n){let a=!0;return()=>{if(a){a=!1;return}n()}}function B3(n,a,s){const o=Zv(n,H0(s)),u=Zv(a,H0(s));return()=>{o(),u()}}function Qo(n,a,s){return(a===!0||a===n)&&(s===null||s===n)}function H3(n,a=10){let s=null;return Math.abs(n.y)>a?s="y":Math.abs(n.x)>a&&(s="x"),s}class $3 extends Sa{constructor(a){super(a),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new U3(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}update(){const{dragControls:a}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};a!==s&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const jf=n=>(a,s)=>{n&&zt.update(()=>n(a,s),!1,!0)};class G3 extends Sa{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(a){this.session=new Cx(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nx(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:s,onPan:o,onPanEnd:u}=this.node.getProps();return{onSessionStart:jf(a),onStart:jf(s),onMove:jf(o),onEnd:(d,f)=>{delete this.session,u&&zt.postRender(()=>u(d,f))}}}mount(){this.removePointerDownListener=us(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Nf=!1;class Y3 extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o,layoutId:u}=this.props,{projection:d}=a;d&&(s.group&&s.group.add(d),o&&o.register&&u&&o.register(d),Nf&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:s,visualElement:o,drag:u,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,a.layoutDependency!==s&&f.setOptions({...f.options,layoutDependency:s}),Nf=!0,u||a.layoutDependency!==s||s===void 0||a.isPresent!==d?f.willUpdate():this.safeToRemove(),a.isPresent!==d&&(d?f.promote():f.relegate()||zt.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:s}=this.props,{projection:o}=a;o&&(o.options.layoutAnchor=s,o.root.didUpdate(),qd.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:s,switchLayoutGroup:o}=this.props,{projection:u}=a;Nf=!0,u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),o&&o.deregister&&o.deregister(u))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Dx(n){const[a,s]=Kj(),o=w.useContext(fr);return p.jsx(Y3,{...n,layoutGroup:o,switchLayoutGroup:w.useContext(Ax),isPresent:a,safeToRemove:s})}const q3={pan:{Feature:G3},drag:{Feature:$3,ProjectionNode:px,MeasureLayout:Dx}};function $0(n,a,s){const{props:o}=n;n.animationState&&o.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,d=o[u];d&&zt.postRender(()=>d(a,Ts(a)))}class X3 extends Sa{mount(){const{current:a}=this.node;a&&(this.unmount=hA(a,(s,o)=>($0(this.node,o,"Start"),u=>$0(this.node,u,"End"))))}unmount(){}}class K3 extends Sa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=bs(ms(this.node.current,"focus",()=>this.onFocus()),ms(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G0(n,a,s){const{props:o}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&o.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),d=o[u];d&&zt.postRender(()=>d(a,Ts(a)))}class F3 extends Sa{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:s,propagate:o}=this.node.props;this.unmount=bA(a,(u,d)=>(G0(this.node,d,"Start"),(f,{success:h})=>G0(this.node,f,h?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const gd=new WeakMap,Cf=new WeakMap,Z3=n=>{const a=gd.get(n.target);a&&a(n)},Q3=n=>{n.forEach(Z3)};function P3({root:n,...a}){const s=n||document;Cf.has(s)||Cf.set(s,{});const o=Cf.get(s),u=JSON.stringify(a);return o[u]||(o[u]=new IntersectionObserver(Q3,{root:n,...a})),o[u]}function J3(n,a,s){const o=P3(a);return gd.set(n,s),o.observe(n),()=>{gd.delete(n),o.unobserve(n)}}const W3={some:0,all:1};class I3 extends Sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:a={}}=this.node.getProps(),{root:s,margin:o,amount:u="some",once:d}=a,f={root:s?s.current:void 0,rootMargin:o,threshold:typeof u=="number"?u:W3[u]},h=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:b,onViewportLeave:S}=this.node.getProps(),T=y?b:S;T&&T(g)};this.stopObserver=J3(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:s}=this.node;["amount","margin","root"].some(tN(a,s))&&this.startObserver()}unmount(){var a;(a=this.stopObserver)==null||a.call(this),this.hasEnteredView=!1,this.isInView=!1}}function tN({viewport:n={}},{viewport:a={}}={}){return s=>n[s]!==a[s]}const eN={inView:{Feature:I3},tap:{Feature:F3},focus:{Feature:K3},hover:{Feature:X3}},nN={layout:{ProjectionNode:px,MeasureLayout:Dx}},aN={...j3,...eN,...q3,...nN},zx=S3(aN,T3),Vr=w.forwardRef(function(a,s){return p.jsx(xw,{children:p.jsx("a",{...a,ref:s})})}),Jl={base:["relative isolate inline-flex items-baseline justify-center gap-x-2 rounded-lg border text-base/6 font-semibold","px-[calc(--spacing(3.5)-1px)] py-[calc(--spacing(2.5)-1px)] sm:px-[calc(--spacing(3)-1px)] sm:py-[calc(--spacing(1.5)-1px)] sm:text-sm/6","focus:not-data-focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500","data-disabled:opacity-50","*:data-[slot=icon]:-mx-0.5 *:data-[slot=icon]:my-0.5 *:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) sm:*:data-[slot=icon]:my-1 sm:*:data-[slot=icon]:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-hover:[--btn-icon:ButtonText]"],solid:["border-transparent bg-(--btn-border)","dark:bg-(--btn-bg)","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(var(--radius-lg)-1px)] before:bg-(--btn-bg)","before:shadow-sm","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(var(--radius-lg)-1px)]","after:shadow-[inset_0_1px_--theme(--color-white/15%)]","data-active:after:bg-(--btn-hover-overlay) data-hover:after:bg-(--btn-hover-overlay)","dark:after:-inset-px dark:after:rounded-lg","data-disabled:before:shadow-none data-disabled:after:shadow-none"],outline:["border-zinc-950/10 text-zinc-950 data-active:bg-zinc-950/2.5 data-hover:bg-zinc-950/2.5","dark:border-white/15 dark:text-white dark:[--btn-bg:transparent] dark:data-active:bg-white/5 dark:data-hover:bg-white/5","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],plain:["border-transparent text-zinc-950 data-active:bg-zinc-950/5 data-hover:bg-zinc-950/5","dark:text-white dark:data-active:bg-white/10 dark:data-hover:bg-white/10","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],colors:{"dark/zinc":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-white dark:[--btn-bg:var(--color-zinc-600)] dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],light:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/2.5 data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:text-white dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-500)] data-active:[--btn-icon:var(--color-zinc-700)] data-hover:[--btn-icon:var(--color-zinc-700)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],"dark/white":["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:text-zinc-950 dark:[--btn-bg:white] dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)] dark:[--btn-icon:var(--color-zinc-500)] dark:data-active:[--btn-icon:var(--color-zinc-400)] dark:data-hover:[--btn-icon:var(--color-zinc-400)]"],dark:["text-white [--btn-bg:var(--color-zinc-900)] [--btn-border:var(--color-zinc-950)]/90 [--btn-hover-overlay:var(--color-white)]/10","dark:[--btn-hover-overlay:var(--color-white)]/5 dark:[--btn-bg:var(--color-zinc-800)]","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],white:["text-zinc-950 [--btn-bg:white] [--btn-border:var(--color-zinc-950)]/10 [--btn-hover-overlay:var(--color-zinc-950)]/2.5 data-active:[--btn-border:var(--color-zinc-950)]/15 data-hover:[--btn-border:var(--color-zinc-950)]/15","dark:[--btn-hover-overlay:var(--color-zinc-950)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-500)] data-hover:[--btn-icon:var(--color-zinc-500)]"],zinc:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-zinc-600)] [--btn-border:var(--color-zinc-700)]/90","dark:[--btn-hover-overlay:var(--color-white)]/5","[--btn-icon:var(--color-zinc-400)] data-active:[--btn-icon:var(--color-zinc-300)] data-hover:[--btn-icon:var(--color-zinc-300)]"],indigo:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-indigo-500)] [--btn-border:var(--color-indigo-600)]/90","[--btn-icon:var(--color-indigo-300)] data-active:[--btn-icon:var(--color-indigo-200)] data-hover:[--btn-icon:var(--color-indigo-200)]"],cyan:["text-cyan-950 [--btn-bg:var(--color-cyan-300)] [--btn-border:var(--color-cyan-400)]/80 [--btn-hover-overlay:var(--color-white)]/25","[--btn-icon:var(--color-cyan-500)]"],red:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-red-600)] [--btn-border:var(--color-red-700)]/90","[--btn-icon:var(--color-red-300)] data-active:[--btn-icon:var(--color-red-200)] data-hover:[--btn-icon:var(--color-red-200)]"],orange:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-orange-500)] [--btn-border:var(--color-orange-600)]/90","[--btn-icon:var(--color-orange-300)] data-active:[--btn-icon:var(--color-orange-200)] data-hover:[--btn-icon:var(--color-orange-200)]"],amber:["text-amber-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-amber-400)] [--btn-border:var(--color-amber-500)]/80","[--btn-icon:var(--color-amber-600)]"],yellow:["text-yellow-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-yellow-300)] [--btn-border:var(--color-yellow-400)]/80","[--btn-icon:var(--color-yellow-600)] data-active:[--btn-icon:var(--color-yellow-700)] data-hover:[--btn-icon:var(--color-yellow-700)]"],lime:["text-lime-950 [--btn-hover-overlay:var(--color-white)]/25 [--btn-bg:var(--color-lime-300)] [--btn-border:var(--color-lime-400)]/80","[--btn-icon:var(--color-lime-600)] data-active:[--btn-icon:var(--color-lime-700)] data-hover:[--btn-icon:var(--color-lime-700)]"],green:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-green-600)] [--btn-border:var(--color-green-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],emerald:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-emerald-600)] [--btn-border:var(--color-emerald-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],teal:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-teal-600)] [--btn-border:var(--color-teal-700)]/90","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],sky:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-sky-500)] [--btn-border:var(--color-sky-600)]/80","[--btn-icon:var(--color-white)]/60 data-active:[--btn-icon:var(--color-white)]/80 data-hover:[--btn-icon:var(--color-white)]/80"],blue:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-blue-600)] [--btn-border:var(--color-blue-700)]/90","[--btn-icon:var(--color-blue-400)] data-active:[--btn-icon:var(--color-blue-300)] data-hover:[--btn-icon:var(--color-blue-300)]"],violet:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-violet-500)] [--btn-border:var(--color-violet-600)]/90","[--btn-icon:var(--color-violet-300)] data-active:[--btn-icon:var(--color-violet-200)] data-hover:[--btn-icon:var(--color-violet-200)]"],purple:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-purple-500)] [--btn-border:var(--color-purple-600)]/90","[--btn-icon:var(--color-purple-300)] data-active:[--btn-icon:var(--color-purple-200)] data-hover:[--btn-icon:var(--color-purple-200)]"],fuchsia:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-fuchsia-500)] [--btn-border:var(--color-fuchsia-600)]/90","[--btn-icon:var(--color-fuchsia-300)] data-active:[--btn-icon:var(--color-fuchsia-200)] data-hover:[--btn-icon:var(--color-fuchsia-200)]"],pink:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-pink-500)] [--btn-border:var(--color-pink-600)]/90","[--btn-icon:var(--color-pink-300)] data-active:[--btn-icon:var(--color-pink-200)] data-hover:[--btn-icon:var(--color-pink-200)]"],rose:["text-white [--btn-hover-overlay:var(--color-white)]/10 [--btn-bg:var(--color-rose-500)] [--btn-border:var(--color-rose-600)]/90","[--btn-icon:var(--color-rose-300)] data-active:[--btn-icon:var(--color-rose-200)] data-hover:[--btn-icon:var(--color-rose-200)]"]}};w.forwardRef(function({color:a,outline:s,plain:o,className:u,children:d,...f},h){let m=Kt(u,Jl.base,s?Jl.outline:o?Jl.plain:Kt(Jl.solid,Jl.colors[a??"dark/zinc"]));return typeof f.href=="string"?p.jsx(Vr,{...f,className:m,ref:h,children:p.jsx(ba,{children:d})}):p.jsx(vs,{...f,className:Kt(m,"cursor-default"),ref:h,children:p.jsx(ba,{children:d})})});function ba({children:n}){return p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"absolute top-1/2 left-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 pointer-fine:hidden","aria-hidden":"true"}),n]})}function iN({className:n,...a}){return p.jsx("nav",{...a,className:Kt(n,"flex flex-1 items-center gap-4 py-2.5")})}function lN({className:n,...a}){let s=w.useId();return p.jsx(yx,{id:s,children:p.jsx("div",{...a,className:Kt(n,"flex items-center gap-3")})})}function sN({className:n,...a}){return p.jsx("div",{"aria-hidden":"true",...a,className:Kt(n,"-ml-4 flex-1")})}const Id=w.forwardRef(function({current:a,className:s,children:o,...u},d){let f=Kt("relative flex min-w-0 items-center gap-3 rounded-lg p-2 text-left text-base/6 font-medium text-zinc-950 sm:text-sm/5","*:data-[slot=icon]:size-6 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:fill-zinc-500 sm:*:data-[slot=icon]:size-5","*:not-nth-2:last:data-[slot=icon]:ml-auto *:not-nth-2:last:data-[slot=icon]:size-5 sm:*:not-nth-2:last:data-[slot=icon]:size-4","*:data-[slot=avatar]:-m-0.5 *:data-[slot=avatar]:size-7 *:data-[slot=avatar]:[--avatar-radius:var(--radius-md)] sm:*:data-[slot=avatar]:size-6","data-hover:bg-zinc-950/5 data-hover:*:data-[slot=icon]:fill-zinc-950","data-active:bg-zinc-950/5 data-active:*:data-[slot=icon]:fill-zinc-950","dark:text-white dark:*:data-[slot=icon]:fill-zinc-400","dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white","dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white");return p.jsxs("span",{className:Kt(s,"relative"),children:[a&&p.jsx(zx.span,{layoutId:"current-indicator",className:"absolute inset-x-2 -bottom-2.5 h-0.5 rounded-full bg-zinc-950 dark:bg-white"}),typeof u.href=="string"?p.jsx(Vr,{...u,className:f,"data-current":a?"true":void 0,ref:d,children:p.jsx(ba,{children:o})}):p.jsx(vs,{...u,className:Kt("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:p.jsx(ba,{children:o})})]})});function oN(){return p.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:p.jsx("path",{d:"M2 6.75C2 6.33579 2.33579 6 2.75 6H17.25C17.6642 6 18 6.33579 18 6.75C18 7.16421 17.6642 7.5 17.25 7.5H2.75C2.33579 7.5 2 7.16421 2 6.75ZM2 13.25C2 12.8358 2.33579 12.5 2.75 12.5H17.25C17.6642 12.5 18 12.8358 18 13.25C18 13.6642 17.6642 14 17.25 14H2.75C2.33579 14 2 13.6642 2 13.25Z"})})}function rN(){return p.jsx("svg",{"data-slot":"icon",viewBox:"0 0 20 20","aria-hidden":"true",children:p.jsx("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"})})}function uN({open:n,close:a,children:s}){return p.jsxs(aE,{open:n,onClose:a,className:"lg:hidden",children:[p.jsx(eE,{transition:!0,className:"fixed inset-0 bg-black/30 transition data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in"}),p.jsx(Gy,{transition:!0,className:"fixed inset-y-0 w-full max-w-80 p-2 transition duration-300 ease-in-out data-closed:-translate-x-full",children:p.jsxs("div",{className:"flex h-full flex-col rounded-lg bg-ouro-deep shadow-xl ring-1 ring-ouro-moss/40",children:[p.jsx("div",{className:"-mb-3 px-4 pt-3",children:p.jsx(vy,{as:Id,"aria-label":"Close navigation",children:p.jsx(rN,{})})}),s]})})]})}function cN({navbar:n,sidebar:a,children:s}){let[o,u]=w.useState(!1);return p.jsxs("div",{className:"relative isolate flex min-h-svh w-full bg-ouro-void max-lg:flex-col",children:[p.jsx("div",{className:"fixed inset-y-0 left-0 w-64 max-lg:hidden border-r border-zinc-200 dark:border-ouro-moss/30",children:a}),p.jsx(uN,{open:o,close:()=>u(!1),children:a}),p.jsxs("header",{className:"flex items-center px-4 lg:hidden",children:[p.jsx("div",{className:"py-2.5",children:p.jsx(Id,{onClick:()=>u(!0),"aria-label":"Open navigation",children:p.jsx(oN,{})})}),p.jsx("div",{className:"min-w-0 flex-1",children:n})]}),p.jsx("main",{className:"flex flex-1 flex-col lg:min-w-0 lg:pl-64",children:p.jsx("div",{className:"grow bg-ouro-deep p-4 lg:p-8",children:p.jsx("div",{className:"mx-auto max-w-6xl",children:s})})})]})}function fN({className:n,...a}){return p.jsx("nav",{...a,className:Kt(n,"flex h-full min-h-0 flex-col")})}function dN({className:n,...a}){return p.jsx("div",{...a,className:Kt(n,"flex flex-col border-b border-zinc-950/5 p-4 dark:border-white/5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function hN({className:n,...a}){return p.jsx("div",{...a,className:Kt(n,"flex flex-1 flex-col overflow-y-auto p-4 [&>[data-slot=section]+[data-slot=section]]:mt-8")})}function mN({className:n,...a}){return p.jsx("div",{...a,className:Kt(n,"flex flex-col border-t border-zinc-950/5 p-4 dark:border-white/5 [&>[data-slot=section]+[data-slot=section]]:mt-2.5")})}function Y0({className:n,...a}){let s=w.useId();return p.jsx(yx,{id:s,children:p.jsx("div",{...a,"data-slot":"section",className:Kt(n,"flex flex-col gap-0.5")})})}function q0({className:n,...a}){return p.jsx("h3",{...a,className:Kt(n,"mb-1 px-2 text-xs/6 font-medium text-zinc-500 dark:text-zinc-400")})}const pN=w.forwardRef(function({current:a,className:s,children:o,...u},d){let f=Kt("flex w-full items-center gap-3 rounded-lg px-2 py-2.5 text-left text-base/6 font-medium text-zinc-950 sm:py-2 sm:text-sm/5","*:data-[slot=icon]:size-6 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:fill-zinc-500 sm:*:data-[slot=icon]:size-5","*:last:data-[slot=icon]:ml-auto *:last:data-[slot=icon]:size-5 sm:*:last:data-[slot=icon]:size-4","*:data-[slot=avatar]:-m-0.5 *:data-[slot=avatar]:size-7 sm:*:data-[slot=avatar]:size-6","data-hover:bg-zinc-950/5 data-hover:*:data-[slot=icon]:fill-zinc-950","data-active:bg-zinc-950/5 data-active:*:data-[slot=icon]:fill-zinc-950","data-current:*:data-[slot=icon]:fill-zinc-950","dark:text-white dark:*:data-[slot=icon]:fill-zinc-400","dark:data-hover:bg-white/5 dark:data-hover:*:data-[slot=icon]:fill-white","dark:data-active:bg-white/5 dark:data-active:*:data-[slot=icon]:fill-white","dark:data-current:*:data-[slot=icon]:fill-white");return p.jsxs("span",{className:Kt(s,"relative"),children:[a&&p.jsx(zx.span,{layoutId:"current-indicator",className:"absolute inset-y-2 -left-4 w-0.5 rounded-full bg-zinc-950 dark:bg-white"}),typeof u.href=="string"?p.jsx(vy,{as:Vr,...u,className:f,"data-current":a?"true":void 0,ref:d,children:p.jsx(ba,{children:o})}):p.jsx(vs,{...u,className:Kt("cursor-default",f),"data-current":a?"true":void 0,ref:d,children:p.jsx(ba,{children:o})})]})});function gN({className:n,...a}){return p.jsx("span",{...a,className:Kt(n,"truncate")})}const vN={red:"bg-red-500/15 text-red-700 group-data-hover:bg-red-500/25 dark:bg-red-500/10 dark:text-red-400 dark:group-data-hover:bg-red-500/20",orange:"bg-orange-500/15 text-orange-700 group-data-hover:bg-orange-500/25 dark:bg-orange-500/10 dark:text-orange-400 dark:group-data-hover:bg-orange-500/20",amber:"bg-amber-400/20 text-amber-700 group-data-hover:bg-amber-400/30 dark:bg-amber-400/10 dark:text-amber-400 dark:group-data-hover:bg-amber-400/15",yellow:"bg-yellow-400/20 text-yellow-700 group-data-hover:bg-yellow-400/30 dark:bg-yellow-400/10 dark:text-yellow-300 dark:group-data-hover:bg-yellow-400/15",lime:"bg-lime-400/20 text-lime-700 group-data-hover:bg-lime-400/30 dark:bg-lime-400/10 dark:text-lime-300 dark:group-data-hover:bg-lime-400/15",green:"bg-green-500/15 text-green-700 group-data-hover:bg-green-500/25 dark:bg-green-500/10 dark:text-green-400 dark:group-data-hover:bg-green-500/20",emerald:"bg-emerald-500/15 text-emerald-700 group-data-hover:bg-emerald-500/25 dark:bg-emerald-500/10 dark:text-emerald-400 dark:group-data-hover:bg-emerald-500/20",teal:"bg-teal-500/15 text-teal-700 group-data-hover:bg-teal-500/25 dark:bg-teal-500/10 dark:text-teal-300 dark:group-data-hover:bg-teal-500/20",cyan:"bg-cyan-400/20 text-cyan-700 group-data-hover:bg-cyan-400/30 dark:bg-cyan-400/10 dark:text-cyan-300 dark:group-data-hover:bg-cyan-400/15",sky:"bg-sky-500/15 text-sky-700 group-data-hover:bg-sky-500/25 dark:bg-sky-500/10 dark:text-sky-300 dark:group-data-hover:bg-sky-500/20",blue:"bg-blue-500/15 text-blue-700 group-data-hover:bg-blue-500/25 dark:text-blue-400 dark:group-data-hover:bg-blue-500/25",indigo:"bg-indigo-500/15 text-indigo-700 group-data-hover:bg-indigo-500/25 dark:text-indigo-400 dark:group-data-hover:bg-indigo-500/20",violet:"bg-violet-500/15 text-violet-700 group-data-hover:bg-violet-500/25 dark:text-violet-400 dark:group-data-hover:bg-violet-500/20",purple:"bg-purple-500/15 text-purple-700 group-data-hover:bg-purple-500/25 dark:text-purple-400 dark:group-data-hover:bg-purple-500/20",fuchsia:"bg-fuchsia-400/15 text-fuchsia-700 group-data-hover:bg-fuchsia-400/25 dark:bg-fuchsia-400/10 dark:text-fuchsia-400 dark:group-data-hover:bg-fuchsia-400/20",pink:"bg-pink-400/15 text-pink-700 group-data-hover:bg-pink-400/25 dark:bg-pink-400/10 dark:text-pink-400 dark:group-data-hover:bg-pink-400/20",rose:"bg-rose-400/15 text-rose-700 group-data-hover:bg-rose-400/25 dark:bg-rose-400/10 dark:text-rose-400 dark:group-data-hover:bg-rose-400/20",zinc:"bg-zinc-600/10 text-zinc-700 group-data-hover:bg-zinc-600/20 dark:bg-white/5 dark:text-zinc-400 dark:group-data-hover:bg-white/10"};function Yt({color:n="zinc",className:a,...s}){return p.jsx("span",{...s,className:Kt(a,"inline-flex items-center gap-x-1.5 rounded-md px-1.5 py-0.5 text-sm/5 font-medium sm:text-xs/5 forced-colors:outline",vN[n])})}w.forwardRef(function({color:a="zinc",className:s,children:o,...u},d){let f=Kt(s,"group relative inline-flex rounded-md focus:not-data-focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500");return typeof u.href=="string"?p.jsx(Vr,{...u,className:f,ref:d,children:p.jsx(ba,{children:p.jsx(Yt,{color:a,children:o})})}):p.jsx(vs,{...u,className:f,ref:d,children:p.jsx(ba,{children:p.jsx(Yt,{color:a,children:o})})})});const yN={"owed-reply":"red","blocking-obligation":"red","broken-return":"red","stale-delegation":"yellow","return-ready":"lime","overdue-habit":"yellow"},bN={"owed-reply":"owed reply","blocking-obligation":"blocking","broken-return":"broken return","stale-delegation":"stale","return-ready":"ready to return","overdue-habit":"overdue"},xN={"owed-reply":"Someone spoke last and is waiting for your response","blocking-obligation":"This obligation is open and blocking forward progress","broken-return":"Work was done but the result was never returned to the requester","stale-delegation":"This was delegated to you and hasn't been addressed","return-ready":"The result is ready — deliver it to close the loop","overdue-habit":"This routine is past its scheduled cadence"},SN=new Set(["stale-delegation"]),TN=new Set(["owed-reply","blocking-obligation","broken-return","return-ready","overdue-habit"]);function wN({view:n,deskPrefs:a}){const s=Qi(),[o,u]=w.useState(null),d=n.agent,f=n.work,h=n.inner,m=n.activity,g=d.degraded,y=d.attention,b=f.tasks,S=f.obligations,T=f.sessions,A=f.coding,E=d.senses??[],C=f.bridges??[];return w.useEffect(()=>{ce(`/agents/${encodeURIComponent(d.agentName)}/needs-me`).then(u)},[d.agentName]),p.jsxs("div",{className:"space-y-6",children:[o&&o.items.length>0&&(()=>{const N=o.items.filter(_=>TN.has(_.urgency)),V=o.items.filter(_=>SN.has(_.urgency));return p.jsxs("div",{className:"space-y-3",children:[N.length>0&&p.jsxs("div",{className:"rounded-xl bg-ouro-fang/5 p-4 ring-1 ring-ouro-fang/15",children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-fang",children:["Action now (",N.length,")"]}),p.jsx("div",{className:"mt-2 space-y-1.5",children:N.map((_,H)=>p.jsx(X0,{item:_,nav:s,agentName:d.agentName,onDismiss:()=>{u(X=>X&&{items:X.items.filter((tt,F)=>o.items.indexOf(_)!==F)})}},`action-${H}`))})]}),V.length>0&&p.jsxs("div",{className:"rounded-xl bg-ouro-gold/5 p-4 ring-1 ring-ouro-gold/15",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-gold",children:["Stale (",V.length,")"]}),p.jsx("button",{onClick:async()=>{var _;for(const H of V)(_=H.ref)!=null&&_.focus&&await fetch(`/outlook/api/agents/${encodeURIComponent(d.agentName)}/dismiss-obligation`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({obligationId:H.ref.focus})});ce(`/agents/${encodeURIComponent(d.agentName)}/needs-me`).then(u)},className:"text-xs text-ouro-gold underline underline-offset-2 hover:text-ouro-bone transition-colors",children:"Clear all stale"})]}),p.jsx("div",{className:"mt-2 space-y-1.5",children:V.map((_,H)=>p.jsx(X0,{item:_,nav:s,agentName:d.agentName,onDismiss:()=>{ce(`/agents/${encodeURIComponent(d.agentName)}/needs-me`).then(u)}},`stale-${H}`))})]})]})})(),(a==null?void 0:a.carrying)&&p.jsxs("div",{className:"rounded-xl bg-ouro-moss/10 p-4 ring-1 ring-ouro-glow/8",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"What I'm carrying"}),p.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-bone",children:a.carrying})]}),(()=>{const N=(a==null?void 0:a.pinnedConstellations)??[];return N.length===0?null:p.jsxs("div",{children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Pinned threads"}),p.jsx("div",{className:"mt-2 space-y-2",children:N.map((V,_)=>p.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[p.jsx("p",{className:"font-medium text-ouro-bone",children:V.label}),p.jsxs("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[(V.friendIds??[]).map(H=>p.jsxs("button",{onClick:()=>s({tab:"sessions"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["friend:",H.slice(0,8),"…"]},H)),(V.taskRefs??[]).map(H=>p.jsxs("button",{onClick:()=>s({tab:"work"}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["task:",H]},H)),(V.bridgeIds??[]).map(H=>p.jsxs("button",{onClick:()=>s({tab:"connections",focus:H}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2",children:["bridge:",H.slice(0,8),"…"]},H))]})]},_))})]})})(),p.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10 sm:p-5",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Center of gravity"}),p.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone sm:text-2xl",children:y.label}),p.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:[d.agentName," has"," ",p.jsxs(Po,{tab:"work",children:[b.liveCount," live tasks"]}),","," ",p.jsxs(Po,{tab:"work",children:[S.openCount," obligations"]}),","," ",p.jsxs(Po,{tab:"work",children:[A.activeCount," coding lanes"]}),", and"," ",p.jsxs(Po,{tab:"sessions",children:[T.liveCount," live sessions"]}),"."]}),g.status==="degraded"&&g.issues.length>0&&p.jsxs("div",{className:"mt-3 space-y-1",children:[g.issues.slice(0,5).map((N,V)=>p.jsxs("button",{onClick:()=>s({tab:"runtime"}),className:"flex w-full items-start gap-2 rounded-lg bg-ouro-fang/5 px-3 py-2 text-left text-sm ring-1 ring-ouro-fang/10 hover:ring-ouro-fang/25 transition-colors",children:[p.jsx("span",{className:"mt-0.5 h-2 w-2 shrink-0 rounded-full bg-ouro-fang"}),p.jsxs("span",{className:"text-ouro-mist",children:[p.jsx("span",{className:"font-semibold text-ouro-fang",children:N.code}),p.jsxs("span",{className:"text-ouro-shadow",children:[" — ",nn(N.detail,80)]})]})]},V)),g.issues.length>5&&p.jsxs("button",{onClick:()=>s({tab:"runtime"}),className:"text-xs text-ouro-glow underline underline-offset-2",children:["+",g.issues.length-5," more issues"]})]})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[p.jsx(Jo,{label:"Tasks",value:b.liveCount,sub:`${b.blockedCount} blocked`,onClick:()=>s({tab:"work"})}),p.jsx(Jo,{label:"Obligations",value:S.openCount,sub:`${T.liveCount} sessions`,onClick:()=>s({tab:"work"})}),p.jsx(Jo,{label:"Coding",value:A.activeCount,sub:`${A.blockedCount} blocked`,onClick:()=>s({tab:"work"})}),p.jsx(Jo,{label:"Inner",value:h.status,sub:nn(h.summary??"",30),onClick:()=>s({tab:"inner"})})]}),p.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[p.jsx(Wo,{title:"Senses",children:E.length>0?p.jsx(EN,{items:E}):p.jsx(Mf,{children:"No active senses"})}),p.jsx(Wo,{title:"Bridges",children:C.length>0?p.jsx("div",{className:"flex flex-wrap gap-1.5",children:C.map(N=>p.jsx("button",{onClick:()=>s({tab:"connections",focus:N}),children:p.jsx(Yt,{color:"lime",children:N})},N))}):p.jsx(Mf,{children:"No active bridges"})})]}),(()=>{var _;const V=(((_=f.obligations)==null?void 0:_.items)??[]).filter(H=>H.status==="fulfilled");return V.length===0?null:p.jsx(Wo,{title:"Recently closed",children:p.jsx("div",{className:"space-y-1",children:V.slice(0,3).map((H,X)=>p.jsxs("div",{className:"flex items-center gap-2 rounded-lg px-3 py-2 bg-ouro-glow/5 ring-1 ring-ouro-glow/10",children:[p.jsx(Yt,{color:"lime",children:"closed"}),p.jsx("p",{className:"text-sm text-ouro-mist truncate",children:nn(H.content,80)}),p.jsx("span",{className:"shrink-0 text-xs text-ouro-shadow",children:Qe(H.updatedAt)})]},X))})})})(),p.jsx(Wo,{title:"Recent activity",children:m.recent.length>0?p.jsx("div",{className:"space-y-1",children:m.recent.map((N,V)=>{const _=N.kind==="coding"||N.kind==="obligation"?"work":N.kind==="session"?"sessions":"inner";return p.jsxs("button",{onClick:()=>s({tab:_}),className:"flex w-full flex-col gap-0.5 rounded-lg px-3 py-2.5 text-left hover:bg-ouro-moss/10 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Yt,{children:N.kind}),p.jsx("span",{className:"text-xs text-ouro-shadow",children:Qe(N.at)})]}),p.jsx("p",{className:"truncate text-sm font-medium text-ouro-bone",children:nn(N.label,100)}),p.jsx("p",{className:"truncate text-xs text-ouro-shadow",children:nn(N.detail,80)})]},V)})}):p.jsx(Mf,{children:"No recent activity yet."})})]})}function X0({item:n,nav:a,agentName:s,onDismiss:o}){var d;const u=n.urgency==="return-ready";return p.jsxs("div",{className:`flex w-full items-start gap-2.5 rounded-lg px-3 py-2.5 text-left ring-1 transition-colors ${u?"bg-ouro-glow/5 ring-ouro-glow/15":"bg-ouro-void/40 ring-ouro-moss/10"}`,children:[p.jsxs("button",{onClick:()=>n.ref&&a({tab:n.ref.tab,focus:n.ref.focus}),className:"flex min-w-0 flex-1 items-start gap-2.5",children:[p.jsx(Yt,{color:yN[n.urgency]??"zinc",children:bN[n.urgency]??n.urgency}),p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("p",{className:`text-sm font-medium ${u?"text-ouro-glow":"text-ouro-bone"}`,children:n.label}),p.jsx("p",{className:"text-xs text-ouro-shadow truncate",children:n.detail}),p.jsx("p",{className:"text-[10px] italic text-ouro-shadow/60 mt-0.5",children:xN[n.urgency]??""})]}),n.ageMs!=null&&p.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:n.ageMs<36e5?`${Math.floor(n.ageMs/6e4)}m`:n.ageMs<864e5?`${Math.floor(n.ageMs/36e5)}h`:`${Math.floor(n.ageMs/864e5)}d`})]}),((d=n.ref)==null?void 0:d.focus)&&p.jsx("button",{onClick:async f=>{f.stopPropagation(),await fetch(`/outlook/api/agents/${encodeURIComponent(s)}/dismiss-obligation`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({obligationId:n.ref.focus})}),o()},className:"shrink-0 text-xs text-ouro-shadow hover:text-ouro-fang transition-colors",title:"Dismiss",children:"✕"})]})}function Po({tab:n,children:a}){const s=Qi();return p.jsx("button",{onClick:()=>s({tab:n}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow transition-colors",children:a})}function Jo({label:n,value:a,sub:s,onClick:o}){return p.jsxs("button",{onClick:o,className:"rounded-xl bg-ouro-void/50 p-3 text-left ring-1 ring-ouro-moss/20 hover:ring-ouro-glow/20 transition-all",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),p.jsx("p",{className:"mt-1 text-xl font-semibold tabular-nums text-ouro-bone",children:a}),p.jsx("p",{className:"mt-0.5 truncate text-xs text-ouro-shadow",children:s})]})}function Wo({title:n,children:a}){return p.jsxs("div",{children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n}),p.jsx("div",{className:"mt-2",children:a})]})}function EN({items:n}){return p.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(a=>p.jsx(Yt,{color:"lime",children:a},a))})}function Mf({children:n}){return p.jsx("p",{className:"text-sm text-ouro-shadow",children:n})}function Ox(n){const a=n.function.name,s=AN(n.function.arguments);return a==="settle"?{kind:"response",name:a,id:n.id,deliveredText:s.answer??null,delegatedThought:null,metadata:s.intent??null,rawArgs:null}:a==="ponder"?{kind:"delegation",name:a,id:n.id,deliveredText:s.say??null,delegatedThought:s.thought??null,metadata:null,rawArgs:null}:a==="rest"?{kind:"rest",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:null,rawArgs:null}:a==="observe"?{kind:"observe",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:s.reason??null,rawArgs:null}:a==="surface"?{kind:"surface",name:a,id:n.id,deliveredText:s.content??null,delegatedThought:null,metadata:s.delegationId??s.friendId??null,rawArgs:null}:{kind:"action",name:a,id:n.id,deliveredText:null,delegatedThought:null,metadata:null,rawArgs:n.function.arguments}}function AN(n){try{const a=JSON.parse(n);if(a&&typeof a=="object")return a}catch{}return{}}const K0={"needs-reply":{color:"red",label:"needs reply"},"on-hold":{color:"yellow",label:"on hold"},monitoring:{color:"zinc",label:"monitoring"},idle:{color:"zinc",label:"idle"}};function jN({agentName:n,focus:a,onFocusConsumed:s,deskPrefs:o}){Qi();const[u,d]=w.useState(null),[f,h]=w.useState(null),[m,g]=w.useState(null),[y,b]=w.useState(!1);w.useEffect(()=>{ce(`/agents/${encodeURIComponent(n)}/sessions`).then(E=>{d(E),a&&(S(a),s==null||s())})},[n,a]);function S(E){if(f===E){h(null),g(null);return}h(E),g(null),b(!0);const[C,N,V]=E.split("/");ce(`/agents/${encodeURIComponent(n)}/sessions/${encodeURIComponent(C)}/${encodeURIComponent(N)}/${encodeURIComponent(V)}`).then(g).catch(()=>g(null)).finally(()=>b(!1))}const T=new Set((o==null?void 0:o.starredFriends)??[]);if(!u)return p.jsx(Rx,{label:"Loading sessions"});const A=[...u.items].sort((E,C)=>{const N=T.has(E.friendId)?0:1,V=T.has(C.friendId)?0:1;return N-V});return p.jsxs("div",{className:"space-y-3",children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:[u.totalCount," sessions · ",u.activeCount," active · ",u.staleCount," stale"]}),p.jsx("div",{className:"space-y-1.5",children:A.map(E=>{var F;const C=T.has(E.friendId),N=`${E.friendId}/${E.channel}/${E.key}`,V=f===N,_=K0[E.replyState]??K0.idle,H=((F=E.lastUsage)==null?void 0:F.total_tokens)??E.estimatedTokens??0,tt=H>0?Math.min(100,Math.round(H/8e4*100)):0;return p.jsxs("div",{children:[p.jsxs("button",{onClick:()=>S(N),className:`flex w-full flex-col gap-1.5 rounded-lg px-3 py-3 text-left transition-colors ring-1 ${V?"bg-ouro-moss/15 ring-ouro-glow/20":"ring-ouro-moss/15 hover:bg-ouro-moss/8"}`,children:[p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[C&&p.jsx("span",{className:"text-ouro-gold",title:"Starred",children:"★"}),p.jsx("span",{className:"truncate font-medium text-ouro-bone",children:E.friendName}),p.jsxs("span",{className:"shrink-0 text-xs text-ouro-shadow",children:["via ",E.channel]}),p.jsx(Yt,{color:_.color,children:_.label})]}),p.jsx("span",{className:"shrink-0 text-xs tabular-nums text-ouro-shadow",children:Qe(E.lastActivityAt)})]}),E.latestUserExcerpt&&p.jsxs("p",{className:"truncate text-xs text-ouro-gold/70",children:[p.jsx("span",{className:"font-mono text-[9px] uppercase tracking-wider",children:"in:"})," ",nn(E.latestUserExcerpt,100)]}),E.latestAssistantExcerpt&&p.jsxs("p",{className:"truncate text-xs text-ouro-glow/60",children:[p.jsx("span",{className:"font-mono text-[9px] uppercase tracking-wider",children:"out:"})," ",nn(E.latestAssistantExcerpt,100)]}),p.jsxs("div",{className:"flex items-center gap-3 text-xs text-ouro-shadow",children:[p.jsxs("span",{className:"tabular-nums",children:[E.messageCount," msgs"]}),E.lastUsage&&p.jsxs("span",{className:"tabular-nums",children:[E.lastUsage.total_tokens.toLocaleString()," tok"]}),tt>0&&p.jsxs("div",{className:"flex items-center gap-1.5 flex-1 max-w-32",title:"Context pressure — steady state oscillates between 80-100%",children:[p.jsx("div",{className:"h-1 flex-1 rounded-full bg-ouro-moss/20",children:p.jsx("div",{className:`h-1 rounded-full transition-all ${tt>100?"bg-ouro-fang":tt>80?"bg-ouro-gold":"bg-ouro-glow"}`,style:{width:`${Math.min(100,tt)}%`}})}),p.jsxs("span",{className:"tabular-nums text-[10px]",children:[tt,"%"]})]})]})]}),V&&p.jsx(NN,{loading:y,transcript:m})]},N)})})]})}function NN({loading:n,transcript:a}){const s=w.useRef(null);return w.useEffect(()=>{a&&s.current&&(s.current.scrollTop=s.current.scrollHeight)},[a]),p.jsxs("div",{ref:s,className:"mt-1 max-h-[70vh] overflow-y-auto rounded-lg bg-ouro-void/60 p-3 ring-1 ring-ouro-moss/15",children:[n&&p.jsx(Rx,{label:"Loading transcript"}),a&&p.jsx(CN,{messages:a.messages,usage:a.lastUsage})]})}function CN({messages:n,usage:a}){const s=n.filter(h=>h.role==="system"),o=n.filter(h=>h.role!=="system"),[u,d]=w.useState(!1),f=new Map;for(const h of o)h.role==="tool"&&h.tool_call_id&&f.set(h.tool_call_id,h);return p.jsxs("div",{className:"space-y-0.5",children:[a&&p.jsxs("p",{className:"pb-2 font-mono text-[10px] text-ouro-shadow",children:[a.input_tokens.toLocaleString()," in · ",a.output_tokens.toLocaleString()," out · ",a.total_tokens.toLocaleString()," total"]}),s.length>0&&p.jsxs("div",{className:"pb-2 mb-2 border-b border-ouro-moss/15",children:[p.jsxs("button",{onClick:()=>d(!u),className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow hover:text-ouro-mist transition-colors",children:[u?"▼":"▶"," system context (",s.length,")"]}),u&&s.map(h=>p.jsx("div",{className:"mt-2 max-h-60 overflow-y-auto rounded bg-ouro-void/40 p-2 text-xs text-ouro-shadow whitespace-pre-wrap break-words",children:h.content},h.index))]}),o.map(h=>h.role==="tool"?null:h.role==="user"?p.jsx(MN,{msg:h},h.index):h.role==="assistant"?p.jsx(DN,{msg:h,toolResults:f},h.index):null)]})}function MN({msg:n}){return p.jsx("div",{className:"flex justify-start py-1",children:p.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-bl-sm bg-ouro-moss/25 px-3.5 py-2 ring-1 ring-ouro-moss/15",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-gold/70",children:"user"}),p.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",n.index]})]}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:n.content})]})})}function DN({msg:n,toolResults:a}){const s=(n.tool_calls??[]).map(Ox),o=s.filter(f=>f.kind!=="action"),u=s.filter(f=>f.kind==="action"),d=[];for(const f of o)f.kind==="response"?d.push(p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&f.metadata!=="complete"&&p.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["intent: ",f.metadata]})]})},f.id)):f.kind==="delegation"?d.push(p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),f.deliveredText&&p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.delegatedThought&&p.jsxs("div",{className:"mt-2 rounded-lg bg-ouro-moss/20 px-2.5 py-1.5 ring-1 ring-ouro-glow/8",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/60",children:"→ inner dialog"}),p.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist",children:f.delegatedThought})]})]})},f.id)):f.kind==="surface"?d.push(p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-scale/12 px-3.5 py-2 ring-1 ring-ouro-scale/15",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"surfaced"}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:f.deliveredText}),f.metadata&&p.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",f.metadata]})]})},f.id)):f.kind==="rest"?d.push(p.jsx("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/50",children:"— resting —"},f.id)):f.kind==="observe"&&d.push(p.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/50",children:["— observed",f.metadata?`: ${f.metadata}`:""," —"]},f.id));return n.content&&o.length===0&&d.push(p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] sm:max-w-[75%] rounded-2xl rounded-br-sm bg-ouro-glow/8 px-3.5 py-2 ring-1 ring-ouro-glow/12",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/70 mb-0.5",children:"agent"}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:n.content})]})},`${n.index}-content`)),u.length>0&&d.push(p.jsx("div",{className:"flex justify-end py-1",children:p.jsx("div",{className:"max-w-[85%] sm:max-w-[75%] space-y-1",children:u.map(f=>p.jsx(zN,{call:f,result:a.get(f.id)},f.id))})},`${n.index}-tools`)),p.jsx(p.Fragment,{children:d})}function zN({call:n,result:a}){const[s,o]=w.useState(!1);return p.jsxs("button",{onClick:()=>o(!s),className:"w-full text-left rounded-lg bg-ouro-moss/10 px-2.5 py-1.5 text-sm ring-1 ring-ouro-moss/12 hover:ring-ouro-glow/15 transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-mono text-xs text-ouro-glow",children:n.name}),!s&&p.jsx("span",{className:"text-[10px] text-ouro-shadow",children:"tap to inspect"})]}),s&&p.jsxs(p.Fragment,{children:[n.rawArgs&&p.jsx("pre",{className:"mt-1.5 max-h-24 overflow-y-auto rounded bg-ouro-void/40 p-1.5 font-mono text-[11px] text-ouro-shadow whitespace-pre-wrap break-words",children:n.rawArgs}),a&&p.jsxs("div",{className:"mt-1.5 border-t border-ouro-moss/15 pt-1.5",children:[p.jsx(Yt,{children:"result"}),p.jsx("pre",{className:"mt-1 max-h-32 overflow-y-auto rounded bg-ouro-void/40 p-1.5 font-mono text-[11px] text-ouro-mist whitespace-pre-wrap break-words",children:a.content})]})]})]})}function Rx({label:n}){return p.jsxs("div",{className:"flex items-center gap-2 py-6",children:[p.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),p.jsxs("span",{className:"font-mono text-xs text-ouro-shadow",children:[n,"…"]})]})}function ON({agentName:n,view:a,focus:s,onFocusConsumed:o}){var S,T,A;const u=Qi(),[d,f]=w.useState(null),h=a.work,m=h.obligations,g=h.tasks;w.useEffect(()=>{ce(`/agents/${encodeURIComponent(n)}/coding`).then(f)},[n]);const y=(d==null?void 0:d.items)??[],b=new Map;for(const E of y){const C=E.obligationId;C&&(b.has(C)||b.set(C,[]),b.get(C).push(E))}return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("section",{children:[p.jsx(Df,{label:`Obligations (${m.openCount} open)`}),((S=m.items)==null?void 0:S.length)>0?p.jsx("div",{className:"mt-3 space-y-3",children:m.items.map(E=>{const C=b.get(E.id)??[];return p.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx(Yt,{color:E.status==="pending"?"yellow":E.status==="fulfilled"?"lime":"zinc",children:E.status}),p.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:nn(E.content,120)})]}),E.origin&&p.jsxs("div",{className:"mt-2 flex items-center gap-1.5 text-xs",children:[p.jsx("span",{className:"text-ouro-shadow",children:"triggered from"}),p.jsxs("button",{onClick:()=>u({tab:"sessions",focus:`${E.origin.friendId}/${E.origin.channel}/${E.origin.key}`}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:[E.origin.friendId.slice(0,8),"…/",E.origin.channel,"/",E.origin.key]})]}),E.currentSurface&&p.jsxs("div",{className:"mt-1 text-xs text-ouro-mist",children:["surface: ",p.jsx("span",{className:"text-ouro-bone",children:E.currentSurface.kind})," — ",E.currentSurface.label]}),C.length>0&&p.jsxs("div",{className:"mt-2 space-y-1",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Linked coding"}),C.map(N=>p.jsxs("div",{className:"flex items-center gap-2 rounded bg-ouro-moss/10 px-2 py-1 text-xs",children:[p.jsx(Yt,{color:N.status==="failed"?"red":N.status==="running"?"lime":"zinc",children:N.status}),p.jsxs("span",{className:"text-ouro-mist truncate",children:[N.runner," — ",N.workdir]})]},N.id))]}),E.nextAction&&p.jsxs("p",{className:"mt-1.5 text-xs text-ouro-mist",children:["Next: ",E.nextAction]}),p.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:Qe(E.updatedAt)})]},E.id)})}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No open obligations."})]}),p.jsxs("section",{children:[p.jsx(Df,{label:`Coding lanes (${y.length})`}),y.length>0?p.jsx("div",{className:"mt-3 space-y-2",children:y.map(E=>{const C=E.status,N=C==="failed",V=E.failure;return p.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Yt,{color:N?"red":C==="running"?"lime":C==="completed"?"zinc":"yellow",children:C}),p.jsx("span",{className:"text-sm font-medium text-ouro-bone",children:E.runner}),p.jsx("span",{className:"truncate text-xs text-ouro-shadow",children:E.workdir})]}),p.jsxs("div",{className:"mt-1 flex flex-wrap gap-2",children:[E.obligationId&&p.jsxs("button",{onClick:()=>u({tab:"work",focus:E.obligationId}),className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",E.obligationId.slice(0,20),"…"]}),E.taskRef&&p.jsxs("span",{className:"text-xs text-ouro-glow",children:["task: ",E.taskRef]}),E.originSession&&p.jsx("button",{onClick:()=>{const _=E.originSession;u({tab:"sessions",focus:`${_.friendId}/${_.channel}/${_.key}`})},className:"text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:"origin session"})]}),E.checkpoint&&p.jsx("p",{className:"mt-1.5 text-xs text-ouro-mist",children:nn(E.checkpoint,100)}),p.jsxs("p",{className:"mt-1 text-xs text-ouro-shadow",children:["pid ",E.pid??"–"," · restarts ",E.restartCount," · ",Qe(E.lastActivityAt)]}),N&&V&&p.jsxs("div",{className:"mt-2 rounded bg-ouro-fang/5 p-2 text-xs ring-1 ring-ouro-fang/15",children:[p.jsx("span",{className:"font-semibold text-ouro-fang",children:"FAILURE:"})," ",p.jsxs("span",{className:"text-ouro-mist",children:[V.command," exited ",String(V.code??V.signal)]}),V.stderrTail&&p.jsx("pre",{className:"mt-1 max-h-20 overflow-y-auto font-mono text-[11px] text-ouro-shadow whitespace-pre-wrap",children:V.stderrTail})]})]},E.id)})}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No coding sessions."})]}),p.jsxs("section",{children:[p.jsx(Df,{label:`Tasks (${g.liveCount} live, ${g.blockedCount} blocked)`}),((T=g.liveTaskNames)==null?void 0:T.length)>0?p.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:g.liveTaskNames.map(E=>p.jsx(Yt,{children:E},E))}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No live tasks."}),((A=g.actionRequired)==null?void 0:A.length)>0&&p.jsxs("div",{className:"mt-3",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Action required"}),p.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:g.actionRequired.map(E=>p.jsx(Yt,{color:"red",children:E},E))})]})]})]})}function Df({label:n}){return p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function RN({agentName:n,focus:a,onFocusConsumed:s}){const o=Qi(),[u,d]=w.useState(null),[f,h]=w.useState(null),[m,g]=w.useState(null);w.useEffect(()=>{const T=`/agents/${encodeURIComponent(n)}`;Promise.all([ce(`${T}/attention`).then(d),ce(`${T}/bridges`).then(h),ce(`${T}/friends`).then(g)])},[n]);const y=(u==null?void 0:u.queueItems)??[],b=(f==null?void 0:f.items)??[],S=(m==null?void 0:m.friends)??[];return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("section",{children:[p.jsx(zf,{label:`Who is waiting (${(u==null?void 0:u.queueLength)??0})`}),y.length>0?p.jsx("div",{className:"mt-3 space-y-2",children:y.map((T,A)=>p.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-3 ring-1 ring-ouro-moss/15",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),p.jsxs("span",{className:"text-xs text-ouro-shadow",children:["via ",T.channel]}),p.jsxs(Yt,{color:"yellow",children:["waiting ",Qe(new Date(T.timestamp).toISOString())]})]}),p.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:nn(T.delegatedContent,140)}),p.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-2 text-xs",children:[T.bridgeId&&p.jsxs("button",{onClick:()=>o({tab:"connections",focus:T.bridgeId}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["bridge: ",T.bridgeId.slice(0,12),"…"]}),T.obligationId&&p.jsxs("button",{onClick:()=>o({tab:"work",focus:T.obligationId}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",T.obligationId.slice(0,16),"…"]})]})]},A))}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"Nobody waiting."})]}),p.jsxs("section",{children:[p.jsx(zf,{label:`Bridges (${(f==null?void 0:f.totalCount)??0})`}),b.length>0?p.jsx("div",{className:"mt-3 space-y-3",children:b.map(T=>{const A=T.attachedSessions??[],E=T.task,C=T.lifecycle==="active";return p.jsxs("div",{className:`rounded-lg px-3 py-3 ring-1 ${C?"bg-ouro-moss/10 ring-ouro-glow/12":"bg-ouro-void/40 ring-ouro-moss/15"}`,children:[p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx(Yt,{color:C?"lime":"zinc",children:T.lifecycle}),p.jsx("p",{className:"font-medium text-ouro-bone",children:T.objective})]}),T.summary&&p.jsx("p",{className:"mt-1 text-sm text-ouro-mist",children:nn(T.summary,160)}),A.length>0&&p.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:A.map((N,V)=>p.jsxs("button",{onClick:()=>o({tab:"sessions",focus:`${N.friendId}/${N.channel}/${N.key}`}),className:"rounded-md bg-ouro-moss/10 px-2 py-0.5 font-mono text-[11px] text-ouro-glow ring-1 ring-ouro-moss/12 hover:ring-ouro-glow/25 transition-colors",children:[N.friendId,"/",N.channel,"/",N.key]},V))}),E&&p.jsxs("p",{className:"mt-1.5 text-xs",children:[p.jsxs("button",{onClick:()=>o({tab:"work"}),className:"text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["task: ",E.taskName]}),p.jsxs("span",{className:"text-ouro-shadow",children:[" (",E.mode,")"]})]}),p.jsx("p",{className:"mt-1 text-xs text-ouro-shadow",children:Qe(T.updatedAt)})]},T.id)})}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No bridges."})]}),p.jsxs("section",{children:[p.jsx(zf,{label:`Friends (${(m==null?void 0:m.totalFriends)??0})`}),S.length>0?p.jsx("div",{className:"mt-3 space-y-1.5",children:S.map(T=>p.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[p.jsxs("div",{className:"min-w-0",children:[p.jsx("button",{onClick:()=>o({tab:"sessions"}),className:"font-medium text-ouro-bone hover:text-ouro-glow transition-colors",children:T.friendName}),p.jsxs("p",{className:"text-xs text-ouro-shadow",children:[T.channels.join(", ")," · ",T.sessionCount," sessions",T.lastActivityAt&&p.jsxs(p.Fragment,{children:[" · ",Qe(T.lastActivityAt)]})]})]}),p.jsxs("div",{className:"shrink-0 text-right",children:[p.jsx("p",{className:"tabular-nums text-sm font-medium text-ouro-bone",children:T.totalTokens.toLocaleString()}),p.jsx("p",{className:"text-[10px] text-ouro-shadow",children:"tokens"})]})]},T.friendId))}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No friends."})]})]})}function zf({label:n}){return p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:n})}function LN({agentName:n,view:a}){var C;const s=Qi(),[o,u]=w.useState(null),[d,f]=w.useState(null),[h,m]=w.useState(!1),g=a.inner;w.useEffect(()=>{ce(`/agents/${encodeURIComponent(n)}/habits`).then(u)},[n]);function y(){if(d){m(!h);return}ce(`/agents/${encodeURIComponent(n)}/inner-transcript`).then(N=>{f(N),m(!0)})}const b=(o==null?void 0:o.items)??[],S=b.filter(N=>N.isOverdue),T=b.filter(N=>N.status==="active"&&!N.isOverdue),A=b.filter(N=>N.status==="paused"),E=b.find(N=>{var V;return((V=N.name)==null?void 0:V.toLowerCase())==="heartbeat"});return p.jsxs("div",{className:"space-y-8",children:[E&&p.jsxs("section",{children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Heartbeat"}),p.jsx("div",{className:`mt-2 rounded-xl p-4 ring-1 ${E.isOverdue?"bg-ouro-fang/5 ring-ouro-fang/15":"bg-ouro-moss/10 ring-ouro-glow/10"}`,children:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${E.isOverdue?"bg-ouro-fang animate-pulse":"bg-ouro-glow"}`}),p.jsx("span",{className:"font-medium text-ouro-bone",children:E.isOverdue?"Overdue":"Healthy"}),p.jsxs("span",{className:"text-xs text-ouro-shadow",children:["every ",E.cadence," · last ",E.lastRun?Qe(E.lastRun):"never"]})]})})]}),p.jsx("section",{children:p.jsxs("div",{className:"rounded-xl bg-ouro-moss/15 p-4 ring-1 ring-ouro-glow/10",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ouro-glow",children:"Inner work"}),p.jsx("p",{className:"mt-1 font-display text-xl italic font-semibold text-ouro-bone",children:g.status}),g.summary&&p.jsx("p",{className:"mt-2 text-sm leading-relaxed text-ouro-mist",children:g.summary}),p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:g.hasPending?"Pending inner work queued.":"No pending inner work."}),g.mode==="deep"&&g.origin&&p.jsxs("div",{className:"mt-3",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow",children:"Triggered from"}),p.jsxs("button",{onClick:()=>{const N=g.origin;s({tab:"sessions",focus:`${N.friendId}/${N.channel}/${N.key}`})},className:"mt-1 text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:[(C=g.origin.friendId)==null?void 0:C.slice(0,8),"…/",g.origin.channel,"/",g.origin.key]}),g.obligationStatus&&p.jsxs("button",{onClick:()=>s({tab:"work"}),className:"ml-2 text-xs text-ouro-glow underline decoration-ouro-glow/30 underline-offset-2 hover:decoration-ouro-glow",children:["obligation: ",g.obligationStatus]})]})]})}),p.jsxs("section",{children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Inner dialog ",d?`(${d.messages.length} total)`:""]}),d?p.jsx(VN,{messages:d.messages}):p.jsx("button",{onClick:y,className:"mt-2 w-full rounded-lg px-3 py-2.5 text-left font-mono text-xs text-ouro-glow ring-1 ring-ouro-moss/15 hover:ring-ouro-glow/20 transition-colors",children:"Load inner dialog"})]}),p.jsxs("section",{children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Habits (",(o==null?void 0:o.totalCount)??0,")"]}),S.length>0&&p.jsxs("div",{className:"mt-3",children:[p.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-fang mb-1.5",children:["Overdue (",S.length,")"]}),p.jsx("div",{className:"space-y-1.5",children:S.map(N=>p.jsx(Of,{h:N},N.name))})]}),T.length>0&&p.jsxs("div",{className:"mt-3",children:[p.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow mb-1.5",children:["Running fine (",T.length,")"]}),p.jsx("div",{className:"space-y-1.5",children:T.map(N=>p.jsx(Of,{h:N},N.name))})]}),A.length>0&&p.jsxs("div",{className:"mt-3",children:[p.jsxs("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-shadow mb-1.5",children:["Paused (",A.length,")"]}),p.jsx("div",{className:"space-y-1.5",children:A.map(N=>p.jsx(Of,{h:N},N.name))})]}),b.length===0&&p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No habits configured."})]})]})}function VN({messages:n}){const a=n.filter(h=>h.role!=="system"&&h.role!=="tool"),[s,o]=w.useState(!1),u=w.useRef(null),d=s?a:a.slice(-30),f=a.length-d.length;return w.useEffect(()=>{u.current&&(u.current.scrollTop=u.current.scrollHeight)},[d.length]),p.jsxs("div",{ref:u,className:"mt-2 max-h-[60vh] overflow-y-auto rounded-lg bg-ouro-void/60 p-3 ring-1 ring-ouro-moss/15 space-y-1",children:[f>0&&p.jsxs("button",{onClick:()=>o(!0),className:"w-full rounded-lg px-3 py-2 text-center font-mono text-xs text-ouro-shadow hover:text-ouro-mist ring-1 ring-ouro-moss/10 hover:ring-ouro-moss/20 transition-colors mb-2",children:["Load ",f," earlier messages"]}),d.map(h=>{var m,g,y,b;if(h.role==="user"){const S=((m=h.content)==null?void 0:m.includes("[pending from"))||((g=h.content)==null?void 0:g.includes("[delegated")),T=((y=h.content)==null?void 0:y.includes("waking up"))||((b=h.content)==null?void 0:b.includes("world-state checkpoint"));return p.jsx("div",{className:"flex justify-start py-1",children:p.jsxs("div",{className:`max-w-[85%] rounded-2xl rounded-bl-sm px-3 py-2 ring-1 ${S?"bg-ouro-gold/8 ring-ouro-gold/15":T?"bg-ouro-moss/20 ring-ouro-moss/15":"bg-ouro-moss/25 ring-ouro-moss/15"}`,children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider",style:{color:S?"var(--color-ouro-gold)":"var(--color-ouro-shadow)"},children:S?"★ delegated":T?"heartbeat":"prompt"}),p.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:h.content})]})},h.index)}if(h.role==="assistant"){const S=(h.tool_calls??[]).map(Ox),T=S.filter(C=>C.kind==="surface"),A=S.filter(C=>C.kind==="rest"),E=S.filter(C=>C.kind==="delegation");return p.jsxs("div",{children:[T.map(C=>p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] rounded-2xl rounded-br-sm bg-ouro-scale/15 px-3 py-2 ring-1 ring-ouro-scale/20",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow",children:"★ surfaced outward"}),p.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone whitespace-pre-wrap break-words",children:C.deliveredText}),C.metadata&&p.jsxs("p",{className:"mt-1 font-mono text-[9px] text-ouro-shadow",children:["→ ",C.metadata]})]})},C.id)),E.length>0&&p.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-gold/50",children:["— still thinking — #",h.index]}),A.length>0&&p.jsxs("div",{className:"py-1 text-center font-mono text-[10px] text-ouro-shadow/40",children:["— resting — #",h.index]}),T.length===0&&A.length===0&&E.length===0&&h.content&&p.jsx("div",{className:"flex justify-end py-1",children:p.jsxs("div",{className:"max-w-[85%] rounded-2xl rounded-br-sm bg-ouro-glow/6 px-3 py-2 ring-1 ring-ouro-glow/8",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[p.jsx("p",{className:"font-mono text-[9px] uppercase tracking-wider text-ouro-glow/50",children:"thinking"}),p.jsxs("span",{className:"font-mono text-[9px] text-ouro-shadow/40",children:["#",h.index]})]}),p.jsx("p",{className:"text-sm leading-relaxed text-ouro-mist whitespace-pre-wrap break-words",children:h.content})]})})]},h.index)}return null})]})}function Of({h:n}){const a=n.isOverdue,s=n.isDegraded,o=n.status;return p.jsxs("div",{className:`rounded-lg px-3 py-2.5 ring-1 ${a?"bg-ouro-fang/5 ring-ouro-fang/15":s?"bg-ouro-gold/5 ring-ouro-gold/15":o==="paused"?"bg-ouro-void/30 ring-ouro-moss/10":"bg-ouro-void/40 ring-ouro-moss/15"}`,children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Yt,{color:a?"red":s?"yellow":o==="active"?"lime":"zinc",children:a?"overdue":s?"degraded":o}),p.jsx("span",{className:"font-medium text-ouro-bone",children:n.title})]}),p.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-ouro-shadow",children:[n.cadence&&p.jsxs("span",{children:["every ",n.cadence]}),p.jsx("span",{children:n.lastRun?`last ${Qe(n.lastRun)}`:"never run"}),s&&n.degradedReason&&p.jsx("span",{className:"text-ouro-gold",children:n.degradedReason}),!a&&!s&&o==="active"&&n.lastRun&&p.jsx("span",{className:"text-ouro-glow",children:"on schedule"}),a&&n.overdueMs&&p.jsxs("span",{className:"text-ouro-fang",children:[Math.floor(n.overdueMs/6e4),"m overdue"]}),!n.lastRun&&o==="active"&&p.jsx("span",{className:"text-ouro-gold",children:"never fired — may be misconfigured"})]}),n.bodyExcerpt&&p.jsx("p",{className:"mt-1 text-xs text-ouro-shadow/70",children:n.bodyExcerpt})]})}function _N({agentName:n}){const[a,s]=w.useState(null),[o,u]=w.useState("diary");if(w.useEffect(()=>{ce(`/agents/${encodeURIComponent(n)}/memory`).then(s)},[n]),!a)return p.jsxs("div",{className:"flex items-center gap-2 py-6",children:[p.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-ouro-glow"}),p.jsx("span",{className:"font-mono text-xs text-ouro-shadow",children:"Loading…"})]});const d=a.recentDiaryEntries??[],f=a.recentJournalEntries??[];return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("button",{onClick:()=>u("diary"),className:`font-mono text-xs uppercase tracking-wider transition-colors ${o==="diary"?"text-ouro-glow":"text-ouro-shadow hover:text-ouro-mist"}`,children:["Diary (",a.diaryEntryCount,")"]}),p.jsx("span",{className:"text-ouro-shadow/30",children:"|"}),p.jsxs("button",{onClick:()=>u("journal"),className:`font-mono text-xs uppercase tracking-wider transition-colors ${o==="journal"?"text-ouro-glow":"text-ouro-shadow hover:text-ouro-mist"}`,children:["Journal (",a.journalEntryCount,")"]})]}),o==="diary"&&p.jsx("div",{children:d.length>0?p.jsx("div",{className:"space-y-3",children:d.map(h=>p.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[p.jsx("p",{className:"text-sm leading-relaxed text-ouro-bone",children:h.text}),p.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-ouro-shadow",children:[p.jsx(Yt,{children:h.source}),p.jsx("span",{children:Qe(h.createdAt)})]})]},h.id))}):p.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No diary entries yet. The agent hasn't written anything down."})}),o==="journal"&&p.jsx("div",{children:f.length>0?p.jsx("div",{className:"space-y-3",children:f.map(h=>p.jsxs("article",{className:"rounded-xl bg-ouro-void/40 px-4 py-3.5 ring-1 ring-ouro-moss/15",children:[p.jsx("p",{className:"font-medium text-ouro-bone",children:h.filename}),p.jsx("p",{className:"mt-1 text-sm leading-relaxed text-ouro-mist",children:h.preview})]},h.filename))}):p.jsx("p",{className:"text-sm text-ouro-shadow italic",children:"No journal entries yet."})})]})}function kN({agentName:n,view:a}){const[s,o]=w.useState(null),[u,d]=w.useState(null),f=a.agent,h=f.degraded,m=f.freshness;w.useEffect(()=>{Promise.all([ce("/machine/health").then(o).catch(()=>null),ce("/machine/logs").then(d).catch(()=>null)])},[n]);const g=(s==null?void 0:s.degradedComponents)??[],y=(u==null?void 0:u.entries)??[];return p.jsxs("div",{className:"space-y-8",children:[h.status==="degraded"&&h.issues.length>0&&p.jsxs("section",{children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-fang",children:["Agent issues (",h.issues.length,")"]}),p.jsx("div",{className:"mt-3 space-y-1.5",children:h.issues.map((b,S)=>p.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2.5 ring-1 ring-ouro-fang/15",children:[p.jsx("p",{className:"font-mono text-xs font-semibold text-ouro-fang",children:b.code}),p.jsx("p",{className:"mt-0.5 text-xs text-ouro-mist break-all",children:b.detail})]},S))})]}),p.jsxs("section",{children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Agent config"}),p.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[p.jsx(Hi,{label:"Provider",value:f.provider||"none"}),p.jsx(Hi,{label:"Enabled",value:f.enabled?"yes":"no"}),p.jsx(Hi,{label:"Freshness",value:`${m.status}${m.ageMs!=null?` (${Math.floor(m.ageMs/6e4)}m)`:""}`})]})]}),p.jsxs("section",{children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:"Daemon health"}),s&&s.status!=="unavailable"?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3",children:[p.jsx(Hi,{label:"Status",value:s.status}),p.jsx(Hi,{label:"Mode",value:s.mode}),p.jsx(Hi,{label:"Uptime",value:`${Math.floor(s.uptimeSeconds/60)}m`})]}),g.length>0&&p.jsxs("div",{className:"mt-3 space-y-1.5",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-fang",children:"Degraded components"}),g.map((b,S)=>p.jsxs("div",{className:"rounded-lg bg-ouro-fang/5 px-3 py-2 ring-1 ring-ouro-fang/15",children:[p.jsx("p",{className:"text-xs font-semibold text-ouro-fang",children:b.component}),p.jsx("p",{className:"text-xs text-ouro-mist",children:b.reason})]},S))]})]}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No health file found. This is normal when not running under the daemon."})]}),p.jsxs("section",{children:[p.jsxs("p",{className:"font-mono text-[10px] uppercase tracking-[0.15em] text-ouro-glow",children:["Recent logs (",(u==null?void 0:u.totalLines)??0," total)"]}),y.length>0?p.jsx("div",{className:"mt-3 max-h-96 overflow-y-auto rounded-lg bg-ouro-void/40 ring-1 ring-ouro-moss/15",children:[...y].reverse().slice(0,50).map((b,S)=>{const T=b.level;return p.jsxs("div",{className:"border-b border-ouro-moss/10 px-3 py-1.5 last:border-b-0",children:[p.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[p.jsx(Yt,{color:T==="error"?"red":T==="warn"?"yellow":"zinc",children:T}),p.jsx("span",{className:"text-ouro-shadow",children:Qe(b.ts)}),p.jsx("span",{className:"font-mono text-ouro-glow",children:b.event})]}),p.jsx("p",{className:"truncate text-xs text-ouro-mist",children:b.message})]},S)})}):p.jsx("p",{className:"mt-2 text-sm text-ouro-shadow",children:"No log entries."})]})]})}function Hi({label:n,value:a}){return p.jsxs("div",{className:"rounded-lg bg-ouro-void/40 px-3 py-2.5 ring-1 ring-ouro-moss/15",children:[p.jsx("p",{className:"font-mono text-[10px] uppercase tracking-wider text-ouro-shadow",children:n}),p.jsx("p",{className:"mt-1 text-sm font-medium text-ouro-bone",children:a})]})}const Rf=[{id:"overview",label:"Overview"},{id:"sessions",label:"Sessions"},{id:"work",label:"Work"},{id:"connections",label:"Connections"},{id:"inner",label:"Inner"},{id:"memory",label:"Diary & Journal"},{id:"runtime",label:"Runtime"}];function UN(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function BN({agentName:n,view:a,deskPrefs:s,initialRoute:o}){const[u,d]=w.useState((o==null?void 0:o.tab)??"overview"),[f,h]=w.useState(o==null?void 0:o.focus),m=w.useRef(!1);w.useEffect(()=>{(o==null?void 0:o.agent)===n&&!m.current?(m.current=!0,d(o.tab),h(o.focus)):(d("overview"),h(void 0))},[n]);const g=w.useCallback(A=>{d(A.tab),h(A.focus),window.history.pushState(null,"",Lf({agent:n,tab:A.tab,focus:A.focus}))},[n]),y=w.useCallback(A=>{d(A),h(void 0),window.history.pushState(null,"",Lf({agent:n,tab:A,focus:void 0}))},[n]),b=w.useCallback(()=>h(void 0),[]);if(!a||!n)return p.jsxs("div",{className:"flex flex-col items-center justify-center py-24 text-center",children:[p.jsx("p",{className:"font-display text-2xl italic text-ouro-bone",children:"Choose an agent"}),p.jsx("p",{className:"mt-2 text-sm text-ouro-mist",children:"Select an agent from the sidebar to inspect its state."})]});const T=a.agent.attention;return p.jsx(P0.Provider,{value:g,children:p.jsxs("div",{children:[p.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 pb-4 border-b border-ouro-moss/30",children:[p.jsx("div",{className:"min-w-0",children:p.jsx("h1",{className:"font-display text-2xl italic font-semibold text-ouro-bone sm:text-3xl",children:n})}),p.jsx(Yt,{color:UN(T.level),children:T.label})]}),p.jsx("nav",{className:"mt-4 flex gap-0.5 overflow-x-auto border-b border-ouro-moss/20 -mx-1",children:(()=>{const A=s==null?void 0:s.tabOrder;if(!A)return Rf;const E=A.map(N=>Rf.find(V=>V.id===N)).filter(N=>N!==void 0),C=Rf.filter(N=>!A.includes(N.id));return[...E,...C]})().map(A=>p.jsx("button",{type:"button",onClick:()=>y(A.id),className:`shrink-0 px-3 py-2 text-xs font-mono uppercase tracking-wider transition-colors rounded-t-md ${u===A.id?"bg-ouro-moss/20 text-ouro-glow border-b-2 border-ouro-glow":"text-ouro-shadow hover:text-ouro-mist hover:bg-ouro-moss/10"}`,children:A.label},A.id))}),p.jsxs("div",{className:"mt-6",children:[u==="overview"&&p.jsx(wN,{view:a,deskPrefs:s}),u==="sessions"&&p.jsx(jN,{agentName:n,focus:f,onFocusConsumed:b,deskPrefs:s}),u==="work"&&p.jsx(ON,{agentName:n,view:a,focus:f,onFocusConsumed:b}),u==="connections"&&p.jsx(RN,{agentName:n,focus:f,onFocusConsumed:b}),u==="inner"&&p.jsx(LN,{agentName:n,view:a}),u==="memory"&&p.jsx(_N,{agentName:n}),u==="runtime"&&p.jsx(kN,{agentName:n,view:a})]})]})})}function F0(){return J0(window.location.hash)}function HN(n){return n==="degraded"||n==="blocked"?"red":n==="stale"?"yellow":n==="active"?"lime":"zinc"}function $N(){var A,E;const[n,a]=w.useState(null),[s,o]=w.useState(((A=F0())==null?void 0:A.agent)??""),[u,d]=w.useState(null),f=w.useRef(0),h=w.useRef(F0()),m=w.useCallback(async()=>{var C;try{const N=await ce("/machine");if(a(N),!s&&N.agents.length>0){const V=((C=h.current)==null?void 0:C.agent)??N.agents[0].agentName;o(V)}}catch{}},[s]),[g,y]=w.useState(null),b=w.useCallback(async C=>{if(!C){d(null),y(null);return}try{const[N,V]=await Promise.all([ce(`/agents/${encodeURIComponent(C)}`),ce(`/agents/${encodeURIComponent(C)}/desk-prefs`)]);d(N),y(V)}catch{d(null),y(null)}},[]);w.useEffect(()=>{m()},[m]),w.useEffect(()=>{s&&b(s)},[s,b]),w.useEffect(()=>mT(()=>{const N=++f.current;m().then(()=>{f.current===N&&s&&b(s)})}),[m,b,s]),w.useEffect(()=>{const C=()=>{const N=J0(window.location.hash);N&&o(N.agent)};return window.addEventListener("hashchange",C),()=>window.removeEventListener("hashchange",C)},[]);const S=w.useCallback(C=>{o(C),window.history.pushState(null,"",Lf({agent:C,tab:"overview",focus:void 0}))},[]);if(!n)return p.jsx("div",{className:"flex h-screen items-center justify-center bg-ouro-void",children:p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"mx-auto mb-4 h-4 w-4 animate-pulse rounded-full bg-ouro-glow shadow-[0_0_20px_theme(--color-ouro-glow)]"}),p.jsx("p",{className:"font-mono text-sm text-ouro-mist",children:"Connecting to Outlook…"})]})});const T=n.overview.totals;return p.jsx(cN,{navbar:p.jsxs(iN,{children:[p.jsx(sN,{}),p.jsx(lN,{children:p.jsx(Id,{children:p.jsx(Yt,{color:n.overview.daemon.mode==="dev"?"yellow":"lime",children:n.overview.daemon.mode})})})]}),sidebar:p.jsxs(fN,{className:"bg-ouro-deep",children:[p.jsx(dN,{className:"border-ouro-moss/30",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"h-3 w-3 shrink-0 rounded-full bg-ouro-glow shadow-[0_0_16px_theme(--color-ouro-glow)]"}),p.jsx("div",{className:"min-w-0",children:p.jsx("p",{className:"truncate font-display text-lg italic font-semibold text-ouro-bone",children:"Ouro Outlook"})})]})}),p.jsxs(hN,{className:"[&>[data-slot=section]+[data-slot=section]]:mt-4",children:[p.jsxs(Y0,{children:[p.jsx(q0,{className:"text-ouro-mist/60",children:"Machine"}),p.jsx("div",{className:"grid grid-cols-3 gap-1.5 px-2",children:[{v:T.liveTasks??0,l:"Tasks",alert:(T.blockedTasks??0)>0},{v:T.openObligations??0,l:"Oblig."},{v:T.activeCodingAgents??0,l:"Coding"}].map(C=>p.jsxs("div",{className:"rounded-md bg-ouro-void/60 px-2 py-1.5 text-center ring-1 ring-ouro-moss/20",children:[p.jsx("div",{className:`text-base font-semibold tabular-nums ${C.alert?"text-ouro-fang":"text-ouro-bone"}`,children:C.v}),p.jsx("div",{className:"text-[9px] uppercase tracking-widest text-ouro-shadow",children:C.l})]},C.l))})]}),p.jsxs(Y0,{children:[p.jsx(q0,{className:"text-ouro-mist/60",children:"Agents"}),n.agents.map(C=>p.jsx(pN,{current:C.agentName===s,onClick:()=>S(C.agentName),children:p.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-2",children:[p.jsxs("div",{className:"min-w-0",children:[p.jsx(gN,{className:"text-ouro-bone",children:C.agentName}),p.jsxs("p",{className:"truncate text-xs text-ouro-shadow",children:[C.tasks.liveCount,"t · ",C.obligations.openCount,"o · ",C.coding.activeCount,"c"]})]}),p.jsx(Yt,{color:HN(C.attention.level),children:C.attention.label})]})},C.agentName))]})]}),p.jsx(mN,{className:"border-ouro-moss/30",children:p.jsxs("div",{className:"px-2 text-xs text-ouro-shadow",children:[p.jsx("p",{className:"font-mono",children:n.overview.runtime.version}),p.jsxs("p",{className:"mt-0.5",children:[n.overview.daemon.mode," · ",n.overview.freshness.status]})]})}),s&&u&&p.jsx("div",{className:"px-4 py-2 border-t border-ouro-moss/20",children:p.jsx("p",{className:"text-xs italic text-ouro-shadow/70",children:(()=>{var X;const C=g==null?void 0:g.statusLine;if(C)return C;const N=u==null?void 0:u.inner;if((N==null?void 0:N.status)==="working"||N!=null&&N.hasPending)return"thinking through something privately";const _=u==null?void 0:u.work,H=((X=_==null?void 0:_.obligations)==null?void 0:X.openCount)??0;return H>2?"a few loose ends":H>0?"carrying something":"steady"})()})})]}),children:p.jsx(BN,{agentName:s,view:u,deskPrefs:g,initialRoute:((E=h.current)==null?void 0:E.agent)===s?h.current:void 0})})}hT.createRoot(document.getElementById("app")).render(p.jsx(w.StrictMode,{children:p.jsx($N,{})}));
|