299 lines
534 KiB
JavaScript
299 lines
534 KiB
JavaScript
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function l(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=l(o);fetch(o.href,f)}})();var Zu={exports:{}},Il={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Qp;function I2(){if(Qp)return Il;Qp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:h,ref:o!==void 0?o:null,props:f}}return Il.Fragment=n,Il.jsx=l,Il.jsxs=l,Il}var Fp;function ew(){return Fp||(Fp=1,Zu.exports=I2()),Zu.exports}var d=ew(),Ju={exports:{}},we={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Kp;function tw(){if(Kp)return we;Kp=1;var a=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function k(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function A(N,q,R){this.props=N,this.context=q,this.refs=M,this.updater=R||T}A.prototype.isReactComponent={},A.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},A.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function z(){}z.prototype=A.prototype;function O(N,q,R){this.props=N,this.context=q,this.refs=M,this.updater=R||T}var H=O.prototype=new z;H.constructor=O,E(H,A.prototype),H.isPureReactComponent=!0;var X=Array.isArray;function ne(){}var F={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function $(N,q,R){var te=R.ref;return{$$typeof:a,type:N,key:q,ref:te!==void 0?te:null,props:R}}function ee(N,q){return $(N.type,q,N.props)}function re(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function me(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(R){return q[R]})}var Re=/\/+/g;function Se(N,q){return typeof N=="object"&&N!==null&&N.key!=null?me(""+N.key):q.toString(36)}function ge(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ne,ne):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,q,R,te,se){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var ke=!1;if(N===null)ke=!0;else switch(ue){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(N.$$typeof){case a:case n:ke=!0;break;case y:return ke=N._init,_(ke(N._payload),q,R,te,se)}}if(ke)return se=se(N),ke=te===""?"."+Se(N,0):te,X(se)?(R="",ke!=null&&(R=ke.replace(Re,"$&/")+"/"),_(se,q,R,"",function(jt){return jt})):se!=null&&(re(se)&&(se=ee(se,R+(se.key==null||N&&N.key===se.key?"":(""+se.key).replace(Re,"$&/")+"/")+ke)),q.push(se)),1;ke=0;var Ue=te===""?".":te+":";if(X(N))for(var ye=0;ye<N.length;ye++)te=N[ye],ue=Ue+Se(te,ye),ke+=_(te,q,R,ue,se);else if(ye=k(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(te=N.next()).done;)te=te.value,ue=Ue+Se(te,ye++),ke+=_(te,q,R,ue,se);else if(ue==="object"){if(typeof N.then=="function")return _(ge(N),q,R,te,se);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ke}function J(N,q,R){if(N==null)return N;var te=[],se=0;return _(N,te,"","",function(ue){return q.call(R,ue,se++)}),te}function W(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(R){(N._status===0||N._status===-1)&&(N._status=1,N._result=R)},function(R){(N._status===0||N._status===-1)&&(N._status=2,N._result=R)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var he=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},K={map:J,forEach:function(N,q,R){J(N,function(){q.apply(this,arguments)},R)},count:function(N){var q=0;return J(N,function(){q++}),q},toArray:function(N){return J(N,function(q){return q})||[]},only:function(N){if(!re(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return we.Activity=v,we.Children=K,we.Component=A,we.Fragment=l,we.Profiler=o,we.PureComponent=O,we.StrictMode=r,we.Suspense=p,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,we.__COMPILER_RUNTIME={__proto__:null,c:function(N){return F.H.useMemoCache(N)}},we.cache=function(N){return function(){return N.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(N,q,R){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var te=E({},N.props),se=N.key;if(q!=null)for(ue in q.key!==void 0&&(se=""+q.key),q)!B.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||(te[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)te.children=R;else if(1<ue){for(var ke=Array(ue),Ue=0;Ue<ue;Ue++)ke[Ue]=arguments[Ue+2];te.children=ke}return $(N.type,se,te)},we.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},we.createElement=function(N,q,R){var te,se={},ue=null;if(q!=null)for(te in q.key!==void 0&&(ue=""+q.key),q)B.call(q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(se[te]=q[te]);var ke=arguments.length-2;if(ke===1)se.children=R;else if(1<ke){for(var Ue=Array(ke),ye=0;ye<ke;ye++)Ue[ye]=arguments[ye+2];se.children=Ue}if(N&&N.defaultProps)for(te in ke=N.defaultProps,ke)se[te]===void 0&&(se[te]=ke[te]);return $(N,ue,se)},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:m,render:N}},we.isValidElement=re,we.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:W}},we.memo=function(N,q){return{$$typeof:g,type:N,compare:q===void 0?null:q}},we.startTransition=function(N){var q=F.T,R={};F.T=R;try{var te=N(),se=F.S;se!==null&&se(R,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(ne,he)}catch(ue){he(ue)}finally{q!==null&&R.types!==null&&(q.types=R.types),F.T=q}},we.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},we.use=function(N){return F.H.use(N)},we.useActionState=function(N,q,R){return F.H.useActionState(N,q,R)},we.useCallback=function(N,q){return F.H.useCallback(N,q)},we.useContext=function(N){return F.H.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N,q){return F.H.useDeferredValue(N,q)},we.useEffect=function(N,q){return F.H.useEffect(N,q)},we.useEffectEvent=function(N){return F.H.useEffectEvent(N)},we.useId=function(){return F.H.useId()},we.useImperativeHandle=function(N,q,R){return F.H.useImperativeHandle(N,q,R)},we.useInsertionEffect=function(N,q){return F.H.useInsertionEffect(N,q)},we.useLayoutEffect=function(N,q){return F.H.useLayoutEffect(N,q)},we.useMemo=function(N,q){return F.H.useMemo(N,q)},we.useOptimistic=function(N,q){return F.H.useOptimistic(N,q)},we.useReducer=function(N,q,R){return F.H.useReducer(N,q,R)},we.useRef=function(N){return F.H.useRef(N)},we.useState=function(N){return F.H.useState(N)},we.useSyncExternalStore=function(N,q,R){return F.H.useSyncExternalStore(N,q,R)},we.useTransition=function(){return F.H.useTransition()},we.version="19.2.4",we}var Zp;function rf(){return Zp||(Zp=1,Ju.exports=tw()),Ju.exports}var S=rf(),$u={exports:{}},ei={},Wu={exports:{}},Iu={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Jp;function aw(){return Jp||(Jp=1,(function(a){function n(_,J){var W=_.length;_.push(J);e:for(;0<W;){var he=W-1>>>1,K=_[he];if(0<o(K,J))_[he]=J,_[W]=K,W=he;else break e}}function l(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var J=_[0],W=_.pop();if(W!==J){_[0]=W;e:for(var he=0,K=_.length,N=K>>>1;he<N;){var q=2*(he+1)-1,R=_[q],te=q+1,se=_[te];if(0>o(R,W))te<K&&0>o(se,R)?(_[he]=se,_[te]=W,he=te):(_[he]=R,_[q]=W,he=q);else if(te<K&&0>o(se,W))_[he]=se,_[te]=W,he=te;else break e}}return J}function o(_,J){var W=_.sortIndex-J.sortIndex;return W!==0?W:_.id-J.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,v=null,w=3,k=!1,T=!1,E=!1,M=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function H(_){for(var J=l(g);J!==null;){if(J.callback===null)r(g);else if(J.startTime<=_)r(g),J.sortIndex=J.expirationTime,n(p,J);else break;J=l(g)}}function X(_){if(E=!1,H(_),!T)if(l(p)!==null)T=!0,ne||(ne=!0,me());else{var J=l(g);J!==null&&ge(X,J.startTime-_)}}var ne=!1,F=-1,B=5,$=-1;function ee(){return M?!0:!(a.unstable_now()-$<B)}function re(){if(M=!1,ne){var _=a.unstable_now();$=_;var J=!0;try{e:{T=!1,E&&(E=!1,z(F),F=-1),k=!0;var W=w;try{t:{for(H(_),v=l(p);v!==null&&!(v.expirationTime>_&&ee());){var he=v.callback;if(typeof he=="function"){v.callback=null,w=v.priorityLevel;var K=he(v.expirationTime<=_);if(_=a.unstable_now(),typeof K=="function"){v.callback=K,H(_),J=!0;break t}v===l(p)&&r(p),H(_)}else r(p);v=l(p)}if(v!==null)J=!0;else{var N=l(g);N!==null&&ge(X,N.startTime-_),J=!1}}break e}finally{v=null,w=W,k=!1}J=void 0}}finally{J?me():ne=!1}}}var me;if(typeof O=="function")me=function(){O(re)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,Se=Re.port2;Re.port1.onmessage=re,me=function(){Se.postMessage(null)}}else me=function(){A(re,0)};function ge(_,J){F=A(function(){_(a.unstable_now())},J)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(_){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var W=w;w=J;try{return _()}finally{w=W}},a.unstable_requestPaint=function(){M=!0},a.unstable_runWithPriority=function(_,J){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=w;w=_;try{return J()}finally{w=W}},a.unstable_scheduleCallback=function(_,J,W){var he=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?he+W:he):W=he,_){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=W+K,_={id:y++,callback:J,priorityLevel:_,startTime:W,expirationTime:K,sortIndex:-1},W>he?(_.sortIndex=W,n(g,_),l(p)===null&&_===l(g)&&(E?(z(F),F=-1):E=!0,ge(X,W-he))):(_.sortIndex=K,n(p,_),T||k||(T=!0,ne||(ne=!0,me()))),_},a.unstable_shouldYield=ee,a.unstable_wrapCallback=function(_){var J=w;return function(){var W=w;w=J;try{return _.apply(this,arguments)}finally{w=W}}}})(Iu)),Iu}var $p;function nw(){return $p||($p=1,Wu.exports=aw()),Wu.exports}var ed={exports:{}},Tt={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Wp;function sw(){if(Wp)return Tt;Wp=1;var a=rf();function n(p){var g="https://react.dev/errors/"+p;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 #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tt.createPortal=function(p,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(n(299));return f(p,g,null,y)},Tt.flushSync=function(p){var g=h.T,y=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=g,r.p=y,r.d.f()}},Tt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},Tt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Tt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:k}):y==="script"&&r.d.X(p,{crossOrigin:v,integrity:w,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Tt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},Tt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin);r.d.L(p,y,{crossOrigin:v,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})}},Tt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},Tt.requestFormReset=function(p){r.d.r(p)},Tt.unstable_batchedUpdates=function(p,g){return p(g)},Tt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},Tt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var Ip;function lw(){if(Ip)return ed.exports;Ip=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),ed.exports=sw(),ed.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var eg;function iw(){if(eg)return ei;eg=1;var a=nw(),n=rf(),l=lw();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,i=t;;){var c=s.return;if(c===null)break;var u=c.alternate;if(u===null){if(i=c.return,i!==null){s=i;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===s)return p(c),e;if(u===i)return p(c),t;u=u.sibling}throw Error(r(188))}if(s.return!==i.return)s=c,i=u;else{for(var x=!1,b=c.child;b;){if(b===s){x=!0,s=c,i=u;break}if(b===i){x=!0,i=c,s=u;break}b=b.sibling}if(!x){for(b=u.child;b;){if(b===s){x=!0,s=u,i=c;break}if(b===i){x=!0,i=u,s=c;break}b=b.sibling}if(!x)throw Error(r(189))}}if(s.alternate!==i)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),O=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case M:return"StrictMode";case X:return"Suspense";case ne:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case O:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var ge=Array.isArray,_=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},he=[],K=-1;function N(e){return{current:e}}function q(e){0>K||(e.current=he[K],he[K]=null,K--)}function R(e,t){K++,he[K]=e.current,e.current=t}var te=N(null),se=N(null),ue=N(null),ke=N(null);function Ue(e,t){switch(R(ue,t),R(se,e),R(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(te),R(te,e)}function ye(){q(te),q(se),q(ue)}function jt(e){e.memoizedState!==null&&R(ke,e);var t=te.current,s=gp(t,e.type);t!==s&&(R(se,e),R(te,s))}function gt(e){se.current===e&&(q(te),q(se)),ke.current===e&&(q(ke),Zl._currentValue=W)}var le,ae;function be(e){if(le===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||"",ae=-1<s.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+le+e+ae}var Ie=!1;function nt(e,t){if(!e||Ie)return"";Ie=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Y){var L=Y}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(Y){L=Y}e.call(Q.prototype)}}else{try{throw Error()}catch(Y){L=Y}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(Y){if(Y&&L&&typeof Y.stack=="string")return[Y.stack,L.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),x=u[0],b=u[1];if(x&&b){var j=x.split(`
|
||
`),U=b.split(`
|
||
`);for(c=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(i===j.length||c===U.length)for(i=j.length-1,c=U.length-1;1<=i&&0<=c&&j[i]!==U[c];)c--;for(;1<=i&&0<=c;i--,c--)if(j[i]!==U[c]){if(i!==1||c!==1)do if(i--,c--,0>c||j[i]!==U[c]){var G=`
|
||
`+j[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=c);break}}}finally{Ie=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?be(s):""}function ra(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return e.child!==t&&t!==null?be("Suspense Fallback"):be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return be("Activity");default:return""}}function Nt(e){try{var t="",s=null;do t+=ra(e,s),s=e,e=e.return;while(e);return t}catch(i){return`
|
||
Error generating stack: `+i.message+`
|
||
`+i.stack}}var ss=Object.prototype.hasOwnProperty,ls=a.unstable_scheduleCallback,is=a.unstable_cancelCallback,Z=a.unstable_shouldYield,ve=a.unstable_requestPaint,I=a.unstable_now,Ob=a.unstable_getCurrentPriorityLevel,Ff=a.unstable_ImmediatePriority,Kf=a.unstable_UserBlockingPriority,Ti=a.unstable_NormalPriority,zb=a.unstable_LowPriority,Zf=a.unstable_IdlePriority,_b=a.log,Vb=a.unstable_setDisableYieldValue,rl=null,Ut=null;function Fa(e){if(typeof _b=="function"&&Vb(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(rl,e)}catch{}}var Lt=Math.clz32?Math.clz32:Bb,Ub=Math.log,Lb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(Ub(e)/Lb|0)|0}var Ei=256,Ci=262144,Mi=4194304;function Dn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ai(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var c=0,u=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~u,i!==0?c=Dn(i):(x&=b,x!==0?c=Dn(x):s||(s=b&~e,s!==0&&(c=Dn(s))))):(b=i&~u,b!==0?c=Dn(b):x!==0?c=Dn(x):s||(s=i&~e,s!==0&&(c=Dn(s)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,s=t&-t,u>=s||u===32&&(s&4194048)!==0)?t:c}function ol(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jf(){var e=Mi;return Mi<<=1,(Mi&62914560)===0&&(Mi=4194304),e}function Uo(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yb(e,t,s,i,c,u){var x=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,j=e.expirationTimes,U=e.hiddenUpdates;for(s=x&~s;0<s;){var G=31-Lt(s),Q=1<<G;b[G]=0,j[G]=-1;var L=U[G];if(L!==null)for(U[G]=null,G=0;G<L.length;G++){var Y=L[G];Y!==null&&(Y.lane&=-536870913)}s&=~Q}i!==0&&$f(e,i,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(x&~t))}function $f(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Lt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|s&261930}function Wf(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var i=31-Lt(s),c=1<<i;c&t|e[i]&t&&(e[i]|=t),s&=~c}}function If(e,t){var s=t&-t;return s=(s&42)!==0?1:Lo(s),(s&(e.suspendedLanes|t))!==0?0:s}function Lo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function eh(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Bp(e.type))}function th(e,t){var s=J.p;try{return J.p=e,t()}finally{J.p=s}}var Ka=Math.random().toString(36).slice(2),xt="__reactFiber$"+Ka,At="__reactProps$"+Ka,rs="__reactContainer$"+Ka,Ho="__reactEvents$"+Ka,qb="__reactListeners$"+Ka,Gb="__reactHandles$"+Ka,ah="__reactResources$"+Ka,ul="__reactMarker$"+Ka;function Yo(e){delete e[xt],delete e[At],delete e[Ho],delete e[qb],delete e[Gb]}function os(e){var t=e[xt];if(t)return t;for(var s=e.parentNode;s;){if(t=s[rs]||s[xt]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=kp(e);e!==null;){if(s=e[xt])return s;e=kp(e)}return t}e=s,s=e.parentNode}return null}function cs(e){if(e=e[xt]||e[rs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function us(e){var t=e[ah];return t||(t=e[ah]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[ul]=!0}var nh=new Set,sh={};function Rn(e,t){ds(e,t),ds(e+"Capture",t)}function ds(e,t){for(sh[e]=t,e=0;e<t.length;e++)nh.add(t[e])}var Pb=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]*$"),lh={},ih={};function Xb(e){return ss.call(ih,e)?!0:ss.call(lh,e)?!1:Pb.test(e)?ih[e]=!0:(lh[e]=!0,!1)}function Di(e,t,s){if(Xb(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function Ri(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function Na(e,t,s,i){if(i===null)e.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+i)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qb(e,t,s){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,u=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){s=""+x,u.call(this,x)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qo(e){if(!e._valueTracker){var t=rh(e)?"checked":"value";e._valueTracker=Qb(e,t,""+e[t])}}function oh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),i="";return e&&(i=rh(e)?e.checked?"true":"false":e.value),e=i,e!==s?(t.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Fb=/[\n"\\]/g;function Zt(e){return e.replace(Fb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Go(e,t,s,i,c,u,x,b){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Po(e,x,Kt(t)):s!=null?Po(e,x,Kt(s)):i!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Kt(b):e.removeAttribute("name")}function ch(e,t,s,i,c,u,x,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||s!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){qo(e);return}s=s!=null?""+Kt(s):"",t=t!=null?""+Kt(t):s,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),qo(e)}function Po(e,t,s){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function fs(e,t,s,i){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&i&&(e[s].defaultSelected=!0)}else{for(s=""+Kt(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function uh(e,t,s){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+Kt(s):""}function dh(e,t,s,i){if(t==null){if(i!=null){if(s!=null)throw Error(r(92));if(ge(i)){if(1<i.length)throw Error(r(93));i=i[0]}s=i}s==null&&(s=""),t=s}s=Kt(t),e.defaultValue=s,i=e.textContent,i===s&&i!==""&&i!==null&&(e.value=i),qo(e)}function hs(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Kb=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 fh(e,t,s){var i=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,s):typeof s!="number"||s===0||Kb.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function hh(e,t,s){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,s!=null){for(var i in s)!s.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var c in t)i=t[c],t.hasOwnProperty(c)&&s[c]!==i&&fh(e,c,i)}else for(var u in t)t.hasOwnProperty(u)&&fh(e,u,t[u])}function Xo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zb=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"]]),Jb=/^[\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 zi(e){return Jb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ta(){}var Qo=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ms=null,ps=null;function mh(e){var t=cs(e);if(t&&(e=t.stateNode)){var s=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Go(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Zt(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var i=s[t];if(i!==e&&i.form===e.form){var c=i[At]||null;if(!c)throw Error(r(90));Go(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<s.length;t++)i=s[t],i.form===e.form&&oh(i)}break e;case"textarea":uh(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&fs(e,!!s.multiple,t,!1)}}}var Ko=!1;function ph(e,t,s){if(Ko)return e(t,s);Ko=!0;try{var i=e(t);return i}finally{if(Ko=!1,(ms!==null||ps!==null)&&(wr(),ms&&(t=ms,e=ps,ps=ms=null,mh(t),e)))for(t=0;t<e.length;t++)mh(e[t])}}function fl(e,t){var s=e.stateNode;if(s===null)return null;var i=s[At]||null;if(i===null)return null;s=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(Ea)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{Zo=!1}var Za=null,Jo=null,_i=null;function gh(){if(_i)return _i;var e,t=Jo,s=t.length,i,c="value"in Za?Za.value:Za.textContent,u=c.length;for(e=0;e<s&&t[e]===c[e];e++);var x=s-e;for(i=1;i<=x&&t[s-i]===c[u-i];i++);return _i=c.slice(e,1<i?1-i:void 0)}function Vi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ui(){return!0}function xh(){return!1}function Dt(e){function t(s,i,c,u,x){this._reactName=s,this._targetInst=c,this.type=i,this.nativeEvent=u,this.target=x,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(s=e[b],this[b]=s?s(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ui:xh,this.isPropagationStopped=xh,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ui)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ui)},persist:function(){},isPersistent:Ui}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Li=Dt(On),ml=v({},On,{view:0,detail:0}),$b=Dt(ml),$o,Wo,pl,Bi=v({},ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pl&&(pl&&e.type==="mousemove"?($o=e.screenX-pl.screenX,Wo=e.screenY-pl.screenY):Wo=$o=0,pl=e),$o)},movementY:function(e){return"movementY"in e?e.movementY:Wo}}),yh=Dt(Bi),Wb=v({},Bi,{dataTransfer:0}),Ib=Dt(Wb),e1=v({},ml,{relatedTarget:0}),Io=Dt(e1),t1=v({},On,{animationName:0,elapsedTime:0,pseudoElement:0}),a1=Dt(t1),n1=v({},On,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s1=Dt(n1),l1=v({},On,{data:0}),vh=Dt(l1),i1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r1={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"},o1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o1[e])?!!t[e]:!1}function ec(){return c1}var u1=v({},ml,{key:function(e){if(e.key){var t=i1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),d1=Dt(u1),f1=v({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bh=Dt(f1),h1=v({},ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),m1=Dt(h1),p1=v({},On,{propertyName:0,elapsedTime:0,pseudoElement:0}),g1=Dt(p1),x1=v({},Bi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),y1=Dt(x1),v1=v({},On,{newState:0,oldState:0}),b1=Dt(v1),w1=[9,13,27,32],tc=Ea&&"CompositionEvent"in window,gl=null;Ea&&"documentMode"in document&&(gl=document.documentMode);var S1=Ea&&"TextEvent"in window&&!gl,wh=Ea&&(!tc||gl&&8<gl&&11>=gl),Sh=" ",kh=!1;function jh(e,t){switch(e){case"keyup":return w1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gs=!1;function k1(e,t){switch(e){case"compositionend":return Nh(t);case"keypress":return t.which!==32?null:(kh=!0,Sh);case"textInput":return e=t.data,e===Sh&&kh?null:e;default:return null}}function j1(e,t){if(gs)return e==="compositionend"||!tc&&jh(e,t)?(e=gh(),_i=Jo=Za=null,gs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wh&&t.locale!=="ko"?null:t.data;default:return null}}var N1={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 Th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N1[e.type]:t==="textarea"}function Eh(e,t,s,i){ms?ps?ps.push(i):ps=[i]:ms=i,t=Cr(t,"onChange"),0<t.length&&(s=new Li("onChange","change",null,s,i),e.push({event:s,listeners:t}))}var xl=null,yl=null;function T1(e){cp(e,0)}function Hi(e){var t=dl(e);if(oh(t))return e}function Ch(e,t){if(e==="change")return t}var Mh=!1;if(Ea){var ac;if(Ea){var nc="oninput"in document;if(!nc){var Ah=document.createElement("div");Ah.setAttribute("oninput","return;"),nc=typeof Ah.oninput=="function"}ac=nc}else ac=!1;Mh=ac&&(!document.documentMode||9<document.documentMode)}function Dh(){xl&&(xl.detachEvent("onpropertychange",Rh),yl=xl=null)}function Rh(e){if(e.propertyName==="value"&&Hi(yl)){var t=[];Eh(t,yl,e,Fo(e)),ph(T1,t)}}function E1(e,t,s){e==="focusin"?(Dh(),xl=t,yl=s,xl.attachEvent("onpropertychange",Rh)):e==="focusout"&&Dh()}function C1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hi(yl)}function M1(e,t){if(e==="click")return Hi(t)}function A1(e,t){if(e==="input"||e==="change")return Hi(t)}function D1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:D1;function vl(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(i=0;i<s.length;i++){var c=s[i];if(!ss.call(t,c)||!Bt(e[c],t[c]))return!1}return!0}function Oh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,t){var s=Oh(e);e=0;for(var i;s;){if(s.nodeType===3){if(i=e+s.textContent.length,e<=t&&i>=t)return{node:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Oh(s)}}function _h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Oi(e.document)}return t}function sc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var R1=Ea&&"documentMode"in document&&11>=document.documentMode,xs=null,lc=null,bl=null,ic=!1;function Uh(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ic||xs==null||xs!==Oi(i)||(i=xs,"selectionStart"in i&&sc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),bl&&vl(bl,i)||(bl=i,i=Cr(lc,"onSelect"),0<i.length&&(t=new Li("onSelect","select",null,t,s),e.push({event:t,listeners:i}),t.target=xs)))}function zn(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ys={animationend:zn("Animation","AnimationEnd"),animationiteration:zn("Animation","AnimationIteration"),animationstart:zn("Animation","AnimationStart"),transitionrun:zn("Transition","TransitionRun"),transitionstart:zn("Transition","TransitionStart"),transitioncancel:zn("Transition","TransitionCancel"),transitionend:zn("Transition","TransitionEnd")},rc={},Lh={};Ea&&(Lh=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function _n(e){if(rc[e])return rc[e];if(!ys[e])return e;var t=ys[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Lh)return rc[e]=t[s];return e}var Bh=_n("animationend"),Hh=_n("animationiteration"),Yh=_n("animationstart"),O1=_n("transitionrun"),z1=_n("transitionstart"),_1=_n("transitioncancel"),qh=_n("transitionend"),Gh=new Map,oc="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(" ");oc.push("scrollEnd");function oa(e,t){Gh.set(e,t),Rn(t,[e])}var Yi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],vs=0,cc=0;function qi(){for(var e=vs,t=cc=vs=0;t<e;){var s=Jt[t];Jt[t++]=null;var i=Jt[t];Jt[t++]=null;var c=Jt[t];Jt[t++]=null;var u=Jt[t];if(Jt[t++]=null,i!==null&&c!==null){var x=i.pending;x===null?c.next=c:(c.next=x.next,x.next=c),i.pending=c}u!==0&&Ph(s,c,u)}}function Gi(e,t,s,i){Jt[vs++]=e,Jt[vs++]=t,Jt[vs++]=s,Jt[vs++]=i,cc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function uc(e,t,s,i){return Gi(e,t,s,i),Pi(e)}function Vn(e,t){return Gi(e,null,null,t),Pi(e)}function Ph(e,t,s){e.lanes|=s;var i=e.alternate;i!==null&&(i.lanes|=s);for(var c=!1,u=e.return;u!==null;)u.childLanes|=s,i=u.alternate,i!==null&&(i.childLanes|=s),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-Lt(s),e=u.hiddenUpdates,i=e[c],i===null?e[c]=[t]:i.push(t),t.lane=s|536870912),u):null}function Pi(e){if(50<ql)throw ql=0,vu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bs={};function V1(e,t,s,i){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,s,i){return new V1(e,t,s,i)}function dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ca(e,t){var s=e.alternate;return s===null?(s=Ht(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Xh(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xi(e,t,s,i,c,u){var x=0;if(i=e,typeof e=="function")dc(e)&&(x=1);else if(typeof e=="string")x=Y2(e,s,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Ht(31,s,t,c),e.elementType=$,e.lanes=u,e;case E:return Un(s.children,c,u,t);case M:x=8,c|=24;break;case A:return e=Ht(12,s,t,c|2),e.elementType=A,e.lanes=u,e;case X:return e=Ht(13,s,t,c),e.elementType=X,e.lanes=u,e;case ne:return e=Ht(19,s,t,c),e.elementType=ne,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:x=10;break e;case z:x=9;break e;case H:x=11;break e;case F:x=14;break e;case B:x=16,i=null;break e}x=29,s=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=Ht(x,s,t,c),t.elementType=e,t.type=i,t.lanes=u,t}function Un(e,t,s,i){return e=Ht(7,e,i,t),e.lanes=s,e}function fc(e,t,s){return e=Ht(6,e,null,t),e.lanes=s,e}function Qh(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function hc(e,t,s){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fh=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var s=Fh.get(e);return s!==void 0?s:(t={value:e,source:t,stack:Nt(t)},Fh.set(e,t),t)}return{value:e,source:t,stack:Nt(t)}}var ws=[],Ss=0,Qi=null,wl=0,Wt=[],It=0,Ja=null,xa=1,ya="";function Ma(e,t){ws[Ss++]=wl,ws[Ss++]=Qi,Qi=e,wl=t}function Kh(e,t,s){Wt[It++]=xa,Wt[It++]=ya,Wt[It++]=Ja,Ja=e;var i=xa;e=ya;var c=32-Lt(i)-1;i&=~(1<<c),s+=1;var u=32-Lt(t)+c;if(30<u){var x=c-c%5;u=(i&(1<<x)-1).toString(32),i>>=x,c-=x,xa=1<<32-Lt(t)+c|s<<c|i,ya=u+e}else xa=1<<u|s<<c|i,ya=e}function mc(e){e.return!==null&&(Ma(e,1),Kh(e,1,0))}function pc(e){for(;e===Qi;)Qi=ws[--Ss],ws[Ss]=null,wl=ws[--Ss],ws[Ss]=null;for(;e===Ja;)Ja=Wt[--It],Wt[It]=null,ya=Wt[--It],Wt[It]=null,xa=Wt[--It],Wt[It]=null}function Zh(e,t){Wt[It++]=xa,Wt[It++]=ya,Wt[It++]=Ja,xa=t.id,ya=t.overflow,Ja=e}var yt=null,Qe=null,Oe=!1,$a=null,ea=!1,gc=Error(r(519));function Wa(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sl($t(t,e)),gc}function Jh(e){var t=e.stateNode,s=e.type,i=e.memoizedProps;switch(t[xt]=e,t[At]=i,s){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(s=0;s<Pl.length;s++)Me(Pl[s],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),ch(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),dh(t,i.value,i.defaultValue,i.children)}s=i.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||i.suppressHydrationWarning===!0||hp(t.textContent,s)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=Ta),t=!0):t=!1,t||Wa(e,!0)}function $h(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:ea=!1;return;case 27:case 3:ea=!0;return;default:yt=yt.return}}function ks(e){if(e!==yt)return!1;if(!Oe)return $h(e),Oe=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||zu(e.type,e.memoizedProps)),s=!s),s&&Qe&&Wa(e),$h(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=Sp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=Sp(e)}else t===27?(t=Qe,hn(e.type)?(e=Bu,Bu=null,Qe=e):Qe=t):Qe=yt?aa(e.stateNode.nextSibling):null;return!0}function Ln(){Qe=yt=null,Oe=!1}function xc(){var e=$a;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),$a=null),e}function Sl(e){$a===null?$a=[e]:$a.push(e)}var yc=N(null),Bn=null,Aa=null;function Ia(e,t,s){R(yc,t._currentValue),t._currentValue=s}function Da(e){e._currentValue=yc.current,q(yc)}function vc(e,t,s){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===s)break;e=e.return}}function bc(e,t,s,i){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var x=c.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=c;for(var j=0;j<t.length;j++)if(b.context===t[j]){u.lanes|=s,b=u.alternate,b!==null&&(b.lanes|=s),vc(u.return,s,e),i||(x=null);break e}u=b.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(r(341));x.lanes|=s,u=x.alternate,u!==null&&(u.lanes|=s),vc(x,s,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function js(e,t,s,i){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var b=c.type;Bt(c.pendingProps.value,x.value)||(e!==null?e.push(b):e=[b])}}else if(c===ke.current){if(x=c.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Zl):e=[Zl])}c=c.return}e!==null&&bc(t,e,s,i),t.flags|=262144}function Fi(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hn(e){Bn=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Wh(Bn,e)}function Ki(e,t){return Bn===null&&Hn(e),Wh(e,t)}function Wh(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Aa===null){if(e===null)throw Error(r(308));Aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Aa=Aa.next=t;return s}var U1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},L1=a.unstable_scheduleCallback,B1=a.unstable_NormalPriority,it={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wc(){return{controller:new U1,data:new Map,refCount:0}}function kl(e){e.refCount--,e.refCount===0&&L1(B1,function(){e.controller.abort()})}var jl=null,Sc=0,Ns=0,Ts=null;function H1(e,t){if(jl===null){var s=jl=[];Sc=0,Ns=Nu(),Ts={status:"pending",value:void 0,then:function(i){s.push(i)}}}return Sc++,t.then(Ih,Ih),t}function Ih(){if(--Sc===0&&jl!==null){Ts!==null&&(Ts.status="fulfilled");var e=jl;jl=null,Ns=0,Ts=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Y1(e,t){var s=[],i={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var c=0;c<s.length;c++)(0,s[c])(t)},function(c){for(i.status="rejected",i.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),i}var em=_.S;_.S=function(e,t){U0=I(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&H1(e,t),em!==null&&em(e,t)};var Yn=N(null);function kc(){var e=Yn.current;return e!==null?e:Pe.pooledCache}function Zi(e,t){t===null?R(Yn,Yn.current):R(Yn,t.pool)}function tm(){var e=kc();return e===null?null:{parent:it._currentValue,pool:e}}var Es=Error(r(460)),jc=Error(r(474)),Ji=Error(r(542)),$i={then:function(){}};function am(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nm(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(Ta,Ta),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e;default:if(typeof t.status=="string")t.then(Ta,Ta);else{if(e=Pe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=i}},function(i){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e}throw Gn=t,Es}}function qn(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Gn=s,Es):s}}var Gn=null;function sm(){if(Gn===null)throw Error(r(459));var e=Gn;return Gn=null,e}function lm(e){if(e===Es||e===Ji)throw Error(r(483))}var Cs=null,Nl=0;function Wi(e){var t=Nl;return Nl+=1,Cs===null&&(Cs=[]),nm(Cs,e,t)}function Tl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ii(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function im(e){function t(D,C){if(e){var V=D.deletions;V===null?(D.deletions=[C],D.flags|=16):V.push(C)}}function s(D,C){if(!e)return null;for(;C!==null;)t(D,C),C=C.sibling;return null}function i(D){for(var C=new Map;D!==null;)D.key!==null?C.set(D.key,D):C.set(D.index,D),D=D.sibling;return C}function c(D,C){return D=Ca(D,C),D.index=0,D.sibling=null,D}function u(D,C,V){return D.index=V,e?(V=D.alternate,V!==null?(V=V.index,V<C?(D.flags|=67108866,C):V):(D.flags|=67108866,C)):(D.flags|=1048576,C)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function b(D,C,V,P){return C===null||C.tag!==6?(C=fc(V,D.mode,P),C.return=D,C):(C=c(C,V),C.return=D,C)}function j(D,C,V,P){var pe=V.type;return pe===E?G(D,C,V.props.children,P,V.key):C!==null&&(C.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===B&&qn(pe)===C.type)?(C=c(C,V.props),Tl(C,V),C.return=D,C):(C=Xi(V.type,V.key,V.props,null,D.mode,P),Tl(C,V),C.return=D,C)}function U(D,C,V,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==V.containerInfo||C.stateNode.implementation!==V.implementation?(C=hc(V,D.mode,P),C.return=D,C):(C=c(C,V.children||[]),C.return=D,C)}function G(D,C,V,P,pe){return C===null||C.tag!==7?(C=Un(V,D.mode,P,pe),C.return=D,C):(C=c(C,V),C.return=D,C)}function Q(D,C,V){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=fc(""+C,D.mode,V),C.return=D,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return V=Xi(C.type,C.key,C.props,null,D.mode,V),Tl(V,C),V.return=D,V;case T:return C=hc(C,D.mode,V),C.return=D,C;case B:return C=qn(C),Q(D,C,V)}if(ge(C)||me(C))return C=Un(C,D.mode,V,null),C.return=D,C;if(typeof C.then=="function")return Q(D,Wi(C),V);if(C.$$typeof===O)return Q(D,Ki(D,C),V);Ii(D,C)}return null}function L(D,C,V,P){var pe=C!==null?C.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return pe!==null?null:b(D,C,""+V,P);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case k:return V.key===pe?j(D,C,V,P):null;case T:return V.key===pe?U(D,C,V,P):null;case B:return V=qn(V),L(D,C,V,P)}if(ge(V)||me(V))return pe!==null?null:G(D,C,V,P,null);if(typeof V.then=="function")return L(D,C,Wi(V),P);if(V.$$typeof===O)return L(D,C,Ki(D,V),P);Ii(D,V)}return null}function Y(D,C,V,P,pe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return D=D.get(V)||null,b(C,D,""+P,pe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case k:return D=D.get(P.key===null?V:P.key)||null,j(C,D,P,pe);case T:return D=D.get(P.key===null?V:P.key)||null,U(C,D,P,pe);case B:return P=qn(P),Y(D,C,V,P,pe)}if(ge(P)||me(P))return D=D.get(V)||null,G(C,D,P,pe,null);if(typeof P.then=="function")return Y(D,C,V,Wi(P),pe);if(P.$$typeof===O)return Y(D,C,V,Ki(C,P),pe);Ii(C,P)}return null}function ie(D,C,V,P){for(var pe=null,ze=null,fe=C,Te=C=0,De=null;fe!==null&&Te<V.length;Te++){fe.index>Te?(De=fe,fe=null):De=fe.sibling;var _e=L(D,fe,V[Te],P);if(_e===null){fe===null&&(fe=De);break}e&&fe&&_e.alternate===null&&t(D,fe),C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e,fe=De}if(Te===V.length)return s(D,fe),Oe&&Ma(D,Te),pe;if(fe===null){for(;Te<V.length;Te++)fe=Q(D,V[Te],P),fe!==null&&(C=u(fe,C,Te),ze===null?pe=fe:ze.sibling=fe,ze=fe);return Oe&&Ma(D,Te),pe}for(fe=i(fe);Te<V.length;Te++)De=Y(fe,D,Te,V[Te],P),De!==null&&(e&&De.alternate!==null&&fe.delete(De.key===null?Te:De.key),C=u(De,C,Te),ze===null?pe=De:ze.sibling=De,ze=De);return e&&fe.forEach(function(yn){return t(D,yn)}),Oe&&Ma(D,Te),pe}function xe(D,C,V,P){if(V==null)throw Error(r(151));for(var pe=null,ze=null,fe=C,Te=C=0,De=null,_e=V.next();fe!==null&&!_e.done;Te++,_e=V.next()){fe.index>Te?(De=fe,fe=null):De=fe.sibling;var yn=L(D,fe,_e.value,P);if(yn===null){fe===null&&(fe=De);break}e&&fe&&yn.alternate===null&&t(D,fe),C=u(yn,C,Te),ze===null?pe=yn:ze.sibling=yn,ze=yn,fe=De}if(_e.done)return s(D,fe),Oe&&Ma(D,Te),pe;if(fe===null){for(;!_e.done;Te++,_e=V.next())_e=Q(D,_e.value,P),_e!==null&&(C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e);return Oe&&Ma(D,Te),pe}for(fe=i(fe);!_e.done;Te++,_e=V.next())_e=Y(fe,D,Te,_e.value,P),_e!==null&&(e&&_e.alternate!==null&&fe.delete(_e.key===null?Te:_e.key),C=u(_e,C,Te),ze===null?pe=_e:ze.sibling=_e,ze=_e);return e&&fe.forEach(function(W2){return t(D,W2)}),Oe&&Ma(D,Te),pe}function Ge(D,C,V,P){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case k:e:{for(var pe=V.key;C!==null;){if(C.key===pe){if(pe=V.type,pe===E){if(C.tag===7){s(D,C.sibling),P=c(C,V.props.children),P.return=D,D=P;break e}}else if(C.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===B&&qn(pe)===C.type){s(D,C.sibling),P=c(C,V.props),Tl(P,V),P.return=D,D=P;break e}s(D,C);break}else t(D,C);C=C.sibling}V.type===E?(P=Un(V.props.children,D.mode,P,V.key),P.return=D,D=P):(P=Xi(V.type,V.key,V.props,null,D.mode,P),Tl(P,V),P.return=D,D=P)}return x(D);case T:e:{for(pe=V.key;C!==null;){if(C.key===pe)if(C.tag===4&&C.stateNode.containerInfo===V.containerInfo&&C.stateNode.implementation===V.implementation){s(D,C.sibling),P=c(C,V.children||[]),P.return=D,D=P;break e}else{s(D,C);break}else t(D,C);C=C.sibling}P=hc(V,D.mode,P),P.return=D,D=P}return x(D);case B:return V=qn(V),Ge(D,C,V,P)}if(ge(V))return ie(D,C,V,P);if(me(V)){if(pe=me(V),typeof pe!="function")throw Error(r(150));return V=pe.call(V),xe(D,C,V,P)}if(typeof V.then=="function")return Ge(D,C,Wi(V),P);if(V.$$typeof===O)return Ge(D,C,Ki(D,V),P);Ii(D,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,C!==null&&C.tag===6?(s(D,C.sibling),P=c(C,V),P.return=D,D=P):(s(D,C),P=fc(V,D.mode,P),P.return=D,D=P),x(D)):s(D,C)}return function(D,C,V,P){try{Nl=0;var pe=Ge(D,C,V,P);return Cs=null,pe}catch(fe){if(fe===Es||fe===Ji)throw fe;var ze=Ht(29,fe,null,D.mode);return ze.lanes=P,ze.return=D,ze}finally{}}}var Pn=im(!0),rm=im(!1),en=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function an(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ve&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=Pi(e),Ph(e,null,s),t}return Gi(e,i,t,s),Pi(e)}function El(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Wf(e,s)}}function Ec(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var c=null,u=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};u===null?c=u=x:u=u.next=x,s=s.next}while(s!==null);u===null?c=u=t:u=u.next=t}else c=u=t;s={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Cc=!1;function Cl(){if(Cc){var e=Ts;if(e!==null)throw e}}function Ml(e,t,s,i){Cc=!1;var c=e.updateQueue;en=!1;var u=c.firstBaseUpdate,x=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var j=b,U=j.next;j.next=null,x===null?u=U:x.next=U,x=j;var G=e.alternate;G!==null&&(G=G.updateQueue,b=G.lastBaseUpdate,b!==x&&(b===null?G.firstBaseUpdate=U:b.next=U,G.lastBaseUpdate=j))}if(u!==null){var Q=c.baseState;x=0,G=U=j=null,b=u;do{var L=b.lane&-536870913,Y=L!==b.lane;if(Y?(Ae&L)===L:(i&L)===L){L!==0&&L===Ns&&(Cc=!0),G!==null&&(G=G.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ie=e,xe=b;L=t;var Ge=s;switch(xe.tag){case 1:if(ie=xe.payload,typeof ie=="function"){Q=ie.call(Ge,Q,L);break e}Q=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=xe.payload,L=typeof ie=="function"?ie.call(Ge,Q,L):ie,L==null)break e;Q=v({},Q,L);break e;case 2:en=!0}}L=b.callback,L!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=c.callbacks,Y===null?c.callbacks=[L]:Y.push(L))}else Y={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},G===null?(U=G=Y,j=Q):G=G.next=Y,x|=L;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;Y=b,b=Y.next,Y.next=null,c.lastBaseUpdate=Y,c.shared.pending=null}}while(!0);G===null&&(j=Q),c.baseState=j,c.firstBaseUpdate=U,c.lastBaseUpdate=G,u===null&&(c.shared.lanes=0),on|=x,e.lanes=x,e.memoizedState=Q}}function om(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function cm(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)om(s[e],t)}var Ms=N(null),er=N(0);function um(e,t){e=Ha,R(er,e),R(Ms,t),Ha=e|t.baseLanes}function Mc(){R(er,Ha),R(Ms,Ms.current)}function Ac(){Ha=er.current,q(Ms),q(er)}var Yt=N(null),ta=null;function nn(e){var t=e.alternate;R(st,st.current&1),R(Yt,e),ta===null&&(t===null||Ms.current!==null||t.memoizedState!==null)&&(ta=e)}function Dc(e){R(st,st.current),R(Yt,e),ta===null&&(ta=e)}function dm(e){e.tag===22?(R(st,st.current),R(Yt,e),ta===null&&(ta=e)):sn()}function sn(){R(st,st.current),R(Yt,Yt.current)}function qt(e){q(Yt),ta===e&&(ta=null),q(st)}var st=N(0);function tr(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Uu(s)||Lu(s)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ra=0,je=null,Ye=null,rt=null,ar=!1,As=!1,Xn=!1,nr=0,Al=0,Ds=null,q1=0;function et(){throw Error(r(321))}function Rc(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Bt(e[s],t[s]))return!1;return!0}function Oc(e,t,s,i,c,u){return Ra=u,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Km:Kc,Xn=!1,u=s(i,c),Xn=!1,As&&(u=hm(t,s,i,c)),fm(e),u}function fm(e){_.H=Ol;var t=Ye!==null&&Ye.next!==null;if(Ra=0,rt=Ye=je=null,ar=!1,Al=0,Ds=null,t)throw Error(r(300));e===null||ot||(e=e.dependencies,e!==null&&Fi(e)&&(ot=!0))}function hm(e,t,s,i){je=e;var c=0;do{if(As&&(Ds=null),Al=0,As=!1,25<=c)throw Error(r(301));if(c+=1,rt=Ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Zm,u=t(s,i)}while(As);return u}function G1(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Dl(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(je.flags|=1024),t}function zc(){var e=nr!==0;return nr=0,e}function _c(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Vc(e){if(ar){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ar=!1}Ra=0,rt=Ye=je=null,As=!1,Al=nr=0,Ds=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?je.memoizedState=rt=e:rt=rt.next=e,rt}function lt(){if(Ye===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=rt===null?je.memoizedState:rt.next;if(t!==null)rt=t,Ye=e;else{if(e===null)throw je.alternate===null?Error(r(467)):Error(r(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},rt===null?je.memoizedState=rt=e:rt=rt.next=e}return rt}function sr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Dl(e){var t=Al;return Al+=1,Ds===null&&(Ds=[]),e=nm(Ds,e,t),t=je,(rt===null?t.memoizedState:rt.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Km:Kc),e}function lr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Dl(e);if(e.$$typeof===O)return vt(e)}throw Error(r(438,String(e)))}function Uc(e){var t=null,s=je.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var i=je.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=sr(),je.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),i=0;i<e;i++)s[i]=ee;return t.index++,s}function Oa(e,t){return typeof t=="function"?t(e):t}function ir(e){var t=lt();return Lc(t,Ye,e)}function Lc(e,t,s){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=s;var c=e.baseQueue,u=i.pending;if(u!==null){if(c!==null){var x=c.next;c.next=u.next,u.next=x}t.baseQueue=c=u,i.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var b=x=null,j=null,U=t,G=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(Ae&Q)===Q:(Ra&Q)===Q){var L=U.revertLane;if(L===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===Ns&&(G=!0);else if((Ra&L)===L){U=U.next,L===Ns&&(G=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(b=j=Q,x=u):j=j.next=Q,je.lanes|=L,on|=L;Q=U.action,Xn&&s(u,Q),u=U.hasEagerState?U.eagerState:s(u,Q)}else L={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(b=j=L,x=u):j=j.next=L,je.lanes|=Q,on|=Q;U=U.next}while(U!==null&&U!==t);if(j===null?x=u:j.next=b,!Bt(u,e.memoizedState)&&(ot=!0,G&&(s=Ts,s!==null)))throw s;e.memoizedState=u,e.baseState=x,e.baseQueue=j,i.lastRenderedState=u}return c===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Bc(e){var t=lt(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var i=s.dispatch,c=s.pending,u=t.memoizedState;if(c!==null){s.pending=null;var x=c=c.next;do u=e(u,x.action),x=x.next;while(x!==c);Bt(u,t.memoizedState)||(ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),s.lastRenderedState=u}return[u,i]}function mm(e,t,s){var i=je,c=lt(),u=Oe;if(u){if(s===void 0)throw Error(r(407));s=s()}else s=t();var x=!Bt((Ye||c).memoizedState,s);if(x&&(c.memoizedState=s,ot=!0),c=c.queue,qc(xm.bind(null,i,c,e),[e]),c.getSnapshot!==t||x||rt!==null&&rt.memoizedState.tag&1){if(i.flags|=2048,Rs(9,{destroy:void 0},gm.bind(null,i,c,s,t),null),Pe===null)throw Error(r(349));u||(Ra&127)!==0||pm(i,t,s)}return s}function pm(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=je.updateQueue,t===null?(t=sr(),je.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function gm(e,t,s,i){t.value=s,t.getSnapshot=i,ym(t)&&vm(e)}function xm(e,t,s){return s(function(){ym(t)&&vm(e)})}function ym(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Bt(e,s)}catch{return!0}}function vm(e){var t=Vn(e,2);t!==null&&Vt(t,e,2)}function Hc(e){var t=Et();if(typeof e=="function"){var s=e;if(e=s(),Xn){Fa(!0);try{s()}finally{Fa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t}function bm(e,t,s,i){return e.baseState=s,Lc(e,Ye,typeof i=="function"?i:Oa)}function P1(e,t,s,i,c){if(cr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){u.listeners.push(x)}};_.T!==null?s(!0):u.isTransition=!1,i(u),s=t.pending,s===null?(u.next=t.pending=u,wm(t,u)):(u.next=s.next,t.pending=s.next=u)}}function wm(e,t){var s=t.action,i=t.payload,c=e.state;if(t.isTransition){var u=_.T,x={};_.T=x;try{var b=s(c,i),j=_.S;j!==null&&j(x,b),Sm(e,t,b)}catch(U){Yc(e,t,U)}finally{u!==null&&x.types!==null&&(u.types=x.types),_.T=u}}else try{u=s(c,i),Sm(e,t,u)}catch(U){Yc(e,t,U)}}function Sm(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(i){km(e,t,i)},function(i){return Yc(e,t,i)}):km(e,t,s)}function km(e,t,s){t.status="fulfilled",t.value=s,jm(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,wm(e,s)))}function Yc(e,t,s){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=s,jm(t),t=t.next;while(t!==i)}e.action=null}function jm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nm(e,t){return t}function Tm(e,t){if(Oe){var s=Pe.formState;if(s!==null){e:{var i=je;if(Oe){if(Qe){t:{for(var c=Qe,u=ea;c.nodeType!==8;){if(!u){c=null;break t}if(c=aa(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Qe=aa(c.nextSibling),i=c.data==="F!";break e}}Wa(i)}i=!1}i&&(t=s[0])}}return s=Et(),s.memoizedState=s.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nm,lastRenderedState:t},s.queue=i,s=Xm.bind(null,je,i),i.dispatch=s,i=Hc(!1),u=Fc.bind(null,je,!1,i.queue),i=Et(),c={state:t,dispatch:null,action:e,pending:null},i.queue=c,s=P1.bind(null,je,c,u,s),c.dispatch=s,i.memoizedState=e,[t,s,!1]}function Em(e){var t=lt();return Cm(t,Ye,e)}function Cm(e,t,s){if(t=Lc(e,t,Nm)[0],e=ir(Oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Dl(t)}catch(x){throw x===Es?Ji:x}else i=t;t=lt();var c=t.queue,u=c.dispatch;return s!==t.memoizedState&&(je.flags|=2048,Rs(9,{destroy:void 0},X1.bind(null,c,s),null)),[i,u,e]}function X1(e,t){e.action=t}function Mm(e){var t=lt(),s=Ye;if(s!==null)return Cm(t,s,e);lt(),t=t.memoizedState,s=lt();var i=s.queue.dispatch;return s.memoizedState=e,[t,i,!1]}function Rs(e,t,s,i){return e={tag:e,create:s,deps:i,inst:t,next:null},t=je.updateQueue,t===null&&(t=sr(),je.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(i=s.next,s.next=e,e.next=i,t.lastEffect=e),e}function Am(){return lt().memoizedState}function rr(e,t,s,i){var c=Et();je.flags|=e,c.memoizedState=Rs(1|t,{destroy:void 0},s,i===void 0?null:i)}function or(e,t,s,i){var c=lt();i=i===void 0?null:i;var u=c.memoizedState.inst;Ye!==null&&i!==null&&Rc(i,Ye.memoizedState.deps)?c.memoizedState=Rs(t,u,s,i):(je.flags|=e,c.memoizedState=Rs(1|t,u,s,i))}function Dm(e,t){rr(8390656,8,e,t)}function qc(e,t){or(2048,8,e,t)}function Q1(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=sr(),je.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function Rm(e){var t=lt().memoizedState;return Q1({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Om(e,t){return or(4,2,e,t)}function zm(e,t){return or(4,4,e,t)}function _m(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vm(e,t,s){s=s!=null?s.concat([e]):null,or(4,4,_m.bind(null,t,e),s)}function Gc(){}function Um(e,t){var s=lt();t=t===void 0?null:t;var i=s.memoizedState;return t!==null&&Rc(t,i[1])?i[0]:(s.memoizedState=[e,t],e)}function Lm(e,t){var s=lt();t=t===void 0?null:t;var i=s.memoizedState;if(t!==null&&Rc(t,i[1]))return i[0];if(i=e(),Xn){Fa(!0);try{e()}finally{Fa(!1)}}return s.memoizedState=[i,t],i}function Pc(e,t,s){return s===void 0||(Ra&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=B0(),je.lanes|=e,on|=e,s)}function Bm(e,t,s,i){return Bt(s,t)?s:Ms.current!==null?(e=Pc(e,s,i),Bt(e,t)||(ot=!0),e):(Ra&42)===0||(Ra&1073741824)!==0&&(Ae&261930)===0?(ot=!0,e.memoizedState=s):(e=B0(),je.lanes|=e,on|=e,t)}function Hm(e,t,s,i,c){var u=J.p;J.p=u!==0&&8>u?u:8;var x=_.T,b={};_.T=b,Fc(e,!1,t,s);try{var j=c(),U=_.S;if(U!==null&&U(b,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var G=Y1(j,i);Rl(e,t,G,Xt(e))}else Rl(e,t,i,Xt(e))}catch(Q){Rl(e,t,{then:function(){},status:"rejected",reason:Q},Xt())}finally{J.p=u,x!==null&&b.types!==null&&(x.types=b.types),_.T=x}}function F1(){}function Xc(e,t,s,i){if(e.tag!==5)throw Error(r(476));var c=Ym(e).queue;Hm(e,c,t,W,s===null?F1:function(){return qm(e),s(i)})}function Ym(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:W},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qm(e){var t=Ym(e);t.next===null&&(t=e.alternate.memoizedState),Rl(e,t.next.queue,{},Xt())}function Qc(){return vt(Zl)}function Gm(){return lt().memoizedState}function Pm(){return lt().memoizedState}function K1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Xt();e=tn(s);var i=an(t,e,s);i!==null&&(Vt(i,t,s),El(i,t,s)),t={cache:wc()},e.payload=t;return}t=t.return}}function Z1(e,t,s){var i=Xt();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},cr(e)?Qm(t,s):(s=uc(e,t,s,i),s!==null&&(Vt(s,e,i),Fm(s,t,i)))}function Xm(e,t,s){var i=Xt();Rl(e,t,s,i)}function Rl(e,t,s,i){var c={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(cr(e))Qm(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var x=t.lastRenderedState,b=u(x,s);if(c.hasEagerState=!0,c.eagerState=b,Bt(b,x))return Gi(e,t,c,0),Pe===null&&qi(),!1}catch{}finally{}if(s=uc(e,t,c,i),s!==null)return Vt(s,e,i),Fm(s,t,i),!0}return!1}function Fc(e,t,s,i){if(i={lane:2,revertLane:Nu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cr(e)){if(t)throw Error(r(479))}else t=uc(e,s,i,2),t!==null&&Vt(t,e,2)}function cr(e){var t=e.alternate;return e===je||t!==null&&t===je}function Qm(e,t){As=ar=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Fm(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Wf(e,s)}}var Ol={readContext:vt,use:lr,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Ol.useEffectEvent=et;var Km={readContext:vt,use:lr,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Dm,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,rr(4194308,4,_m.bind(null,t,e),s)},useLayoutEffect:function(e,t){return rr(4194308,4,e,t)},useInsertionEffect:function(e,t){rr(4,2,e,t)},useMemo:function(e,t){var s=Et();t=t===void 0?null:t;var i=e();if(Xn){Fa(!0);try{e()}finally{Fa(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=Et();if(s!==void 0){var c=s(t);if(Xn){Fa(!0);try{s(t)}finally{Fa(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=Z1.bind(null,je,e),[i.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Hc(e);var t=e.queue,s=Xm.bind(null,je,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Gc,useDeferredValue:function(e,t){var s=Et();return Pc(s,e,t)},useTransition:function(){var e=Hc(!1);return e=Hm.bind(null,je,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=je,c=Et();if(Oe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Pe===null)throw Error(r(349));(Ae&127)!==0||pm(i,t,s)}c.memoizedState=s;var u={value:s,getSnapshot:t};return c.queue=u,Dm(xm.bind(null,i,u,e),[e]),i.flags|=2048,Rs(9,{destroy:void 0},gm.bind(null,i,u,s,t),null),s},useId:function(){var e=Et(),t=Pe.identifierPrefix;if(Oe){var s=ya,i=xa;s=(i&~(1<<32-Lt(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=nr++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=q1++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qc,useFormState:Tm,useActionState:Tm,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Fc.bind(null,je,!0,s),s.dispatch=t,[e,t]},useMemoCache:Uc,useCacheRefresh:function(){return Et().memoizedState=K1.bind(null,je)},useEffectEvent:function(e){var t=Et(),s={impl:e};return t.memoizedState=s,function(){if((Ve&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Kc={readContext:vt,use:lr,useCallback:Um,useContext:vt,useEffect:qc,useImperativeHandle:Vm,useInsertionEffect:Om,useLayoutEffect:zm,useMemo:Lm,useReducer:ir,useRef:Am,useState:function(){return ir(Oa)},useDebugValue:Gc,useDeferredValue:function(e,t){var s=lt();return Bm(s,Ye.memoizedState,e,t)},useTransition:function(){var e=ir(Oa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:mm,useId:Gm,useHostTransitionStatus:Qc,useFormState:Em,useActionState:Em,useOptimistic:function(e,t){var s=lt();return bm(s,Ye,e,t)},useMemoCache:Uc,useCacheRefresh:Pm};Kc.useEffectEvent=Rm;var Zm={readContext:vt,use:lr,useCallback:Um,useContext:vt,useEffect:qc,useImperativeHandle:Vm,useInsertionEffect:Om,useLayoutEffect:zm,useMemo:Lm,useReducer:Bc,useRef:Am,useState:function(){return Bc(Oa)},useDebugValue:Gc,useDeferredValue:function(e,t){var s=lt();return Ye===null?Pc(s,e,t):Bm(s,Ye.memoizedState,e,t)},useTransition:function(){var e=Bc(Oa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Dl(e),t]},useSyncExternalStore:mm,useId:Gm,useHostTransitionStatus:Qc,useFormState:Mm,useActionState:Mm,useOptimistic:function(e,t){var s=lt();return Ye!==null?bm(s,Ye,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Uc,useCacheRefresh:Pm};Zm.useEffectEvent=Rm;function Zc(e,t,s,i){t=e.memoizedState,s=s(i,t),s=s==null?t:v({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Jc={enqueueSetState:function(e,t,s){e=e._reactInternals;var i=Xt(),c=tn(i);c.payload=t,s!=null&&(c.callback=s),t=an(e,c,i),t!==null&&(Vt(t,e,i),El(t,e,i))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var i=Xt(),c=tn(i);c.tag=1,c.payload=t,s!=null&&(c.callback=s),t=an(e,c,i),t!==null&&(Vt(t,e,i),El(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Xt(),i=tn(s);i.tag=2,t!=null&&(i.callback=t),t=an(e,i,s),t!==null&&(Vt(t,e,s),El(t,e,s))}};function Jm(e,t,s,i,c,u,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,x):t.prototype&&t.prototype.isPureReactComponent?!vl(s,i)||!vl(c,u):!0}function $m(e,t,s,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,i),t.state!==e&&Jc.enqueueReplaceState(t,t.state,null)}function Qn(e,t){var s=t;if("ref"in t){s={};for(var i in t)i!=="ref"&&(s[i]=t[i])}if(e=e.defaultProps){s===t&&(s=v({},s));for(var c in e)s[c]===void 0&&(s[c]=e[c])}return s}function Wm(e){Yi(e)}function Im(e){console.error(e)}function e0(e){Yi(e)}function ur(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function t0(e,t,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function $c(e,t,s){return s=tn(s),s.tag=3,s.payload={element:null},s.callback=function(){ur(e,t)},s}function a0(e){return e=tn(e),e.tag=3,e}function n0(e,t,s,i){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var u=i.value;e.payload=function(){return c(u)},e.callback=function(){t0(t,s,i)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){t0(t,s,i),typeof c!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function J1(e,t,s,i,c){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=s.alternate,t!==null&&js(t,s,c,!0),s=Yt.current,s!==null){switch(s.tag){case 31:case 13:return ta===null?Sr():s.alternate===null&&tt===0&&(tt=3),s.flags&=-257,s.flags|=65536,s.lanes=c,i===$i?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([i]):t.add(i),Su(e,i,c)),!1;case 22:return s.flags|=65536,i===$i?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([i]):s.add(i)),Su(e,i,c)),!1}throw Error(r(435,s.tag))}return Su(e,i,c),Sr(),!1}if(Oe)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,i!==gc&&(e=Error(r(422),{cause:i}),Sl($t(e,s)))):(i!==gc&&(t=Error(r(423),{cause:i}),Sl($t(t,s))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,i=$t(i,s),c=$c(e.stateNode,i,c),Ec(e,c),tt!==4&&(tt=2)),!1;var u=Error(r(520),{cause:i});if(u=$t(u,s),Yl===null?Yl=[u]:Yl.push(u),tt!==4&&(tt=2),t===null)return!0;i=$t(i,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=c&-c,s.lanes|=e,e=$c(s.stateNode,i,e),Ec(s,e),!1;case 1:if(t=s.type,u=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(cn===null||!cn.has(u))))return s.flags|=65536,c&=-c,s.lanes|=c,c=a0(c),n0(c,e,s,i),Ec(s,c),!1}s=s.return}while(s!==null);return!1}var Wc=Error(r(461)),ot=!1;function bt(e,t,s,i){t.child=e===null?rm(t,null,s,i):Pn(t,e.child,s,i)}function s0(e,t,s,i,c){s=s.render;var u=t.ref;if("ref"in i){var x={};for(var b in i)b!=="ref"&&(x[b]=i[b])}else x=i;return Hn(t),i=Oc(e,t,s,x,u,c),b=zc(),e!==null&&!ot?(_c(e,t,c),za(e,t,c)):(Oe&&b&&mc(t),t.flags|=1,bt(e,t,i,c),t.child)}function l0(e,t,s,i,c){if(e===null){var u=s.type;return typeof u=="function"&&!dc(u)&&u.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=u,i0(e,t,u,i,c)):(e=Xi(s.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!iu(e,c)){var x=u.memoizedProps;if(s=s.compare,s=s!==null?s:vl,s(x,i)&&e.ref===t.ref)return za(e,t,c)}return t.flags|=1,e=Ca(u,i),e.ref=t.ref,e.return=t,t.child=e}function i0(e,t,s,i,c){if(e!==null){var u=e.memoizedProps;if(vl(u,i)&&e.ref===t.ref)if(ot=!1,t.pendingProps=i=u,iu(e,c))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,za(e,t,c)}return Ic(e,t,s,i,c)}function r0(e,t,s,i){var c=i.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|s:s,e!==null){for(i=t.child=e.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~u}else i=0,t.child=null;return o0(e,t,u,s,i)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(t,u!==null?u.cachePool:null),u!==null?um(t,u):Mc(),dm(t);else return i=t.lanes=536870912,o0(e,t,u!==null?u.baseLanes|s:s,s,i)}else u!==null?(Zi(t,u.cachePool),um(t,u),sn(),t.memoizedState=null):(e!==null&&Zi(t,null),Mc(),sn());return bt(e,t,c,s),t.child}function zl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function o0(e,t,s,i,c){var u=kc();return u=u===null?null:{parent:it._currentValue,pool:u},t.memoizedState={baseLanes:s,cachePool:u},e!==null&&Zi(t,null),Mc(),dm(t),e!==null&&js(e,t,i,!0),t.childLanes=c,null}function dr(e,t){return t=hr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function c0(e,t,s){return Pn(t,e.child,null,s),e=dr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function $1(e,t,s){var i=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(i.mode==="hidden")return e=dr(t,i),t.lanes=536870912,zl(null,e);if(Dc(t),(e=Qe)?(e=wp(e,ea),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:xa,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},s=Qh(e),s.return=t,t.child=s,yt=t,Qe=null)):e=null,e===null)throw Wa(t);return t.lanes=536870912,null}return dr(t,i)}var u=e.memoizedState;if(u!==null){var x=u.dehydrated;if(Dc(t),c)if(t.flags&256)t.flags&=-257,t=c0(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ot||js(e,t,s,!1),c=(s&e.childLanes)!==0,ot||c){if(i=Pe,i!==null&&(x=If(i,s),x!==0&&x!==u.retryLane))throw u.retryLane=x,Vn(e,x),Vt(i,e,x),Wc;Sr(),t=c0(e,t,s)}else e=u.treeContext,Qe=aa(x.nextSibling),yt=t,Oe=!0,$a=null,ea=!1,e!==null&&Zh(t,e),t=dr(t,i),t.flags|=4096;return t}return e=Ca(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fr(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Ic(e,t,s,i,c){return Hn(t),s=Oc(e,t,s,i,void 0,c),i=zc(),e!==null&&!ot?(_c(e,t,c),za(e,t,c)):(Oe&&i&&mc(t),t.flags|=1,bt(e,t,s,c),t.child)}function u0(e,t,s,i,c,u){return Hn(t),t.updateQueue=null,s=hm(t,i,s,c),fm(e),i=zc(),e!==null&&!ot?(_c(e,t,u),za(e,t,u)):(Oe&&i&&mc(t),t.flags|=1,bt(e,t,s,u),t.child)}function d0(e,t,s,i,c){if(Hn(t),t.stateNode===null){var u=bs,x=s.contextType;typeof x=="object"&&x!==null&&(u=vt(x)),u=new s(i,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Jc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=i,u.state=t.memoizedState,u.refs={},Nc(t),x=s.contextType,u.context=typeof x=="object"&&x!==null?vt(x):bs,u.state=t.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Zc(t,s,x,i),u.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(x=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),x!==u.state&&Jc.enqueueReplaceState(u,u.state,null),Ml(t,i,u,c),Cl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,j=Qn(s,b);u.props=j;var U=u.context,G=s.contextType;x=bs,typeof G=="object"&&G!==null&&(x=vt(G));var Q=s.getDerivedStateFromProps;G=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,G||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||U!==x)&&$m(t,u,i,x),en=!1;var L=t.memoizedState;u.state=L,Ml(t,i,u,c),Cl(),U=t.memoizedState,b||L!==U||en?(typeof Q=="function"&&(Zc(t,s,Q,i),U=t.memoizedState),(j=en||Jm(t,s,j,i,L,U,x))?(G||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),u.props=i,u.state=U,u.context=x,i=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{u=t.stateNode,Tc(e,t),x=t.memoizedProps,G=Qn(s,x),u.props=G,Q=t.pendingProps,L=u.context,U=s.contextType,j=bs,typeof U=="object"&&U!==null&&(j=vt(U)),b=s.getDerivedStateFromProps,(U=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x!==Q||L!==j)&&$m(t,u,i,j),en=!1,L=t.memoizedState,u.state=L,Ml(t,i,u,c),Cl();var Y=t.memoizedState;x!==Q||L!==Y||en||e!==null&&e.dependencies!==null&&Fi(e.dependencies)?(typeof b=="function"&&(Zc(t,s,b,i),Y=t.memoizedState),(G=en||Jm(t,s,G,i,L,Y,j)||e!==null&&e.dependencies!==null&&Fi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,Y,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,Y,j)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Y),u.props=i,u.state=Y,u.context=j,i=G):(typeof u.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return u=i,fr(e,t),i=(t.flags&128)!==0,u||i?(u=t.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&i?(t.child=Pn(t,e.child,null,c),t.child=Pn(t,null,s,c)):bt(e,t,s,c),t.memoizedState=u.state,e=t.child):e=za(e,t,c),e}function f0(e,t,s,i){return Ln(),t.flags|=256,bt(e,t,s,i),t.child}var eu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tu(e){return{baseLanes:e,cachePool:tm()}}function au(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=Pt),e}function h0(e,t,s){var i=t.pendingProps,c=!1,u=(t.flags&128)!==0,x;if((x=u)||(x=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),x&&(c=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(c?nn(t):sn(),(e=Qe)?(e=wp(e,ea),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ja!==null?{id:xa,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},s=Qh(e),s.return=t,t.child=s,yt=t,Qe=null)):e=null,e===null)throw Wa(t);return Lu(e)?t.lanes=32:t.lanes=536870912,null}var b=i.children;return i=i.fallback,c?(sn(),c=t.mode,b=hr({mode:"hidden",children:b},c),i=Un(i,c,s,null),b.return=t,i.return=t,b.sibling=i,t.child=b,i=t.child,i.memoizedState=tu(s),i.childLanes=au(e,x,s),t.memoizedState=eu,zl(null,i)):(nn(t),nu(t,b))}var j=e.memoizedState;if(j!==null&&(b=j.dehydrated,b!==null)){if(u)t.flags&256?(nn(t),t.flags&=-257,t=su(e,t,s)):t.memoizedState!==null?(sn(),t.child=e.child,t.flags|=128,t=null):(sn(),b=i.fallback,c=t.mode,i=hr({mode:"visible",children:i.children},c),b=Un(b,c,s,null),b.flags|=2,i.return=t,b.return=t,i.sibling=b,t.child=i,Pn(t,e.child,null,s),i=t.child,i.memoizedState=tu(s),i.childLanes=au(e,x,s),t.memoizedState=eu,t=zl(null,i));else if(nn(t),Lu(b)){if(x=b.nextSibling&&b.nextSibling.dataset,x)var U=x.dgst;x=U,i=Error(r(419)),i.stack="",i.digest=x,Sl({value:i,source:null,stack:null}),t=su(e,t,s)}else if(ot||js(e,t,s,!1),x=(s&e.childLanes)!==0,ot||x){if(x=Pe,x!==null&&(i=If(x,s),i!==0&&i!==j.retryLane))throw j.retryLane=i,Vn(e,i),Vt(x,e,i),Wc;Uu(b)||Sr(),t=su(e,t,s)}else Uu(b)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Qe=aa(b.nextSibling),yt=t,Oe=!0,$a=null,ea=!1,e!==null&&Zh(t,e),t=nu(t,i.children),t.flags|=4096);return t}return c?(sn(),b=i.fallback,c=t.mode,j=e.child,U=j.sibling,i=Ca(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.subtreeFlags&65011712,U!==null?b=Ca(U,b):(b=Un(b,c,s,null),b.flags|=2),b.return=t,i.return=t,i.sibling=b,t.child=i,zl(null,i),i=t.child,b=e.child.memoizedState,b===null?b=tu(s):(c=b.cachePool,c!==null?(j=it._currentValue,c=c.parent!==j?{parent:j,pool:j}:c):c=tm(),b={baseLanes:b.baseLanes|s,cachePool:c}),i.memoizedState=b,i.childLanes=au(e,x,s),t.memoizedState=eu,zl(e.child,i)):(nn(t),s=e.child,e=s.sibling,s=Ca(s,{mode:"visible",children:i.children}),s.return=t,s.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=s,t.memoizedState=null,s)}function nu(e,t){return t=hr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hr(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function su(e,t,s){return Pn(t,e.child,null,s),e=nu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m0(e,t,s){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),vc(e.return,t,s)}function lu(e,t,s,i,c,u){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:c,treeForkCount:u}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=i,x.tail=s,x.tailMode=c,x.treeForkCount=u)}function p0(e,t,s){var i=t.pendingProps,c=i.revealOrder,u=i.tail;i=i.children;var x=st.current,b=(x&2)!==0;if(b?(x=x&1|2,t.flags|=128):x&=1,R(st,x),bt(e,t,i,s),i=Oe?wl:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&m0(e,s,t);else if(e.tag===19)m0(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&tr(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),lu(t,!1,c,s,u,i);break;case"backwards":case"unstable_legacy-backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&tr(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}lu(t,!0,s,null,u,i);break;case"together":lu(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function za(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),on|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(js(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=Ca(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=Ca(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function iu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fi(e)))}function W1(e,t,s){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),Ia(t,it,e.memoizedState.cache),Ln();break;case 27:case 5:jt(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:Ia(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Dc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(nn(t),t.flags|=128,null):(s&t.child.childLanes)!==0?h0(e,t,s):(nn(t),e=za(e,t,s),e!==null?e.sibling:null);nn(t);break;case 19:var c=(e.flags&128)!==0;if(i=(s&t.childLanes)!==0,i||(js(e,t,s,!1),i=(s&t.childLanes)!==0),c){if(i)return p0(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),R(st,st.current),i)break;return null;case 22:return t.lanes=0,r0(e,t,s,t.pendingProps);case 24:Ia(t,it,e.memoizedState.cache)}return za(e,t,s)}function g0(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!iu(e,s)&&(t.flags&128)===0)return ot=!1,W1(e,t,s);ot=(e.flags&131072)!==0}else ot=!1,Oe&&(t.flags&1048576)!==0&&Kh(t,wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=qn(t.elementType),t.type=e,typeof e=="function")dc(e)?(i=Qn(e,i),t.tag=1,t=d0(null,t,e,i,s)):(t.tag=0,t=Ic(null,t,e,i,s));else{if(e!=null){var c=e.$$typeof;if(c===H){t.tag=11,t=s0(null,t,e,i,s);break e}else if(c===F){t.tag=14,t=l0(null,t,e,i,s);break e}}throw t=Se(e)||e,Error(r(306,t,""))}}return t;case 0:return Ic(e,t,t.type,t.pendingProps,s);case 1:return i=t.type,c=Qn(i,t.pendingProps),d0(e,t,i,c,s);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var u=t.memoizedState;c=u.element,Tc(e,t),Ml(t,i,null,s);var x=t.memoizedState;if(i=x.cache,Ia(t,it,i),i!==u.cache&&bc(t,[it],s,!0),Cl(),i=x.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=f0(e,t,i,s);break e}else if(i!==c){c=$t(Error(r(424)),t),Sl(c),t=f0(e,t,i,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Qe=aa(e.firstChild),yt=t,Oe=!0,$a=null,ea=!0,s=rm(t,null,i,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ln(),i===c){t=za(e,t,s);break e}bt(e,t,i,s)}t=t.child}return t;case 26:return fr(e,t),e===null?(s=Ep(t.type,null,t.pendingProps,null))?t.memoizedState=s:Oe||(s=t.type,e=t.pendingProps,i=Mr(ue.current).createElement(s),i[xt]=t,i[At]=e,wt(i,s,e),mt(i),t.stateNode=i):t.memoizedState=Ep(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return jt(t),e===null&&Oe&&(i=t.stateNode=jp(t.type,t.pendingProps,ue.current),yt=t,ea=!0,c=Qe,hn(t.type)?(Bu=c,Qe=aa(i.firstChild)):Qe=c),bt(e,t,t.pendingProps.children,s),fr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((c=i=Qe)&&(i=C2(i,t.type,t.pendingProps,ea),i!==null?(t.stateNode=i,yt=t,Qe=aa(i.firstChild),ea=!1,c=!0):c=!1),c||Wa(t)),jt(t),c=t.type,u=t.pendingProps,x=e!==null?e.memoizedProps:null,i=u.children,zu(c,u)?i=null:x!==null&&zu(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=Oc(e,t,G1,null,null,s),Zl._currentValue=c),fr(e,t),bt(e,t,i,s),t.child;case 6:return e===null&&Oe&&((e=s=Qe)&&(s=M2(s,t.pendingProps,ea),s!==null?(t.stateNode=s,yt=t,Qe=null,e=!0):e=!1),e||Wa(t)),null;case 13:return h0(e,t,s);case 4:return Ue(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Pn(t,null,i,s):bt(e,t,i,s),t.child;case 11:return s0(e,t,t.type,t.pendingProps,s);case 7:return bt(e,t,t.pendingProps,s),t.child;case 8:return bt(e,t,t.pendingProps.children,s),t.child;case 12:return bt(e,t,t.pendingProps.children,s),t.child;case 10:return i=t.pendingProps,Ia(t,t.type,i.value),bt(e,t,i.children,s),t.child;case 9:return c=t.type._context,i=t.pendingProps.children,Hn(t),c=vt(c),i=i(c),t.flags|=1,bt(e,t,i,s),t.child;case 14:return l0(e,t,t.type,t.pendingProps,s);case 15:return i0(e,t,t.type,t.pendingProps,s);case 19:return p0(e,t,s);case 31:return $1(e,t,s);case 22:return r0(e,t,s,t.pendingProps);case 24:return Hn(t),i=vt(it),e===null?(c=kc(),c===null&&(c=Pe,u=wc(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=s),c=u),t.memoizedState={parent:i,cache:c},Nc(t),Ia(t,it,c)):((e.lanes&s)!==0&&(Tc(e,t),Ml(t,null,null,s),Cl()),c=e.memoizedState,u=t.memoizedState,c.parent!==i?(c={parent:i,cache:i},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Ia(t,it,i)):(i=u.cache,Ia(t,it,i),i!==c.cache&&bc(t,[it],s,!0))),bt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function _a(e){e.flags|=4}function ru(e,t,s,i,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(G0())e.flags|=8192;else throw Gn=$i,jc}else e.flags&=-16777217}function x0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rp(t))if(G0())e.flags|=8192;else throw Gn=$i,jc}function mr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jf():536870912,e.lanes|=t,Vs|=t)}function _l(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=s,t}function I1(e,t,s){var i=t.pendingProps;switch(pc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return s=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Da(it),ye(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ks(t)?_a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xc())),Fe(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(_a(t),u!==null?(Fe(t),x0(t,u)):(Fe(t),ru(t,c,null,i,s))):u?u!==e.memoizedState?(_a(t),Fe(t),x0(t,u)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&_a(t),Fe(t),ru(t,c,e,i,s)),null;case 27:if(gt(t),s=ue.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&_a(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}e=te.current,ks(t)?Jh(t):(e=jp(c,i,s),t.stateNode=e,_a(t))}return Fe(t),null;case 5:if(gt(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&_a(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Fe(t),null}if(u=te.current,ks(t))Jh(t);else{var x=Mr(ue.current);switch(u){case 1:u=x.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=x.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=x.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?x.createElement("select",{is:i.is}):x.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?x.createElement(c,{is:i.is}):x.createElement(c)}}u[xt]=t,u[At]=i;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)u.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=u;e:switch(wt(u,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&_a(t)}}return Fe(t),ru(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&_a(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ks(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,c=yt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[xt]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||hp(e.nodeValue,s)),e||Wa(t,!0)}else e=Mr(e).createTextNode(i),e[xt]=t,t.stateNode=e}return Fe(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=ks(t),s!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else s=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Fe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ks(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[xt]=t}else Ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),c=!1}else c=xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==c&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),mr(t,t.updateQueue),Fe(t),null);case 4:return ye(),e===null&&Mu(t.stateNode.containerInfo),Fe(t),null;case 10:return Da(t.type),Fe(t),null;case 19:if(q(st),i=t.memoizedState,i===null)return Fe(t),null;if(c=(t.flags&128)!==0,u=i.rendering,u===null)if(c)_l(i,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=tr(e),u!==null){for(t.flags|=128,_l(i,!1),e=u.updateQueue,t.updateQueue=e,mr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Xh(s,e),s=s.sibling;return R(st,st.current&1|2),Oe&&Ma(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&I()>vr&&(t.flags|=128,c=!0,_l(i,!1),t.lanes=4194304)}else{if(!c)if(e=tr(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,mr(t,e),_l(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Oe)return Fe(t),null}else 2*I()-i.renderingStartTime>vr&&s!==536870912&&(t.flags|=128,c=!0,_l(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(e=i.last,e!==null?e.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=I(),e.sibling=null,s=st.current,R(st,c?s&1|2:s&1),Oe&&Ma(t,i.treeForkCount),e):(Fe(t),null);case 22:case 23:return qt(t),Ac(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),s=t.updateQueue,s!==null&&mr(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&q(Yn),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Da(it),Fe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function e2(e,t){switch(pc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Da(it),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gt(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(r(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(st),null;case 4:return ye(),null;case 10:return Da(t.type),null;case 22:case 23:return qt(t),Ac(),e!==null&&q(Yn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Da(it),null;case 25:return null;default:return null}}function y0(e,t){switch(pc(t),t.tag){case 3:Da(it),ye();break;case 26:case 27:case 5:gt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:q(st);break;case 10:Da(t.type);break;case 22:case 23:qt(t),Ac(),e!==null&&q(Yn);break;case 24:Da(it)}}function Vl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var c=i.next;s=c;do{if((s.tag&e)===e){i=void 0;var u=s.create,x=s.inst;i=u(),x.destroy=i}s=s.next}while(s!==c)}}catch(b){Be(t,t.return,b)}}function ln(e,t,s){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var u=c.next;i=u;do{if((i.tag&e)===e){var x=i.inst,b=x.destroy;if(b!==void 0){x.destroy=void 0,c=t;var j=s,U=b;try{U()}catch(G){Be(c,j,G)}}}i=i.next}while(i!==u)}}catch(G){Be(t,t.return,G)}}function v0(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{cm(t,s)}catch(i){Be(e,e.return,i)}}}function b0(e,t,s){s.props=Qn(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(i){Be(e,t,i)}}function Ul(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(c){Be(e,t,c)}}function va(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(c){Be(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Be(e,t,c)}else s.current=null}function w0(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(c){Be(e,e.return,c)}}function ou(e,t,s){try{var i=e.stateNode;S2(i,e.type,s,t),i[At]=t}catch(c){Be(e,e.return,c)}}function S0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hn(e.type)||e.tag===4}function cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uu(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Ta));else if(i!==4&&(i===27&&hn(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,s),e=e.sibling;e!==null;)uu(e,t,s),e=e.sibling}function pr(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&hn(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(pr(e,t,s),e=e.sibling;e!==null;)pr(e,t,s),e=e.sibling}function k0(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);wt(t,i,s),t[xt]=e,t[At]=s}catch(u){Be(e,e.return,u)}}var Va=!1,ct=!1,du=!1,j0=typeof WeakSet=="function"?WeakSet:Set,pt=null;function t2(e,t){if(e=e.containerInfo,Ru=Vr,e=Vh(e),sc(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var c=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var x=0,b=-1,j=-1,U=0,G=0,Q=e,L=null;t:for(;;){for(var Y;Q!==s||c!==0&&Q.nodeType!==3||(b=x+c),Q!==u||i!==0&&Q.nodeType!==3||(j=x+i),Q.nodeType===3&&(x+=Q.nodeValue.length),(Y=Q.firstChild)!==null;)L=Q,Q=Y;for(;;){if(Q===e)break t;if(L===s&&++U===c&&(b=x),L===u&&++G===i&&(j=x),(Y=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=Y}s=b===-1||j===-1?null:{start:b,end:j}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ou={focusedElem:e,selectionRange:s},Vr=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)c=e[s],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,s=t,c=u.memoizedProps,u=u.memoizedState,i=s.stateNode;try{var ie=Qn(s.type,c);e=i.getSnapshotBeforeUpdate(ie,u),i.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Be(s,s.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Vu(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}}function N0(e,t,s){var i=s.flags;switch(s.tag){case 0:case 11:case 15:La(e,s),i&4&&Vl(5,s);break;case 1:if(La(e,s),i&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(x){Be(s,s.return,x)}else{var c=Qn(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Be(s,s.return,x)}}i&64&&v0(s),i&512&&Ul(s,s.return);break;case 3:if(La(e,s),i&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{cm(e,t)}catch(x){Be(s,s.return,x)}}break;case 27:t===null&&i&4&&k0(s);case 26:case 5:La(e,s),t===null&&i&4&&w0(s),i&512&&Ul(s,s.return);break;case 12:La(e,s);break;case 31:La(e,s),i&4&&C0(e,s);break;case 13:La(e,s),i&4&&M0(e,s),i&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=u2.bind(null,s),A2(e,s))));break;case 22:if(i=s.memoizedState!==null||Va,!i){t=t!==null&&t.memoizedState!==null||ct,c=Va;var u=ct;Va=i,(ct=t)&&!u?Ba(e,s,(s.subtreeFlags&8772)!==0):La(e,s),Va=c,ct=u}break;case 30:break;default:La(e,s)}}function T0(e){var t=e.alternate;t!==null&&(e.alternate=null,T0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ze=null,Rt=!1;function Ua(e,t,s){for(s=s.child;s!==null;)E0(e,t,s),s=s.sibling}function E0(e,t,s){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(rl,s)}catch{}switch(s.tag){case 26:ct||va(s,t),Ua(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ct||va(s,t);var i=Ze,c=Rt;hn(s.type)&&(Ze=s.stateNode,Rt=!1),Ua(e,t,s),Ql(s.stateNode),Ze=i,Rt=c;break;case 5:ct||va(s,t);case 6:if(i=Ze,c=Rt,Ze=null,Ua(e,t,s),Ze=i,Rt=c,Ze!==null)if(Rt)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(s.stateNode)}catch(u){Be(s,t,u)}else try{Ze.removeChild(s.stateNode)}catch(u){Be(s,t,u)}break;case 18:Ze!==null&&(Rt?(e=Ze,vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Ps(e)):vp(Ze,s.stateNode));break;case 4:i=Ze,c=Rt,Ze=s.stateNode.containerInfo,Rt=!0,Ua(e,t,s),Ze=i,Rt=c;break;case 0:case 11:case 14:case 15:ln(2,s,t),ct||ln(4,s,t),Ua(e,t,s);break;case 1:ct||(va(s,t),i=s.stateNode,typeof i.componentWillUnmount=="function"&&b0(s,t,i)),Ua(e,t,s);break;case 21:Ua(e,t,s);break;case 22:ct=(i=ct)||s.memoizedState!==null,Ua(e,t,s),ct=i;break;default:Ua(e,t,s)}}function C0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ps(e)}catch(s){Be(t,t.return,s)}}}function M0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ps(e)}catch(s){Be(t,t.return,s)}}function a2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new j0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new j0),t;default:throw Error(r(435,e.tag))}}function gr(e,t){var s=a2(e);t.forEach(function(i){if(!s.has(i)){s.add(i);var c=d2.bind(null,e,i);i.then(c,c)}})}function Ot(e,t){var s=t.deletions;if(s!==null)for(var i=0;i<s.length;i++){var c=s[i],u=e,x=t,b=x;e:for(;b!==null;){switch(b.tag){case 27:if(hn(b.type)){Ze=b.stateNode,Rt=!1;break e}break;case 5:Ze=b.stateNode,Rt=!1;break e;case 3:case 4:Ze=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(Ze===null)throw Error(r(160));E0(u,x,c),Ze=null,Rt=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)A0(t,e),t=t.sibling}var ca=null;function A0(e,t){var s=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),zt(e),i&4&&(ln(3,e,e.return),Vl(3,e),ln(5,e,e.return));break;case 1:Ot(t,e),zt(e),i&512&&(ct||s===null||va(s,s.return)),i&64&&Va&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?i:s.concat(i))));break;case 26:var c=ca;if(Ot(t,e),zt(e),i&512&&(ct||s===null||va(s,s.return)),i&4){var u=s!==null?s.memoizedState:null;if(i=e.memoizedState,s===null)if(i===null)if(e.stateNode===null){e:{i=e.type,s=e.memoizedProps,c=c.ownerDocument||c;t:switch(i){case"title":u=c.getElementsByTagName("title")[0],(!u||u[ul]||u[xt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(i),c.head.insertBefore(u,c.querySelector("head > title"))),wt(u,i,s),u[xt]=e,mt(u),i=u;break e;case"link":var x=Ap("link","href",c).get(i+(s.href||""));if(x){for(var b=0;b<x.length;b++)if(u=x[b],u.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&u.getAttribute("rel")===(s.rel==null?null:s.rel)&&u.getAttribute("title")===(s.title==null?null:s.title)&&u.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(b,1);break t}}u=c.createElement(i),wt(u,i,s),c.head.appendChild(u);break;case"meta":if(x=Ap("meta","content",c).get(i+(s.content||""))){for(b=0;b<x.length;b++)if(u=x[b],u.getAttribute("content")===(s.content==null?null:""+s.content)&&u.getAttribute("name")===(s.name==null?null:s.name)&&u.getAttribute("property")===(s.property==null?null:s.property)&&u.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&u.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(b,1);break t}}u=c.createElement(i),wt(u,i,s),c.head.appendChild(u);break;default:throw Error(r(468,i))}u[xt]=e,mt(u),i=u}e.stateNode=i}else Dp(c,e.type,e.stateNode);else e.stateNode=Mp(c,i,e.memoizedProps);else u!==i?(u===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):u.count--,i===null?Dp(c,e.type,e.stateNode):Mp(c,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ou(e,e.memoizedProps,s.memoizedProps)}break;case 27:Ot(t,e),zt(e),i&512&&(ct||s===null||va(s,s.return)),s!==null&&i&4&&ou(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Ot(t,e),zt(e),i&512&&(ct||s===null||va(s,s.return)),e.flags&32){c=e.stateNode;try{hs(c,"")}catch(ie){Be(e,e.return,ie)}}i&4&&e.stateNode!=null&&(c=e.memoizedProps,ou(e,c,s!==null?s.memoizedProps:c)),i&1024&&(du=!0);break;case 6:if(Ot(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,s=e.stateNode;try{s.nodeValue=i}catch(ie){Be(e,e.return,ie)}}break;case 3:if(Rr=null,c=ca,ca=Ar(t.containerInfo),Ot(t,e),ca=c,zt(e),i&4&&s!==null&&s.memoizedState.isDehydrated)try{Ps(t.containerInfo)}catch(ie){Be(e,e.return,ie)}du&&(du=!1,D0(e));break;case 4:i=ca,ca=Ar(e.stateNode.containerInfo),Ot(t,e),zt(e),ca=i;break;case 12:Ot(t,e),zt(e);break;case 31:Ot(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,gr(e,i)));break;case 13:Ot(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(yr=I()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,gr(e,i)));break;case 22:c=e.memoizedState!==null;var j=s!==null&&s.memoizedState!==null,U=Va,G=ct;if(Va=U||c,ct=G||j,Ot(t,e),ct=G,Va=U,zt(e),i&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(s===null||j||Va||ct||Fn(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){j=s=t;try{if(u=j.stateNode,c)x=u.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{b=j.stateNode;var Q=j.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ie){Be(j,j.return,ie)}}}else if(t.tag===6){if(s===null){j=t;try{j.stateNode.nodeValue=c?"":j.memoizedProps}catch(ie){Be(j,j.return,ie)}}}else if(t.tag===18){if(s===null){j=t;try{var Y=j.stateNode;c?bp(Y,!0):bp(j.stateNode,!1)}catch(ie){Be(j,j.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(s=i.retryQueue,s!==null&&(i.retryQueue=null,gr(e,s))));break;case 19:Ot(t,e),zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,gr(e,i)));break;case 30:break;case 21:break;default:Ot(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var s,i=e.return;i!==null;){if(S0(i)){s=i;break}i=i.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var c=s.stateNode,u=cu(e);pr(e,u,c);break;case 5:var x=s.stateNode;s.flags&32&&(hs(x,""),s.flags&=-33);var b=cu(e);pr(e,b,x);break;case 3:case 4:var j=s.stateNode.containerInfo,U=cu(e);uu(e,U,j);break;default:throw Error(r(161))}}catch(G){Be(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function D0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;D0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function La(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)N0(e,t.alternate,t),t=t.sibling}function Fn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ln(4,t,t.return),Fn(t);break;case 1:va(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&b0(t,t.return,s),Fn(t);break;case 27:Ql(t.stateNode);case 26:case 5:va(t,t.return),Fn(t);break;case 22:t.memoizedState===null&&Fn(t);break;case 30:Fn(t);break;default:Fn(t)}e=e.sibling}}function Ba(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,c=e,u=t,x=u.flags;switch(u.tag){case 0:case 11:case 15:Ba(c,u,s),Vl(4,u);break;case 1:if(Ba(c,u,s),i=u,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){Be(i,i.return,U)}if(i=u,c=i.updateQueue,c!==null){var b=i.stateNode;try{var j=c.shared.hiddenCallbacks;if(j!==null)for(c.shared.hiddenCallbacks=null,c=0;c<j.length;c++)om(j[c],b)}catch(U){Be(i,i.return,U)}}s&&x&64&&v0(u),Ul(u,u.return);break;case 27:k0(u);case 26:case 5:Ba(c,u,s),s&&i===null&&x&4&&w0(u),Ul(u,u.return);break;case 12:Ba(c,u,s);break;case 31:Ba(c,u,s),s&&x&4&&C0(c,u);break;case 13:Ba(c,u,s),s&&x&4&&M0(c,u);break;case 22:u.memoizedState===null&&Ba(c,u,s),Ul(u,u.return);break;case 30:break;default:Ba(c,u,s)}t=t.sibling}}function fu(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&kl(s))}function hu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e))}function ua(e,t,s,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)R0(e,t,s,i),t=t.sibling}function R0(e,t,s,i){var c=t.flags;switch(t.tag){case 0:case 11:case 15:ua(e,t,s,i),c&2048&&Vl(9,t);break;case 1:ua(e,t,s,i);break;case 3:ua(e,t,s,i),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&kl(e)));break;case 12:if(c&2048){ua(e,t,s,i),e=t.stateNode;try{var u=t.memoizedProps,x=u.id,b=u.onPostCommit;typeof b=="function"&&b(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Be(t,t.return,j)}}else ua(e,t,s,i);break;case 31:ua(e,t,s,i);break;case 13:ua(e,t,s,i);break;case 23:break;case 22:u=t.stateNode,x=t.alternate,t.memoizedState!==null?u._visibility&2?ua(e,t,s,i):Ll(e,t):u._visibility&2?ua(e,t,s,i):(u._visibility|=2,Os(e,t,s,i,(t.subtreeFlags&10256)!==0||!1)),c&2048&&fu(x,t);break;case 24:ua(e,t,s,i),c&2048&&hu(t.alternate,t);break;default:ua(e,t,s,i)}}function Os(e,t,s,i,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,x=t,b=s,j=i,U=x.flags;switch(x.tag){case 0:case 11:case 15:Os(u,x,b,j,c),Vl(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?Os(u,x,b,j,c):Ll(u,x):(G._visibility|=2,Os(u,x,b,j,c)),c&&U&2048&&fu(x.alternate,x);break;case 24:Os(u,x,b,j,c),c&&U&2048&&hu(x.alternate,x);break;default:Os(u,x,b,j,c)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,i=t,c=i.flags;switch(i.tag){case 22:Ll(s,i),c&2048&&fu(i.alternate,i);break;case 24:Ll(s,i),c&2048&&hu(i.alternate,i);break;default:Ll(s,i)}t=t.sibling}}var Bl=8192;function zs(e,t,s){if(e.subtreeFlags&Bl)for(e=e.child;e!==null;)O0(e,t,s),e=e.sibling}function O0(e,t,s){switch(e.tag){case 26:zs(e,t,s),e.flags&Bl&&e.memoizedState!==null&&q2(s,ca,e.memoizedState,e.memoizedProps);break;case 5:zs(e,t,s);break;case 3:case 4:var i=ca;ca=Ar(e.stateNode.containerInfo),zs(e,t,s),ca=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Bl,Bl=16777216,zs(e,t,s),Bl=i):zs(e,t,s));break;default:zs(e,t,s)}}function z0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];pt=i,V0(i,e)}z0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_0(e),e=e.sibling}function _0(e){switch(e.tag){case 0:case 11:case 15:Hl(e),e.flags&2048&&ln(9,e,e.return);break;case 3:Hl(e);break;case 12:Hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xr(e)):Hl(e);break;default:Hl(e)}}function xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];pt=i,V0(i,e)}z0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ln(8,t,t.return),xr(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,xr(t));break;default:xr(t)}e=e.sibling}}function V0(e,t){for(;pt!==null;){var s=pt;switch(s.tag){case 0:case 11:case 15:ln(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var i=s.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:kl(s.memoizedState.cache)}if(i=s.child,i!==null)i.return=s,pt=i;else e:for(s=e;pt!==null;){i=pt;var c=i.sibling,u=i.return;if(T0(i),i===s){pt=null;break e}if(c!==null){c.return=u,pt=c;break e}pt=u}}}var n2={getCacheForType:function(e){var t=vt(it),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return vt(it).controller.signal}},s2=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Pe=null,Ce=null,Ae=0,Le=0,Gt=null,rn=!1,_s=!1,mu=!1,Ha=0,tt=0,on=0,Kn=0,pu=0,Pt=0,Vs=0,Yl=null,_t=null,gu=!1,yr=0,U0=0,vr=1/0,br=null,cn=null,dt=0,un=null,Us=null,Ya=0,xu=0,yu=null,L0=null,ql=0,vu=null;function Xt(){return(Ve&2)!==0&&Ae!==0?Ae&-Ae:_.T!==null?Nu():eh()}function B0(){if(Pt===0)if((Ae&536870912)===0||Oe){var e=Ci;Ci<<=1,(Ci&3932160)===0&&(Ci=262144),Pt=e}else Pt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Pt}function Vt(e,t,s){(e===Pe&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Ls(e,0),dn(e,Ae,Pt,!1)),cl(e,s),((Ve&2)===0||e!==Pe)&&(e===Pe&&((Ve&2)===0&&(Kn|=s),tt===4&&dn(e,Ae,Pt,!1)),ba(e))}function H0(e,t,s){if((Ve&6)!==0)throw Error(r(327));var i=!s&&(t&127)===0&&(t&e.expiredLanes)===0||ol(e,t),c=i?r2(e,t):wu(e,t,!0),u=i;do{if(c===0){_s&&!i&&dn(e,t,0,!1);break}else{if(s=e.current.alternate,u&&!l2(s)){c=wu(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var b=e;c=Yl;var j=b.current.memoizedState.isDehydrated;if(j&&(Ls(b,x).flags|=256),x=wu(b,x,!1),x!==2){if(mu&&!j){b.errorRecoveryDisabledLanes|=u,Kn|=u,c=4;break e}u=_t,_t=c,u!==null&&(_t===null?_t=u:_t.push.apply(_t,u))}c=x}if(u=!1,c!==2)continue}}if(c===1){Ls(e,0),dn(e,t,0,!0);break}e:{switch(i=e,u=c,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:dn(i,t,Pt,!rn);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=yr+300-I(),10<c)){if(dn(i,t,Pt,!rn),Ai(i,0,!0)!==0)break e;Ya=t,i.timeoutHandle=xp(Y0.bind(null,i,s,_t,br,gu,t,Pt,Kn,Vs,rn,u,"Throttled",-0,0),c);break e}Y0(i,s,_t,br,gu,t,Pt,Kn,Vs,rn,u,null,-0,0)}}break}while(!0);ba(e)}function Y0(e,t,s,i,c,u,x,b,j,U,G,Q,L,Y){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ta},O0(t,u,Q);var ie=(u&62914560)===u?yr-I():(u&4194048)===u?U0-I():0;if(ie=G2(Q,ie),ie!==null){Ya=u,e.cancelPendingCommit=ie(Z0.bind(null,e,t,u,s,i,c,x,b,j,G,Q,null,L,Y)),dn(e,u,x,!U);return}}Z0(e,t,u,s,i,c,x,b,j)}function l2(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var i=0;i<s.length;i++){var c=s[i],u=c.getSnapshot;c=c.value;try{if(!Bt(u(),c))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dn(e,t,s,i){t&=~pu,t&=~Kn,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var c=t;0<c;){var u=31-Lt(c),x=1<<u;i[u]=-1,c&=~x}s!==0&&$f(e,s,t)}function wr(){return(Ve&6)===0?(Gl(0),!1):!0}function bu(){if(Ce!==null){if(Le===0)var e=Ce.return;else e=Ce,Aa=Bn=null,Vc(e),Cs=null,Nl=0,e=Ce;for(;e!==null;)y0(e.alternate,e),e=e.return;Ce=null}}function Ls(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,N2(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Ya=0,bu(),Pe=e,Ce=s=Ca(e.current,null),Ae=t,Le=0,Gt=null,rn=!1,_s=ol(e,t),mu=!1,Vs=Pt=pu=Kn=on=tt=0,_t=Yl=null,gu=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var c=31-Lt(i),u=1<<c;t|=e[c],i&=~u}return Ha=t,qi(),s}function q0(e,t){je=null,_.H=Ol,t===Es||t===Ji?(t=sm(),Le=3):t===jc?(t=sm(),Le=4):Le=t===Wc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,Ce===null&&(tt=1,ur(e,$t(t,e.current)))}function G0(){var e=Yt.current;return e===null?!0:(Ae&4194048)===Ae?ta===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===ta:!1}function P0(){var e=_.H;return _.H=Ol,e===null?Ol:e}function X0(){var e=_.A;return _.A=n2,e}function Sr(){tt=4,rn||(Ae&4194048)!==Ae&&Yt.current!==null||(_s=!0),(on&134217727)===0&&(Kn&134217727)===0||Pe===null||dn(Pe,Ae,Pt,!1)}function wu(e,t,s){var i=Ve;Ve|=2;var c=P0(),u=X0();(Pe!==e||Ae!==t)&&(br=null,Ls(e,t)),t=!1;var x=tt;e:do try{if(Le!==0&&Ce!==null){var b=Ce,j=Gt;switch(Le){case 8:bu(),x=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var U=Le;if(Le=0,Gt=null,Bs(e,b,j,U),s&&_s){x=0;break e}break;default:U=Le,Le=0,Gt=null,Bs(e,b,j,U)}}i2(),x=tt;break}catch(G){q0(e,G)}while(!0);return t&&e.shellSuspendCounter++,Aa=Bn=null,Ve=i,_.H=c,_.A=u,Ce===null&&(Pe=null,Ae=0,qi()),x}function i2(){for(;Ce!==null;)Q0(Ce)}function r2(e,t){var s=Ve;Ve|=2;var i=P0(),c=X0();Pe!==e||Ae!==t?(br=null,vr=I()+500,Ls(e,t)):_s=ol(e,t);e:do try{if(Le!==0&&Ce!==null){t=Ce;var u=Gt;t:switch(Le){case 1:Le=0,Gt=null,Bs(e,t,u,1);break;case 2:case 9:if(am(u)){Le=0,Gt=null,F0(t);break}t=function(){Le!==2&&Le!==9||Pe!==e||(Le=7),ba(e)},u.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:am(u)?(Le=0,Gt=null,F0(t)):(Le=0,Gt=null,Bs(e,t,u,7));break;case 5:var x=null;switch(Ce.tag){case 26:x=Ce.memoizedState;case 5:case 27:var b=Ce;if(x?Rp(x):b.stateNode.complete){Le=0,Gt=null;var j=b.sibling;if(j!==null)Ce=j;else{var U=b.return;U!==null?(Ce=U,kr(U)):Ce=null}break t}}Le=0,Gt=null,Bs(e,t,u,5);break;case 6:Le=0,Gt=null,Bs(e,t,u,6);break;case 8:bu(),tt=6;break e;default:throw Error(r(462))}}o2();break}catch(G){q0(e,G)}while(!0);return Aa=Bn=null,_.H=i,_.A=c,Ve=s,Ce!==null?0:(Pe=null,Ae=0,qi(),tt)}function o2(){for(;Ce!==null&&!Z();)Q0(Ce)}function Q0(e){var t=g0(e.alternate,e,Ha);e.memoizedProps=e.pendingProps,t===null?kr(e):Ce=t}function F0(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=u0(s,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=u0(s,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Vc(t);default:y0(s,t),t=Ce=Xh(t,Ha),t=g0(s,t,Ha)}e.memoizedProps=e.pendingProps,t===null?kr(e):Ce=t}function Bs(e,t,s,i){Aa=Bn=null,Vc(t),Cs=null,Nl=0;var c=t.return;try{if(J1(e,c,t,s,Ae)){tt=1,ur(e,$t(s,e.current)),Ce=null;return}}catch(u){if(c!==null)throw Ce=c,u;tt=1,ur(e,$t(s,e.current)),Ce=null;return}t.flags&32768?(Oe||i===1?e=!0:_s||(Ae&536870912)!==0?e=!1:(rn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Yt.current,i!==null&&i.tag===13&&(i.flags|=16384))),K0(t,e)):kr(t)}function kr(e){var t=e;do{if((t.flags&32768)!==0){K0(t,rn);return}e=t.return;var s=I1(t.alternate,t,Ha);if(s!==null){Ce=s;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);tt===0&&(tt=5)}function K0(e,t){do{var s=e2(e.alternate,e);if(s!==null){s.flags&=32767,Ce=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=s}while(e!==null);tt=6,Ce=null}function Z0(e,t,s,i,c,u,x,b,j){e.cancelPendingCommit=null;do jr();while(dt!==0);if((Ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=cc,Yb(e,s,u,x,b,j),e===Pe&&(Ce=Pe=null,Ae=0),Us=t,un=e,Ya=s,xu=u,yu=c,L0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f2(Ti,function(){return ep(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=_.T,_.T=null,c=J.p,J.p=2,x=Ve,Ve|=4;try{t2(e,t,s)}finally{Ve=x,J.p=c,_.T=i}}dt=1,J0(),$0(),W0()}}function J0(){if(dt===1){dt=0;var e=un,t=Us,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=_.T,_.T=null;var i=J.p;J.p=2;var c=Ve;Ve|=4;try{A0(t,e);var u=Ou,x=Vh(e.containerInfo),b=u.focusedElem,j=u.selectionRange;if(x!==b&&b&&b.ownerDocument&&_h(b.ownerDocument.documentElement,b)){if(j!==null&&sc(b)){var U=j.start,G=j.end;if(G===void 0&&(G=U),"selectionStart"in b)b.selectionStart=U,b.selectionEnd=Math.min(G,b.value.length);else{var Q=b.ownerDocument||document,L=Q&&Q.defaultView||window;if(L.getSelection){var Y=L.getSelection(),ie=b.textContent.length,xe=Math.min(j.start,ie),Ge=j.end===void 0?xe:Math.min(j.end,ie);!Y.extend&&xe>Ge&&(x=Ge,Ge=xe,xe=x);var D=zh(b,xe),C=zh(b,Ge);if(D&&C&&(Y.rangeCount!==1||Y.anchorNode!==D.node||Y.anchorOffset!==D.offset||Y.focusNode!==C.node||Y.focusOffset!==C.offset)){var V=Q.createRange();V.setStart(D.node,D.offset),Y.removeAllRanges(),xe>Ge?(Y.addRange(V),Y.extend(C.node,C.offset)):(V.setEnd(C.node,C.offset),Y.addRange(V))}}}}for(Q=[],Y=b;Y=Y.parentNode;)Y.nodeType===1&&Q.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var P=Q[b];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Vr=!!Ru,Ou=Ru=null}finally{Ve=c,J.p=i,_.T=s}}e.current=t,dt=2}}function $0(){if(dt===2){dt=0;var e=un,t=Us,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=_.T,_.T=null;var i=J.p;J.p=2;var c=Ve;Ve|=4;try{N0(e,t.alternate,t)}finally{Ve=c,J.p=i,_.T=s}}dt=3}}function W0(){if(dt===4||dt===3){dt=0,ve();var e=un,t=Us,s=Ya,i=L0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,Us=un=null,I0(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(cn=null),Bo(s),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(rl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=_.T,c=J.p,J.p=2,_.T=null;try{for(var u=e.onRecoverableError,x=0;x<i.length;x++){var b=i[x];u(b.value,{componentStack:b.stack})}}finally{_.T=t,J.p=c}}(Ya&3)!==0&&jr(),ba(e),c=e.pendingLanes,(s&261930)!==0&&(c&42)!==0?e===vu?ql++:(ql=0,vu=e):ql=0,Gl(0)}}function I0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,kl(t)))}function jr(){return J0(),$0(),W0(),ep()}function ep(){if(dt!==5)return!1;var e=un,t=xu;xu=0;var s=Bo(Ya),i=_.T,c=J.p;try{J.p=32>s?32:s,_.T=null,s=yu,yu=null;var u=un,x=Ya;if(dt=0,Us=un=null,Ya=0,(Ve&6)!==0)throw Error(r(331));var b=Ve;if(Ve|=4,_0(u.current),R0(u,u.current,x,s),Ve=b,Gl(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(rl,u)}catch{}return!0}finally{J.p=c,_.T=i,I0(e,t)}}function tp(e,t,s){t=$t(s,t),t=$c(e.stateNode,t,2),e=an(e,t,2),e!==null&&(cl(e,2),ba(e))}function Be(e,t,s){if(e.tag===3)tp(e,e,s);else for(;t!==null;){if(t.tag===3){tp(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(cn===null||!cn.has(i))){e=$t(s,e),s=a0(2),i=an(t,s,2),i!==null&&(n0(s,i,t,e),cl(i,2),ba(i));break}}t=t.return}}function Su(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new s2;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(s)||(mu=!0,c.add(s),e=c2.bind(null,e,t,s),t.then(e,e))}function c2(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Pe===e&&(Ae&s)===s&&(tt===4||tt===3&&(Ae&62914560)===Ae&&300>I()-yr?(Ve&2)===0&&Ls(e,0):pu|=s,Vs===Ae&&(Vs=0)),ba(e)}function ap(e,t){t===0&&(t=Jf()),e=Vn(e,t),e!==null&&(cl(e,t),ba(e))}function u2(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),ap(e,s)}function d2(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),ap(e,s)}function f2(e,t){return ls(e,t)}var Nr=null,Hs=null,ku=!1,Tr=!1,ju=!1,fn=0;function ba(e){e!==Hs&&e.next===null&&(Hs===null?Nr=Hs=e:Hs=Hs.next=e),Tr=!0,ku||(ku=!0,m2())}function Gl(e,t){if(!ju&&Tr){ju=!0;do for(var s=!1,i=Nr;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var u=0;else{var x=i.suspendedLanes,b=i.pingedLanes;u=(1<<31-Lt(42|e)+1)-1,u&=c&~(x&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(s=!0,ip(i,u))}else u=Ae,u=Ai(i,i===Pe?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||ol(i,u)||(s=!0,ip(i,u));i=i.next}while(s);ju=!1}}function h2(){np()}function np(){Tr=ku=!1;var e=0;fn!==0&&j2()&&(e=fn);for(var t=I(),s=null,i=Nr;i!==null;){var c=i.next,u=sp(i,t);u===0?(i.next=null,s===null?Nr=c:s.next=c,c===null&&(Hs=s)):(s=i,(e!==0||(u&3)!==0)&&(Tr=!0)),i=c}dt!==0&&dt!==5||Gl(e),fn!==0&&(fn=0)}function sp(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var x=31-Lt(u),b=1<<x,j=c[x];j===-1?((b&s)===0||(b&i)!==0)&&(c[x]=Hb(b,t)):j<=t&&(e.expiredLanes|=b),u&=~b}if(t=Pe,s=Ae,s=Ai(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,s===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&is(i),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||ol(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(i!==null&&is(i),Bo(s)){case 2:case 8:s=Kf;break;case 32:s=Ti;break;case 268435456:s=Zf;break;default:s=Ti}return i=lp.bind(null,e),s=ls(s,i),e.callbackPriority=t,e.callbackNode=s,t}return i!==null&&i!==null&&is(i),e.callbackPriority=2,e.callbackNode=null,2}function lp(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(jr()&&e.callbackNode!==s)return null;var i=Ae;return i=Ai(e,e===Pe?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(H0(e,i,t),sp(e,I()),e.callbackNode!=null&&e.callbackNode===s?lp.bind(null,e):null)}function ip(e,t){if(jr())return null;H0(e,t,!0)}function m2(){T2(function(){(Ve&6)!==0?ls(Ff,h2):np()})}function Nu(){if(fn===0){var e=Ns;e===0&&(e=Ei,Ei<<=1,(Ei&261888)===0&&(Ei=256)),fn=e}return fn}function rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zi(""+e)}function op(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function p2(e,t,s,i,c){if(t==="submit"&&s&&s.stateNode===c){var u=rp((c[At]||null).action),x=i.submitter;x&&(t=(t=x[At]||null)?rp(t.formAction):x.getAttribute("formAction"),t!==null&&(u=t,x=null));var b=new Li("action","action",null,i,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fn!==0){var j=x?op(c,x):new FormData(c);Xc(s,{pending:!0,data:j,method:c.method,action:u},null,j)}}else typeof u=="function"&&(b.preventDefault(),j=x?op(c,x):new FormData(c),Xc(s,{pending:!0,data:j,method:c.method,action:u},u,j))},currentTarget:c}]})}}for(var Tu=0;Tu<oc.length;Tu++){var Eu=oc[Tu],g2=Eu.toLowerCase(),x2=Eu[0].toUpperCase()+Eu.slice(1);oa(g2,"on"+x2)}oa(Bh,"onAnimationEnd"),oa(Hh,"onAnimationIteration"),oa(Yh,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(O1,"onTransitionRun"),oa(z1,"onTransitionStart"),oa(_1,"onTransitionCancel"),oa(qh,"onTransitionEnd"),ds("onMouseEnter",["mouseout","mouseover"]),ds("onMouseLeave",["mouseout","mouseover"]),ds("onPointerEnter",["pointerout","pointerover"]),ds("onPointerLeave",["pointerout","pointerover"]),Rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),y2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pl));function cp(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var i=e[s],c=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var x=i.length-1;0<=x;x--){var b=i[x],j=b.instance,U=b.currentTarget;if(b=b.listener,j!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=U;try{u(c)}catch(G){Yi(G)}c.currentTarget=null,u=j}else for(x=0;x<i.length;x++){if(b=i[x],j=b.instance,U=b.currentTarget,b=b.listener,j!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=U;try{u(c)}catch(G){Yi(G)}c.currentTarget=null,u=j}}}}function Me(e,t){var s=t[Ho];s===void 0&&(s=t[Ho]=new Set);var i=e+"__bubble";s.has(i)||(up(t,e,2,!1),s.add(i))}function Cu(e,t,s){var i=0;t&&(i|=4),up(s,e,i,t)}var Er="_reactListening"+Math.random().toString(36).slice(2);function Mu(e){if(!e[Er]){e[Er]=!0,nh.forEach(function(s){s!=="selectionchange"&&(y2.has(s)||Cu(s,!1,e),Cu(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Er]||(t[Er]=!0,Cu("selectionchange",!1,t))}}function up(e,t,s,i){switch(Bp(t)){case 2:var c=Q2;break;case 8:c=F2;break;default:c=Pu}s=c.bind(null,t,s,e),c=void 0,!Zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function Au(e,t,s,i,c){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var x=i.tag;if(x===3||x===4){var b=i.stateNode.containerInfo;if(b===c)break;if(x===4)for(x=i.return;x!==null;){var j=x.tag;if((j===3||j===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;b!==null;){if(x=os(b),x===null)return;if(j=x.tag,j===5||j===6||j===26||j===27){i=u=x;continue e}b=b.parentNode}}i=i.return}ph(function(){var U=u,G=Fo(s),Q=[];e:{var L=Gh.get(e);if(L!==void 0){var Y=Li,ie=e;switch(e){case"keypress":if(Vi(s)===0)break e;case"keydown":case"keyup":Y=d1;break;case"focusin":ie="focus",Y=Io;break;case"focusout":ie="blur",Y=Io;break;case"beforeblur":case"afterblur":Y=Io;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Ib;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=m1;break;case Bh:case Hh:case Yh:Y=a1;break;case qh:Y=g1;break;case"scroll":case"scrollend":Y=$b;break;case"wheel":Y=y1;break;case"copy":case"cut":case"paste":Y=s1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=bh;break;case"toggle":case"beforetoggle":Y=b1}var xe=(t&4)!==0,Ge=!xe&&(e==="scroll"||e==="scrollend"),D=xe?L!==null?L+"Capture":null:L;xe=[];for(var C=U,V;C!==null;){var P=C;if(V=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||V===null||D===null||(P=fl(C,D),P!=null&&xe.push(Xl(C,P,V))),Ge)break;C=C.return}0<xe.length&&(L=new Y(L,ie,null,s,G),Q.push({event:L,listeners:xe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",L&&s!==Qo&&(ie=s.relatedTarget||s.fromElement)&&(os(ie)||ie[rs]))break e;if((Y||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,Y?(ie=s.relatedTarget||s.toElement,Y=U,ie=ie?os(ie):null,ie!==null&&(Ge=f(ie),xe=ie.tag,ie!==Ge||xe!==5&&xe!==27&&xe!==6)&&(ie=null)):(Y=null,ie=U),Y!==ie)){if(xe=yh,P="onMouseLeave",D="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(xe=bh,P="onPointerLeave",D="onPointerEnter",C="pointer"),Ge=Y==null?L:dl(Y),V=ie==null?L:dl(ie),L=new xe(P,C+"leave",Y,s,G),L.target=Ge,L.relatedTarget=V,P=null,os(G)===U&&(xe=new xe(D,C+"enter",ie,s,G),xe.target=V,xe.relatedTarget=Ge,P=xe),Ge=P,Y&&ie)t:{for(xe=v2,D=Y,C=ie,V=0,P=D;P;P=xe(P))V++;P=0;for(var pe=C;pe;pe=xe(pe))P++;for(;0<V-P;)D=xe(D),V--;for(;0<P-V;)C=xe(C),P--;for(;V--;){if(D===C||C!==null&&D===C.alternate){xe=D;break t}D=xe(D),C=xe(C)}xe=null}else xe=null;Y!==null&&dp(Q,L,Y,xe,!1),ie!==null&&Ge!==null&&dp(Q,Ge,ie,xe,!0)}}e:{if(L=U?dl(U):window,Y=L.nodeName&&L.nodeName.toLowerCase(),Y==="select"||Y==="input"&&L.type==="file")var ze=Ch;else if(Th(L))if(Mh)ze=A1;else{ze=C1;var fe=E1}else Y=L.nodeName,!Y||Y.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?U&&Xo(U.elementType)&&(ze=Ch):ze=M1;if(ze&&(ze=ze(e,U))){Eh(Q,ze,s,G);break e}fe&&fe(e,L,U),e==="focusout"&&U&&L.type==="number"&&U.memoizedProps.value!=null&&Po(L,"number",L.value)}switch(fe=U?dl(U):window,e){case"focusin":(Th(fe)||fe.contentEditable==="true")&&(xs=fe,lc=U,bl=null);break;case"focusout":bl=lc=xs=null;break;case"mousedown":ic=!0;break;case"contextmenu":case"mouseup":case"dragend":ic=!1,Uh(Q,s,G);break;case"selectionchange":if(R1)break;case"keydown":case"keyup":Uh(Q,s,G)}var Te;if(tc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else gs?jh(e,s)&&(De="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(De="onCompositionStart");De&&(wh&&s.locale!=="ko"&&(gs||De!=="onCompositionStart"?De==="onCompositionEnd"&&gs&&(Te=gh()):(Za=G,Jo="value"in Za?Za.value:Za.textContent,gs=!0)),fe=Cr(U,De),0<fe.length&&(De=new vh(De,e,null,s,G),Q.push({event:De,listeners:fe}),Te?De.data=Te:(Te=Nh(s),Te!==null&&(De.data=Te)))),(Te=S1?k1(e,s):j1(e,s))&&(De=Cr(U,"onBeforeInput"),0<De.length&&(fe=new vh("onBeforeInput","beforeinput",null,s,G),Q.push({event:fe,listeners:De}),fe.data=Te)),p2(Q,e,U,s,G)}cp(Q,t)})}function Xl(e,t,s){return{instance:e,listener:t,currentTarget:s}}function Cr(e,t){for(var s=t+"Capture",i=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=fl(e,s),c!=null&&i.unshift(Xl(e,c,u)),c=fl(e,t),c!=null&&i.push(Xl(e,c,u))),e.tag===3)return i;e=e.return}return[]}function v2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dp(e,t,s,i,c){for(var u=t._reactName,x=[];s!==null&&s!==i;){var b=s,j=b.alternate,U=b.stateNode;if(b=b.tag,j!==null&&j===i)break;b!==5&&b!==26&&b!==27||U===null||(j=U,c?(U=fl(s,u),U!=null&&x.unshift(Xl(s,U,j))):c||(U=fl(s,u),U!=null&&x.push(Xl(s,U,j)))),s=s.return}x.length!==0&&e.push({event:t,listeners:x})}var b2=/\r\n?/g,w2=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(b2,`
|
||
`).replace(w2,"")}function hp(e,t){return t=fp(t),fp(e)===t}function qe(e,t,s,i,c,u){switch(s){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||hs(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&hs(e,""+i);break;case"className":Ri(e,"class",i);break;case"tabIndex":Ri(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ri(e,s,i);break;case"style":hh(e,i,u);break;case"data":if(t!=="object"){Ri(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=zi(""+i),e.setAttribute(s,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(s,"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 u=="function"&&(s==="formAction"?(t!=="input"&&qe(e,t,"name",c.name,c,null),qe(e,t,"formEncType",c.formEncType,c,null),qe(e,t,"formMethod",c.formMethod,c,null),qe(e,t,"formTarget",c.formTarget,c,null)):(qe(e,t,"encType",c.encType,c,null),qe(e,t,"method",c.method,c,null),qe(e,t,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=zi(""+i),e.setAttribute(s,i);break;case"onClick":i!=null&&(e.onclick=Ta);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(s=i.__html,s!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}s=zi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""+i):e.removeAttribute(s);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":i===!0?e.setAttribute(s,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,i):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(s,i):e.removeAttribute(s);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(s):e.setAttribute(s,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Di(e,"popover",i);break;case"xlinkActuate":Na(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Na(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Na(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Na(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Na(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Na(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Na(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Di(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Zb.get(s)||s,Di(e,s,i))}}function Du(e,t,s,i,c,u){switch(s){case"style":hh(e,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(s=i.__html,s!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"children":typeof i=="string"?hs(e,i):(typeof i=="number"||typeof i=="bigint")&&hs(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Ta);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sh.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),t=s.slice(2,c?s.length-7:void 0),u=e[At]||null,u=u!=null?u[s]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof i=="function")){typeof u!="function"&&u!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,i,c);break e}s in e?e[s]=i:i===!0?e.setAttribute(s,""):Di(e,s,i)}}}function wt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,c=!1,u;for(u in s)if(s.hasOwnProperty(u)){var x=s[u];if(x!=null)switch(u){case"src":i=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,u,x,s,null)}}c&&qe(e,t,"srcSet",s.srcSet,s,null),i&&qe(e,t,"src",s.src,s,null);return;case"input":Me("invalid",e);var b=u=x=c=null,j=null,U=null;for(i in s)if(s.hasOwnProperty(i)){var G=s[i];if(G!=null)switch(i){case"name":c=G;break;case"type":x=G;break;case"checked":j=G;break;case"defaultChecked":U=G;break;case"value":u=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:qe(e,t,i,G,s,null)}}ch(e,u,b,j,U,x,c,!1);return;case"select":Me("invalid",e),i=x=u=null;for(c in s)if(s.hasOwnProperty(c)&&(b=s[c],b!=null))switch(c){case"value":u=b;break;case"defaultValue":x=b;break;case"multiple":i=b;default:qe(e,t,c,b,s,null)}t=u,s=x,e.multiple=!!i,t!=null?fs(e,!!i,t,!1):s!=null&&fs(e,!!i,s,!0);return;case"textarea":Me("invalid",e),u=c=i=null;for(x in s)if(s.hasOwnProperty(x)&&(b=s[x],b!=null))switch(x){case"value":i=b;break;case"defaultValue":c=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:qe(e,t,x,b,s,null)}dh(e,i,c,u);return;case"option":for(j in s)if(s.hasOwnProperty(j)&&(i=s[j],i!=null))switch(j){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:qe(e,t,j,i,s,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<Pl.length;i++)Me(Pl[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in s)if(s.hasOwnProperty(U)&&(i=s[U],i!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:qe(e,t,U,i,s,null)}return;default:if(Xo(t)){for(G in s)s.hasOwnProperty(G)&&(i=s[G],i!==void 0&&Du(e,t,G,i,s,void 0));return}}for(b in s)s.hasOwnProperty(b)&&(i=s[b],i!=null&&qe(e,t,b,i,s,null))}function S2(e,t,s,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,x=null,b=null,j=null,U=null,G=null;for(Y in s){var Q=s[Y];if(s.hasOwnProperty(Y)&&Q!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":j=Q;default:i.hasOwnProperty(Y)||qe(e,t,Y,null,i,Q)}}for(var L in i){var Y=i[L];if(Q=s[L],i.hasOwnProperty(L)&&(Y!=null||Q!=null))switch(L){case"type":u=Y;break;case"name":c=Y;break;case"checked":U=Y;break;case"defaultChecked":G=Y;break;case"value":x=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,t));break;default:Y!==Q&&qe(e,t,L,Y,i,Q)}}Go(e,x,b,j,U,G,u,c);return;case"select":Y=x=b=L=null;for(u in s)if(j=s[u],s.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":Y=j;default:i.hasOwnProperty(u)||qe(e,t,u,null,i,j)}for(c in i)if(u=i[c],j=s[c],i.hasOwnProperty(c)&&(u!=null||j!=null))switch(c){case"value":L=u;break;case"defaultValue":b=u;break;case"multiple":x=u;default:u!==j&&qe(e,t,c,u,i,j)}t=b,s=x,i=Y,L!=null?fs(e,!!s,L,!1):!!i!=!!s&&(t!=null?fs(e,!!s,t,!0):fs(e,!!s,s?[]:"",!1));return;case"textarea":Y=L=null;for(b in s)if(c=s[b],s.hasOwnProperty(b)&&c!=null&&!i.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:qe(e,t,b,null,i,c)}for(x in i)if(c=i[x],u=s[x],i.hasOwnProperty(x)&&(c!=null||u!=null))switch(x){case"value":L=c;break;case"defaultValue":Y=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==u&&qe(e,t,x,c,i,u)}uh(e,L,Y);return;case"option":for(var ie in s)if(L=s[ie],s.hasOwnProperty(ie)&&L!=null&&!i.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:qe(e,t,ie,null,i,L)}for(j in i)if(L=i[j],Y=s[j],i.hasOwnProperty(j)&&L!==Y&&(L!=null||Y!=null))switch(j){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:qe(e,t,j,L,i,Y)}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 xe in s)L=s[xe],s.hasOwnProperty(xe)&&L!=null&&!i.hasOwnProperty(xe)&&qe(e,t,xe,null,i,L);for(U in i)if(L=i[U],Y=s[U],i.hasOwnProperty(U)&&L!==Y&&(L!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:qe(e,t,U,L,i,Y)}return;default:if(Xo(t)){for(var Ge in s)L=s[Ge],s.hasOwnProperty(Ge)&&L!==void 0&&!i.hasOwnProperty(Ge)&&Du(e,t,Ge,void 0,i,L);for(G in i)L=i[G],Y=s[G],!i.hasOwnProperty(G)||L===Y||L===void 0&&Y===void 0||Du(e,t,G,L,i,Y);return}}for(var D in s)L=s[D],s.hasOwnProperty(D)&&L!=null&&!i.hasOwnProperty(D)&&qe(e,t,D,null,i,L);for(Q in i)L=i[Q],Y=s[Q],!i.hasOwnProperty(Q)||L===Y||L==null&&Y==null||qe(e,t,Q,L,i,Y)}function mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),i=0;i<s.length;i++){var c=s[i],u=c.transferSize,x=c.initiatorType,b=c.duration;if(u&&b&&mp(x)){for(x=0,b=c.responseEnd,i+=1;i<s.length;i++){var j=s[i],U=j.startTime;if(U>b)break;var G=j.transferSize,Q=j.initiatorType;G&&mp(Q)&&(j=j.responseEnd,x+=G*(j<b?1:(b-U)/(j-U)))}if(--i,t+=8*(u+x)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ru=null,Ou=null;function Mr(e){return e.nodeType===9?e:e.ownerDocument}function pp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _u=null;function j2(){var e=window.event;return e&&e.type==="popstate"?e===_u?!1:(_u=e,!0):(_u=null,!1)}var xp=typeof setTimeout=="function"?setTimeout:void 0,N2=typeof clearTimeout=="function"?clearTimeout:void 0,yp=typeof Promise=="function"?Promise:void 0,T2=typeof queueMicrotask=="function"?queueMicrotask:typeof yp<"u"?function(e){return yp.resolve(null).then(e).catch(E2)}:xp;function E2(e){setTimeout(function(){throw e})}function hn(e){return e==="head"}function vp(e,t){var s=t,i=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"||s==="/&"){if(i===0){e.removeChild(c),Ps(t);return}i--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")i++;else if(s==="html")Ql(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Ql(s);for(var u=s.firstChild;u;){var x=u.nextSibling,b=u.nodeName;u[ul]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||s.removeChild(u),u=x}}else s==="body"&&Ql(e.ownerDocument.body);s=c}while(s);Ps(t)}function bp(e,t){var s=e;e=0;do{var i=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),i&&i.nodeType===8)if(s=i.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=i}while(s)}function Vu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Vu(s),Yo(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function C2(e,t,s,i){for(;e.nodeType===1;){var c=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ul])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=aa(e.nextSibling),e===null)break}return null}function M2(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=aa(e.nextSibling),e===null))return null;return e}function wp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=aa(e.nextSibling),e===null))return null;return e}function Uu(e){return e.data==="$?"||e.data==="$~"}function Lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A2(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var i=function(){t(),s.removeEventListener("DOMContentLoaded",i)};s.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function aa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bu=null;function Sp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return aa(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function kp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function jp(e,t,s){switch(t=Mr(s),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yo(e)}var na=new Map,Np=new Set;function Ar(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qa=J.d;J.d={f:D2,r:R2,D:O2,C:z2,L:_2,m:V2,X:L2,S:U2,M:B2};function D2(){var e=qa.f(),t=wr();return e||t}function R2(e){var t=cs(e);t!==null&&t.tag===5&&t.type==="form"?qm(t):qa.r(e)}var Ys=typeof document>"u"?null:document;function Tp(e,t,s){var i=Ys;if(i&&typeof t=="string"&&t){var c=Zt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Np.has(c)||(Np.add(c),e={rel:e,crossOrigin:s,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),wt(t,"link",e),mt(t),i.head.appendChild(t)))}}function O2(e){qa.D(e),Tp("dns-prefetch",e,null)}function z2(e,t){qa.C(e,t),Tp("preconnect",e,t)}function _2(e,t,s){qa.L(e,t,s);var i=Ys;if(i&&e&&t){var c='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+Zt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+Zt(s.imageSizes)+'"]')):c+='[href="'+Zt(e)+'"]';var u=c;switch(t){case"style":u=qs(e);break;case"script":u=Gs(e)}na.has(u)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),na.set(u,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Fl(u))||t==="script"&&i.querySelector(Kl(u))||(t=i.createElement("link"),wt(t,"link",e),mt(t),i.head.appendChild(t)))}}function V2(e,t){qa.m(e,t);var s=Ys;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Zt(i)+'"][href="'+Zt(e)+'"]',u=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Gs(e)}if(!na.has(u)&&(e=v({rel:"modulepreload",href:e},t),na.set(u,e),s.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Kl(u)))return}i=s.createElement("link"),wt(i,"link",e),mt(i),s.head.appendChild(i)}}}function U2(e,t,s){qa.S(e,t,s);var i=Ys;if(i&&e){var c=us(i).hoistableStyles,u=qs(e);t=t||"default";var x=c.get(u);if(!x){var b={loading:0,preload:null};if(x=i.querySelector(Fl(u)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=na.get(u))&&Hu(e,s);var j=x=i.createElement("link");mt(j),wt(j,"link",e),j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),j.addEventListener("load",function(){b.loading|=1}),j.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Dr(x,t,i)}x={type:"stylesheet",instance:x,count:1,state:b},c.set(u,x)}}}function L2(e,t){qa.X(e,t);var s=Ys;if(s&&e){var i=us(s).hoistableScripts,c=Gs(e),u=i.get(c);u||(u=s.querySelector(Kl(c)),u||(e=v({src:e,async:!0},t),(t=na.get(c))&&Yu(e,t),u=s.createElement("script"),mt(u),wt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function B2(e,t){qa.M(e,t);var s=Ys;if(s&&e){var i=us(s).hoistableScripts,c=Gs(e),u=i.get(c);u||(u=s.querySelector(Kl(c)),u||(e=v({src:e,async:!0,type:"module"},t),(t=na.get(c))&&Yu(e,t),u=s.createElement("script"),mt(u),wt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(c,u))}}function Ep(e,t,s,i){var c=(c=ue.current)?Ar(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=qs(s.href),s=us(c).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=qs(s.href);var u=us(c).hoistableStyles,x=u.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,x),(u=c.querySelector(Fl(e)))&&!u._p&&(x.instance=u,x.state.loading=5),na.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},na.set(e,s),u||H2(c,e,s,x.state))),t&&i===null)throw Error(r(528,""));return x}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gs(s),s=us(c).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function qs(e){return'href="'+Zt(e)+'"'}function Fl(e){return'link[rel="stylesheet"]['+e+"]"}function Cp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function H2(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),wt(t,"link",s),mt(t),e.head.appendChild(t))}function Gs(e){return'[src="'+Zt(e)+'"]'}function Kl(e){return"script[async]"+e}function Mp(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Zt(s.href)+'"]');if(i)return t.instance=i,mt(i),i;var c=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),mt(i),wt(i,"style",c),Dr(i,s.precedence,e),t.instance=i;case"stylesheet":c=qs(s.href);var u=e.querySelector(Fl(c));if(u)return t.state.loading|=4,t.instance=u,mt(u),u;i=Cp(s),(c=na.get(c))&&Hu(i,c),u=(e.ownerDocument||e).createElement("link"),mt(u);var x=u;return x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),wt(u,"link",i),t.state.loading|=4,Dr(u,s.precedence,e),t.instance=u;case"script":return u=Gs(s.src),(c=e.querySelector(Kl(u)))?(t.instance=c,mt(c),c):(i=s,(c=na.get(u))&&(i=v({},s),Yu(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),mt(c),wt(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Dr(i,s.precedence,e));return t.instance}function Dr(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,u=c,x=0;x<i.length;x++){var b=i[x];if(b.dataset.precedence===t)u=b;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function Hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rr=null;function Ap(e,t,s){if(Rr===null){var i=new Map,c=Rr=new Map;c.set(s,i)}else c=Rr,i=c.get(s),i||(i=new Map,c.set(s,i));if(i.has(e))return i;for(i.set(e,null),s=s.getElementsByTagName(e),c=0;c<s.length;c++){var u=s[c];if(!(u[ul]||u[xt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var x=u.getAttribute(t)||"";x=e+x;var b=i.get(x);b?b.push(u):i.set(x,[u])}}return i}function Dp(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function Y2(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function q2(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=qs(i.href),u=t.querySelector(Fl(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Or.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=u,mt(u);return}u=t.ownerDocument||t,i=Cp(i),(c=na.get(c))&&Hu(i,c),u=u.createElement("link"),mt(u);var x=u;x._p=new Promise(function(b,j){x.onload=b,x.onerror=j}),wt(u,"link",i),s.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=Or.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var qu=0;function G2(e,t){return e.stylesheets&&e.count===0&&_r(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var i=setTimeout(function(){if(e.stylesheets&&_r(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&qu===0&&(qu=62500*k2());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_r(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>qu?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function Or(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var zr=null;function _r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,zr=new Map,t.forEach(P2,e),zr=null,Or.call(e))}function P2(e,t){if(!(t.state.loading&4)){var s=zr.get(e);if(s)var i=s.get(null);else{s=new Map,zr.set(e,s);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var x=c[u];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),i=x)}i&&s.set(null,i)}c=t.instance,x=c.getAttribute("data-precedence"),u=s.get(x)||i,u===i&&s.set(null,c),s.set(x,c),this.count++,i=Or.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Zl={$$typeof:O,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function X2(e,t,s,i,c,u,x,b,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uo(0),this.hiddenUpdates=Uo(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Op(e,t,s,i,c,u,x,b,j,U,G,Q){return e=new X2(e,t,s,x,j,U,G,Q,b),t=1,u===!0&&(t|=24),u=Ht(3,null,null,t),e.current=u,u.stateNode=e,t=wc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:i,isDehydrated:s,cache:t},Nc(u),e}function zp(e){return e?(e=bs,e):bs}function _p(e,t,s,i,c,u){c=zp(c),i.context===null?i.context=c:i.pendingContext=c,i=tn(t),i.payload={element:s},u=u===void 0?null:u,u!==null&&(i.callback=u),s=an(e,i,t),s!==null&&(Vt(s,e,t),El(s,e,t))}function Vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Gu(e,t){Vp(e,t),(e=e.alternate)&&Vp(e,t)}function Up(e){if(e.tag===13||e.tag===31){var t=Vn(e,67108864);t!==null&&Vt(t,e,67108864),Gu(e,67108864)}}function Lp(e){if(e.tag===13||e.tag===31){var t=Xt();t=Lo(t);var s=Vn(e,t);s!==null&&Vt(s,e,t),Gu(e,t)}}var Vr=!0;function Q2(e,t,s,i){var c=_.T;_.T=null;var u=J.p;try{J.p=2,Pu(e,t,s,i)}finally{J.p=u,_.T=c}}function F2(e,t,s,i){var c=_.T;_.T=null;var u=J.p;try{J.p=8,Pu(e,t,s,i)}finally{J.p=u,_.T=c}}function Pu(e,t,s,i){if(Vr){var c=Xu(i);if(c===null)Au(e,t,i,Ur,s),Hp(e,i);else if(Z2(c,e,t,s,i))i.stopPropagation();else if(Hp(e,i),t&4&&-1<K2.indexOf(e)){for(;c!==null;){var u=cs(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var x=Dn(u.pendingLanes);if(x!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;x;){var j=1<<31-Lt(x);b.entanglements[1]|=j,x&=~j}ba(u),(Ve&6)===0&&(vr=I()+500,Gl(0))}}break;case 31:case 13:b=Vn(u,2),b!==null&&Vt(b,u,2),wr(),Gu(u,2)}if(u=Xu(i),u===null&&Au(e,t,i,Ur,s),u===c)break;c=u}c!==null&&i.stopPropagation()}else Au(e,t,i,null,s)}}function Xu(e){return e=Fo(e),Qu(e)}var Ur=null;function Qu(e){if(Ur=null,e=os(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=h(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ur=e,null}function Bp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(Ob()){case Ff:return 2;case Kf:return 8;case Ti:case zb:return 32;case Zf:return 268435456;default:return 32}default:return 32}}var Fu=!1,mn=null,pn=null,gn=null,Jl=new Map,$l=new Map,xn=[],K2="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 Hp(e,t){switch(e){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":Jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(t.pointerId)}}function Wl(e,t,s,i,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:s,eventSystemFlags:i,nativeEvent:u,targetContainers:[c]},t!==null&&(t=cs(t),t!==null&&Up(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Z2(e,t,s,i,c){switch(t){case"focusin":return mn=Wl(mn,e,t,s,i,c),!0;case"dragenter":return pn=Wl(pn,e,t,s,i,c),!0;case"mouseover":return gn=Wl(gn,e,t,s,i,c),!0;case"pointerover":var u=c.pointerId;return Jl.set(u,Wl(Jl.get(u)||null,e,t,s,i,c)),!0;case"gotpointercapture":return u=c.pointerId,$l.set(u,Wl($l.get(u)||null,e,t,s,i,c)),!0}return!1}function Yp(e){var t=os(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=h(s),t!==null){e.blockedOn=t,th(e.priority,function(){Lp(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,th(e.priority,function(){Lp(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Xu(e.nativeEvent);if(s===null){s=e.nativeEvent;var i=new s.constructor(s.type,s);Qo=i,s.target.dispatchEvent(i),Qo=null}else return t=cs(s),t!==null&&Up(t),e.blockedOn=s,!1;t.shift()}return!0}function qp(e,t,s){Lr(e)&&s.delete(t)}function J2(){Fu=!1,mn!==null&&Lr(mn)&&(mn=null),pn!==null&&Lr(pn)&&(pn=null),gn!==null&&Lr(gn)&&(gn=null),Jl.forEach(qp),$l.forEach(qp)}function Br(e,t){e.blockedOn===t&&(e.blockedOn=null,Fu||(Fu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,J2)))}var Hr=null;function Gp(e){Hr!==e&&(Hr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Hr===e&&(Hr=null);for(var t=0;t<e.length;t+=3){var s=e[t],i=e[t+1],c=e[t+2];if(typeof i!="function"){if(Qu(i||s)===null)continue;break}var u=cs(s);u!==null&&(e.splice(t,3),t-=3,Xc(u,{pending:!0,data:c,method:s.method,action:i},i,c))}}))}function Ps(e){function t(j){return Br(j,e)}mn!==null&&Br(mn,e),pn!==null&&Br(pn,e),gn!==null&&Br(gn,e),Jl.forEach(t),$l.forEach(t);for(var s=0;s<xn.length;s++){var i=xn[s];i.blockedOn===e&&(i.blockedOn=null)}for(;0<xn.length&&(s=xn[0],s.blockedOn===null);)Yp(s),s.blockedOn===null&&xn.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(i=0;i<s.length;i+=3){var c=s[i],u=s[i+1],x=c[At]||null;if(typeof u=="function")x||Gp(s);else if(x){var b=null;if(u&&u.hasAttribute("formAction")){if(c=u,x=u[At]||null)b=x.formAction;else if(Qu(c)!==null)continue}else b=x.action;typeof b=="function"?s[i+1]=b:(s.splice(i,3),i-=3),Gp(s)}}}function Pp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(x){return c=x})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),i||setTimeout(s,20)}function s(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Ku(e){this._internalRoot=e}Yr.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var s=t.current,i=Xt();_p(s,i,e,t,null,null)},Yr.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_p(e.current,2,null,e,null,null),wr(),t[rs]=null}};function Yr(e){this._internalRoot=e}Yr.prototype.unstable_scheduleHydration=function(e){if(e){var t=eh();e={blockedOn:null,target:e,priority:t};for(var s=0;s<xn.length&&t!==0&&t<xn[s].priority;s++);xn.splice(s,0,e),s===0&&Yp(e)}};var Xp=n.version;if(Xp!=="19.2.4")throw Error(r(527,Xp,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var $2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qr.isDisabled&&qr.supportsFiber)try{rl=qr.inject($2),Ut=qr}catch{}}return ei.createRoot=function(e,t){if(!o(e))throw Error(r(299));var s=!1,i="",c=Wm,u=Im,x=e0;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=Op(e,1,!1,null,null,s,i,null,c,u,x,Pp),e[rs]=t.current,Mu(e),new Ku(t)},ei.hydrateRoot=function(e,t,s){if(!o(e))throw Error(r(299));var i=!1,c="",u=Wm,x=Im,b=e0,j=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(u=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError),s.formState!==void 0&&(j=s.formState)),t=Op(e,1,!0,t,s??null,i,c,j,u,x,b,Pp),t.context=zp(null),s=t.current,i=Xt(),i=Lo(i),c=tn(i),c.callback=null,an(s,c,i),s=i,t.current.lanes=s,cl(t,s),ba(t),e[rs]=t.current,Mu(e),new Yr(t)},ei.version="19.2.4",ei}var tg;function rw(){if(tg)return $u.exports;tg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(n){console.error(n)}}return a(),$u.exports=iw(),$u.exports}var ow=rw();/**
|
||
* react-router v7.13.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var ag="popstate";function ng(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function cw(a={}){function n(r,o){var g;let f=(g=o.state)==null?void 0:g.masked,{pathname:h,search:m,hash:p}=f||r.location;return Md("",{pathname:h,search:m,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function l(r,o){return typeof o=="string"?o:fi(o)}return dw(n,l,null,a)}function Je(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function ia(a,n){if(!a){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function uw(){return Math.random().toString(36).substring(2,10)}function sg(a,n){return{usr:a.state,key:a.key,idx:n,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Md(a,n,l=null,r,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof n=="string"?el(n):n,state:l,key:n&&n.key||r||uw(),unstable_mask:o}}function fi({pathname:a="/",search:n="",hash:l=""}){return n&&n!=="?"&&(a+=n.charAt(0)==="?"?n:"?"+n),l&&l!=="#"&&(a+=l.charAt(0)==="#"?l:"#"+l),a}function el(a){let n={};if(a){let l=a.indexOf("#");l>=0&&(n.hash=a.substring(l),a=a.substring(0,l));let r=a.indexOf("?");r>=0&&(n.search=a.substring(r),a=a.substring(0,r)),a&&(n.pathname=a)}return n}function dw(a,n,l,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function v(){m="POP";let M=y(),A=M==null?null:M-g;g=M,p&&p({action:m,location:E.location,delta:A})}function w(M,A){m="PUSH";let z=ng(M)?M:Md(E.location,M,A);g=y()+1;let O=sg(z,g),H=E.createHref(z.unstable_mask||z);try{h.pushState(O,"",H)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;o.location.assign(H)}f&&p&&p({action:m,location:E.location,delta:1})}function k(M,A){m="REPLACE";let z=ng(M)?M:Md(E.location,M,A);g=y();let O=sg(z,g),H=E.createHref(z.unstable_mask||z);h.replaceState(O,"",H),f&&p&&p({action:m,location:E.location,delta:0})}function T(M){return fw(M)}let E={get action(){return m},get location(){return a(o,h)},listen(M){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(ag,v),p=M,()=>{o.removeEventListener(ag,v),p=null}},createHref(M){return n(o,M)},createURL:T,encodeLocation(M){let A=T(M);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:k,go(M){return h.go(M)}};return E}function fw(a,n=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Je(l,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:fi(a);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=l+r),new URL(r,l)}function Ix(a,n,l="/"){return hw(a,n,l,!1)}function hw(a,n,l,r){let o=typeof n=="string"?el(n):n,f=Qa(o.pathname||"/",l);if(f==null)return null;let h=ey(a);mw(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=Nw(f);m=kw(h[p],g,r)}return m}function ey(a,n=[],l=[],r="",o=!1){let f=(h,m,p=o,g)=>{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;Je(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let v=Sa([r,y.relativePath]),w=l.concat(y);h.children&&h.children.length>0&&(Je(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),ey(h.children,n,w,v,p)),!(h.path==null&&!h.index)&&n.push({path:v,score:ww(v,h.index),routesMeta:w})};return a.forEach((h,m)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,m);else for(let g of ty(h.path))f(h,m,!0,g)}),n}function ty(a){let n=a.split("/");if(n.length===0)return[];let[l,...r]=n,o=l.endsWith("?"),f=l.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=ty(r.join("/")),m=[];return m.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&m.push(...h),m.map(p=>a.startsWith("/")&&p===""?"/":p)}function mw(a){a.sort((n,l)=>n.score!==l.score?l.score-n.score:Sw(n.routesMeta.map(r=>r.childrenIndex),l.routesMeta.map(r=>r.childrenIndex)))}var pw=/^:[\w-]+$/,gw=3,xw=2,yw=1,vw=10,bw=-2,lg=a=>a==="*";function ww(a,n){let l=a.split("/"),r=l.length;return l.some(lg)&&(r+=bw),n&&(r+=xw),l.filter(o=>!lg(o)).reduce((o,f)=>o+(pw.test(f)?gw:f===""?yw:vw),r)}function Sw(a,n){return a.length===n.length&&a.slice(0,-1).every((r,o)=>r===n[o])?a[a.length-1]-n[n.length-1]:0}function kw(a,n,l=!1){let{routesMeta:r}=a,o={},f="/",h=[];for(let m=0;m<r.length;++m){let p=r[m],g=m===r.length-1,y=f==="/"?n:n.slice(f.length)||"/",v=ho({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!v&&g&&l&&!r[r.length-1].route.index&&(v=ho({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),h.push({params:o,pathname:Sa([f,v.pathname]),pathnameBase:Mw(Sa([f,v.pathnameBase])),route:w}),v.pathnameBase!=="/"&&(f=Sa([f,v.pathnameBase]))}return h}function ho(a,n){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[l,r]=jw(a.path,a.caseSensitive,a.end),o=n.match(l);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:v},w)=>{if(y==="*"){let T=m[w]||"";h=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const k=m[w];return v&&!k?g[y]=void 0:g[y]=(k||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:a}}function jw(a,n=!1,l=!0){ia(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],o="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p,g,y)=>{if(r.push({paramName:m,isOptional:p!=null}),p){let v=y.charAt(g+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),o+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?o+="\\/*$":a!==""&&a!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function Nw(a){try{return a.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return ia(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),a}}function Qa(a,n){if(n==="/")return a;if(!a.toLowerCase().startsWith(n.toLowerCase()))return null;let l=n.endsWith("/")?n.length-1:n.length,r=a.charAt(l);return r&&r!=="/"?null:a.slice(l)||"/"}var Tw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ew(a,n="/"){let{pathname:l,search:r="",hash:o=""}=typeof a=="string"?el(a):a,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=ig(l.substring(1),"/"):f=ig(l,n)):f=n,{pathname:f,search:Aw(r),hash:Dw(o)}}function ig(a,n){let l=n.replace(/\/+$/,"").split("/");return a.split("/").forEach(o=>{o===".."?l.length>1&&l.pop():o!=="."&&l.push(o)}),l.length>1?l.join("/"):"/"}function td(a,n,l,r){return`Cannot include a '${a}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cw(a){return a.filter((n,l)=>l===0||n.route.path&&n.route.path.length>0)}function of(a){let n=Cw(a);return n.map((l,r)=>r===n.length-1?l.pathname:l.pathnameBase)}function Mo(a,n,l,r=!1){let o;typeof a=="string"?o=el(a):(o={...a},Je(!o.pathname||!o.pathname.includes("?"),td("?","pathname","search",o)),Je(!o.pathname||!o.pathname.includes("#"),td("#","pathname","hash",o)),Je(!o.search||!o.search.includes("#"),td("#","search","hash",o)));let f=a===""||o.pathname==="",h=f?"/":o.pathname,m;if(h==null)m=l;else{let v=n.length-1;if(!r&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),v-=1;o.pathname=w.join("/")}m=v>=0?n[v]:"/"}let p=Ew(o,m),g=h&&h!=="/"&&h.endsWith("/"),y=(f||h===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Sa=a=>a.join("/").replace(/\/\/+/g,"/"),Mw=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Aw=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Dw=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Rw=class{constructor(a,n,l,r=!1){this.status=a,this.statusText=n||"",this.internal=r,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Ow(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function zw(a){return a.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ny(a,n){let l=a;if(typeof l!="string"||!Tw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let r=l,o=!1;if(ay)try{let f=new URL(window.location.href),h=l.startsWith("//")?new URL(f.protocol+l):new URL(l),m=Qa(h.pathname,n);h.origin===f.origin&&m!=null?l=m+h.search+h.hash:o=!0}catch{ia(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sy=["POST","PUT","PATCH","DELETE"];new Set(sy);var _w=["GET",...sy];new Set(_w);var tl=S.createContext(null);tl.displayName="DataRouter";var Ao=S.createContext(null);Ao.displayName="DataRouterState";var Vw=S.createContext(!1),ly=S.createContext({isTransitioning:!1});ly.displayName="ViewTransition";var Uw=S.createContext(new Map);Uw.displayName="Fetchers";var Lw=S.createContext(null);Lw.displayName="Await";var Ft=S.createContext(null);Ft.displayName="Navigation";var vi=S.createContext(null);vi.displayName="Location";var ma=S.createContext({outlet:null,matches:[],isDataRoute:!1});ma.displayName="Route";var cf=S.createContext(null);cf.displayName="RouteError";var iy="REACT_ROUTER_ERROR",Bw="REDIRECT",Hw="ROUTE_ERROR_RESPONSE";function Yw(a){if(a.startsWith(`${iy}:${Bw}:{`))try{let n=JSON.parse(a.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function qw(a){if(a.startsWith(`${iy}:${Hw}:{`))try{let n=JSON.parse(a.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new Rw(n.status,n.statusText,n.data)}catch{}}function Gw(a,{relative:n}={}){Je(al(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:r}=S.useContext(Ft),{hash:o,pathname:f,search:h}=wi(a,{relative:n}),m=f;return l!=="/"&&(m=f==="/"?l:Sa([l,f])),r.createHref({pathname:m,search:h,hash:o})}function al(){return S.useContext(vi)!=null}function pa(){return Je(al(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(vi).location}var ry="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oy(a){S.useContext(Ft).static||S.useLayoutEffect(a)}function bi(){let{isDataRoute:a}=S.useContext(ma);return a?sS():Pw()}function Pw(){Je(al(),"useNavigate() may be used only in the context of a <Router> component.");let a=S.useContext(tl),{basename:n,navigator:l}=S.useContext(Ft),{matches:r}=S.useContext(ma),{pathname:o}=pa(),f=JSON.stringify(of(r)),h=S.useRef(!1);return oy(()=>{h.current=!0}),S.useCallback((p,g={})=>{if(ia(h.current,ry),!h.current)return;if(typeof p=="number"){l.go(p);return}let y=Mo(p,JSON.parse(f),o,g.relative==="path");a==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Sa([n,y.pathname])),(g.replace?l.replace:l.push)(y,g.state,g)},[n,l,f,o,a])}var Xw=S.createContext(null);function Qw(a){let n=S.useContext(ma).outlet;return S.useMemo(()=>n&&S.createElement(Xw.Provider,{value:a},n),[n,a])}function wi(a,{relative:n}={}){let{matches:l}=S.useContext(ma),{pathname:r}=pa(),o=JSON.stringify(of(l));return S.useMemo(()=>Mo(a,JSON.parse(o),r,n==="path"),[a,o,r,n])}function Fw(a,n){return cy(a,n)}function cy(a,n,l){var M;Je(al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(Ft),{matches:o}=S.useContext(ma),f=o[o.length-1],h=f?f.params:{},m=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let A=g&&g.path||"";dy(m,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=pa(),v;if(n){let A=typeof n=="string"?el(n):n;Je(p==="/"||((M=A.pathname)==null?void 0:M.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),v=A}else v=y;let w=v.pathname||"/",k=w;if(p!=="/"){let A=p.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=Ix(a,{pathname:k});ia(g||T!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ia(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Ww(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},h,A.params),pathname:Sa([p,r.encodeLocation?r.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:Sa([p,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,l);return n&&E?S.createElement(vi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},E):E}function Kw(){let a=nS(),n=Ow(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),l=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),l?S.createElement("pre",{style:o},l):null,h)}var Zw=S.createElement(Kw,null),uy=class extends S.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,n){return n.location!==a.location||n.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:n.error,location:n.location,revalidation:a.revalidation||n.revalidation}}componentDidCatch(a,n){this.props.onError?this.props.onError(a,n):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const l=qw(a.digest);l&&(a=l)}let n=a!==void 0?S.createElement(ma.Provider,{value:this.props.routeContext},S.createElement(cf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement(Jw,{error:a},n):n}};uy.contextType=Vw;var ad=new WeakMap;function Jw({children:a,error:n}){let{basename:l}=S.useContext(Ft);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let r=Yw(n.digest);if(r){let o=ad.get(n);if(o)throw o;let f=ny(r.location,l);if(ay&&!ad.get(n))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw ad.set(n,h),h}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function $w({routeContext:a,match:n,children:l}){let r=S.useContext(tl);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(ma.Provider,{value:a},l)}function Ww(a,n=[],l){let r=l==null?void 0:l.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let o=a,f=r==null?void 0:r.errors;if(f!=null){let y=o.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Je(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let h=!1,m=-1;if(l&&r){h=r.renderFallback;for(let y=0;y<o.length;y++){let v=o[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=y),v.route.id){let{loaderData:w,errors:k}=r,T=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!k||k[v.route.id]===void 0);if(v.route.lazy||T){l.isStatic&&(h=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let p=l==null?void 0:l.onError,g=r&&p?(y,v)=>{var w,k;p(y,{location:r.location,params:((k=(w=r.matches)==null?void 0:w[0])==null?void 0:k.params)??{},unstable_pattern:zw(r.matches),errorInfo:v})}:void 0;return o.reduceRight((y,v,w)=>{let k,T=!1,E=null,M=null;r&&(k=f&&v.route.id?f[v.route.id]:void 0,E=v.route.errorElement||Zw,h&&(m<0&&w===0?(dy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):m===w&&(T=!0,M=v.route.hydrateFallbackElement||null)));let A=n.concat(o.slice(0,w+1)),z=()=>{let O;return k?O=E:T?O=M:v.route.Component?O=S.createElement(v.route.Component,null):v.route.element?O=v.route.element:O=y,S.createElement($w,{match:v,routeContext:{outlet:y,matches:A,isDataRoute:r!=null},children:O})};return r&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?S.createElement(uy,{location:r.location,revalidation:r.revalidation,component:E,error:k,children:z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:g}):z()},null)}function uf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iw(a){let n=S.useContext(tl);return Je(n,uf(a)),n}function eS(a){let n=S.useContext(Ao);return Je(n,uf(a)),n}function tS(a){let n=S.useContext(ma);return Je(n,uf(a)),n}function df(a){let n=tS(a),l=n.matches[n.matches.length-1];return Je(l.route.id,`${a} can only be used on routes that contain a unique "id"`),l.route.id}function aS(){return df("useRouteId")}function nS(){var r;let a=S.useContext(cf),n=eS("useRouteError"),l=df("useRouteError");return a!==void 0?a:(r=n.errors)==null?void 0:r[l]}function sS(){let{router:a}=Iw("useNavigate"),n=df("useNavigate"),l=S.useRef(!1);return oy(()=>{l.current=!0}),S.useCallback(async(o,f={})=>{ia(l.current,ry),l.current&&(typeof o=="number"?await a.navigate(o):await a.navigate(o,{fromRouteId:n,...f}))},[a,n])}var rg={};function dy(a,n,l){!n&&!rg[a]&&(rg[a]=!0,ia(!1,l))}S.memo(lS);function lS({routes:a,future:n,state:l,isStatic:r,onError:o}){return cy(a,void 0,{state:l,isStatic:r,onError:o})}function fy({to:a,replace:n,state:l,relative:r}){Je(al(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=S.useContext(Ft);ia(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=S.useContext(ma),{pathname:h}=pa(),m=bi(),p=Mo(a,of(f),h,r==="path"),g=JSON.stringify(p);return S.useEffect(()=>{m(JSON.parse(g),{replace:n,state:l,relative:r})},[m,g,r,n,l]),null}function iS(a){return Qw(a.context)}function Sn(a){Je(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rS({basename:a="/",children:n=null,location:l,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){Je(!al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=a.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:m,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[m,o,f,h]);typeof l=="string"&&(l=el(l));let{pathname:g="/",search:y="",hash:v="",state:w=null,key:k="default",unstable_mask:T}=l,E=S.useMemo(()=>{let M=Qa(g,m);return M==null?null:{location:{pathname:M,search:y,hash:v,state:w,key:k,unstable_mask:T},navigationType:r}},[m,g,y,v,w,k,r,T]);return ia(E!=null,`<Router basename="${m}"> is not able to match the URL "${g}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(Ft.Provider,{value:p},S.createElement(vi.Provider,{children:n,value:E}))}function oS({children:a,location:n}){return Fw(Ad(a),n)}function Ad(a,n=[]){let l=[];return S.Children.forEach(a,(r,o)=>{if(!S.isValidElement(r))return;let f=[...n,o];if(r.type===S.Fragment){l.push.apply(l,Ad(r.props.children,f));return}Je(r.type===Sn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Je(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Ad(r.props.children,f)),l.push(h)}),l}var to="get",ao="application/x-www-form-urlencoded";function Do(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function cS(a){return Do(a)&&a.tagName.toLowerCase()==="button"}function uS(a){return Do(a)&&a.tagName.toLowerCase()==="form"}function dS(a){return Do(a)&&a.tagName.toLowerCase()==="input"}function fS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function hS(a,n){return a.button===0&&(!n||n==="_self")&&!fS(a)}function Dd(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((n,l)=>{let r=a[l];return n.concat(Array.isArray(r)?r.map(o=>[l,o]):[[l,r]])},[]))}function mS(a,n){let l=Dd(a);return n&&n.forEach((r,o)=>{l.has(o)||n.getAll(o).forEach(f=>{l.append(o,f)})}),l}var Gr=null;function pS(){if(Gr===null)try{new FormData(document.createElement("form"),0),Gr=!1}catch{Gr=!0}return Gr}var gS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nd(a){return a!=null&&!gS.has(a)?(ia(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ao}"`),null):a}function xS(a,n){let l,r,o,f,h;if(uS(a)){let m=a.getAttribute("action");r=m?Qa(m,n):null,l=a.getAttribute("method")||to,o=nd(a.getAttribute("enctype"))||ao,f=new FormData(a)}else if(cS(a)||dS(a)&&(a.type==="submit"||a.type==="image")){let m=a.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=a.getAttribute("formaction")||m.getAttribute("action");if(r=p?Qa(p,n):null,l=a.getAttribute("formmethod")||m.getAttribute("method")||to,o=nd(a.getAttribute("formenctype"))||nd(m.getAttribute("enctype"))||ao,f=new FormData(m,a),!pS()){let{name:g,type:y,value:v}=a;if(y==="image"){let w=g?`${g}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else g&&f.append(g,v)}}else{if(Do(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=to,r=null,o=ao,h=a}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:l.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ff(a,n){if(a===!1||a===null||typeof a>"u")throw new Error(n)}function yS(a,n,l,r){let o=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return l?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:n&&Qa(o.pathname,n)==="/"?o.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function vS(a,n){if(a.id in n)return n[a.id];try{let l=await import(a.module);return n[a.id]=l,l}catch(l){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bS(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function wS(a,n,l){let r=await Promise.all(a.map(async o=>{let f=n.routes[o.route.id];if(f){let h=await vS(f,l);return h.links?h.links():[]}return[]}));return NS(r.flat(1).filter(bS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function og(a,n,l,r,o,f){let h=(p,g)=>l[g]?p.route.id!==l[g].route.id:!0,m=(p,g)=>{var y;return l[g].pathname!==p.pathname||((y=l[g].route.path)==null?void 0:y.endsWith("*"))&&l[g].params["*"]!==p.params["*"]};return f==="assets"?n.filter((p,g)=>h(p,g)||m(p,g)):f==="data"?n.filter((p,g)=>{var v;let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=l[0])==null?void 0:v.params)||{},nextUrl:new URL(a,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function SS(a,n,{includeHydrateFallback:l}={}){return kS(a.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),l&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function kS(a){return[...new Set(a)]}function jS(a){let n={},l=Object.keys(a).sort();for(let r of l)n[r]=a[r];return n}function NS(a,n){let l=new Set;return new Set(n),a.reduce((r,o)=>{let f=JSON.stringify(jS(o));return l.has(f)||(l.add(f),r.push({key:f,link:o})),r},[])}function hy(){let a=S.useContext(tl);return ff(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function TS(){let a=S.useContext(Ao);return ff(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var hf=S.createContext(void 0);hf.displayName="FrameworkContext";function my(){let a=S.useContext(hf);return ff(a,"You must render this element inside a <HydratedRouter> element"),a}function ES(a,n){let l=S.useContext(hf),[r,o]=S.useState(!1),[f,h]=S.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:v}=n,w=S.useRef(null);S.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let E=A=>{A.forEach(z=>{h(z.isIntersecting)})},M=new IntersectionObserver(E,{threshold:.5});return w.current&&M.observe(w.current),()=>{M.disconnect()}}},[a]),S.useEffect(()=>{if(r){let E=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(E)}}},[r]);let k=()=>{o(!0)},T=()=>{o(!1),h(!1)};return l?a!=="intent"?[f,w,{}]:[f,w,{onFocus:ti(m,k),onBlur:ti(p,T),onMouseEnter:ti(g,k),onMouseLeave:ti(y,T),onTouchStart:ti(v,k)}]:[!1,w,{}]}function ti(a,n){return l=>{a&&a(l),l.defaultPrevented||n(l)}}function CS({page:a,...n}){let{router:l}=hy(),r=S.useMemo(()=>Ix(l.routes,a,l.basename),[l.routes,a,l.basename]);return r?S.createElement(AS,{page:a,matches:r,...n}):null}function MS(a){let{manifest:n,routeModules:l}=my(),[r,o]=S.useState([]);return S.useEffect(()=>{let f=!1;return wS(a,n,l).then(h=>{f||o(h)}),()=>{f=!0}},[a,n,l]),r}function AS({page:a,matches:n,...l}){let r=pa(),{future:o,manifest:f,routeModules:h}=my(),{basename:m}=hy(),{loaderData:p,matches:g}=TS(),y=S.useMemo(()=>og(a,n,g,f,r,"data"),[a,n,g,f,r]),v=S.useMemo(()=>og(a,n,g,f,r,"assets"),[a,n,g,f,r]),w=S.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let E=new Set,M=!1;if(n.forEach(z=>{var H;let O=f.routes[z.route.id];!O||!O.hasLoader||(!y.some(X=>X.route.id===z.route.id)&&z.route.id in p&&((H=h[z.route.id])!=null&&H.shouldRevalidate)||O.hasClientLoader?M=!0:E.add(z.route.id))}),E.size===0)return[];let A=yS(a,m,o.unstable_trailingSlashAwareDataRequests,"data");return M&&E.size>0&&A.searchParams.set("_routes",n.filter(z=>E.has(z.route.id)).map(z=>z.route.id).join(",")),[A.pathname+A.search]},[m,o.unstable_trailingSlashAwareDataRequests,p,r,f,y,n,a,h]),k=S.useMemo(()=>SS(v,f),[v,f]),T=MS(v);return S.createElement(S.Fragment,null,w.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),k.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),T.map(({key:E,link:M})=>S.createElement("link",{key:E,nonce:l.nonce,...M,crossOrigin:M.crossOrigin??l.crossOrigin})))}function DS(...a){return n=>{a.forEach(l=>{typeof l=="function"?l(n):l!=null&&(l.current=n)})}}var RS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{RS&&(window.__reactRouterVersion="7.13.1")}catch{}function OS({basename:a,children:n,unstable_useTransitions:l,window:r}){let o=S.useRef();o.current==null&&(o.current=cw({window:r,v5Compat:!0}));let f=o.current,[h,m]=S.useState({action:f.action,location:f.location}),p=S.useCallback(g=>{l===!1?m(g):S.startTransition(()=>m(g))},[l]);return S.useLayoutEffect(()=>f.listen(p),[f,p]),S.createElement(rS,{basename:a,children:n,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:l})}var py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mo=S.forwardRef(function({onClick:n,discover:l="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,unstable_mask:m,state:p,target:g,to:y,preventScrollReset:v,viewTransition:w,unstable_defaultShouldRevalidate:k,...T},E){let{basename:M,navigator:A,unstable_useTransitions:z}=S.useContext(Ft),O=typeof y=="string"&&py.test(y),H=ny(y,M);y=H.to;let X=Gw(y,{relative:o}),ne=pa(),F=null;if(m){let ge=Mo(m,[],ne.unstable_mask?ne.unstable_mask.pathname:"/",!0);M!=="/"&&(ge.pathname=ge.pathname==="/"?M:Sa([M,ge.pathname])),F=A.createHref(ge)}let[B,$,ee]=ES(r,T),re=US(y,{replace:h,unstable_mask:m,state:p,target:g,preventScrollReset:v,relative:o,viewTransition:w,unstable_defaultShouldRevalidate:k,unstable_useTransitions:z});function me(ge){n&&n(ge),ge.defaultPrevented||re(ge)}let Re=!(H.isExternal||f),Se=S.createElement("a",{...T,...ee,href:(Re?F:void 0)||H.absoluteURL||X,onClick:Re?me:n,ref:DS(E,$),target:g,"data-discover":!O&&l==="render"?"true":void 0});return B&&!O?S.createElement(S.Fragment,null,Se,S.createElement(CS,{page:X})):Se});mo.displayName="Link";var zS=S.forwardRef(function({"aria-current":n="page",caseSensitive:l=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:m,children:p,...g},y){let v=wi(h,{relative:g.relative}),w=pa(),k=S.useContext(Ao),{navigator:T,basename:E}=S.useContext(Ft),M=k!=null&&GS(v)&&m===!0,A=T.encodeLocation?T.encodeLocation(v).pathname:v.pathname,z=w.pathname,O=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;l||(z=z.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&E&&(O=Qa(O,E)||O);const H=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let X=z===A||!o&&z.startsWith(A)&&z.charAt(H)==="/",ne=O!=null&&(O===A||!o&&O.startsWith(A)&&O.charAt(A.length)==="/"),F={isActive:X,isPending:ne,isTransitioning:M},B=X?n:void 0,$;typeof r=="function"?$=r(F):$=[r,X?"active":null,ne?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(F):f;return S.createElement(mo,{...g,"aria-current":B,className:$,ref:y,style:ee,to:h,viewTransition:m},typeof p=="function"?p(F):p)});zS.displayName="NavLink";var _S=S.forwardRef(({discover:a="render",fetcherKey:n,navigate:l,reloadDocument:r,replace:o,state:f,method:h=to,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:w,...k},T)=>{let{unstable_useTransitions:E}=S.useContext(Ft),M=YS(),A=qS(m,{relative:g}),z=h.toLowerCase()==="get"?"get":"post",O=typeof m=="string"&&py.test(m),H=X=>{if(p&&p(X),X.defaultPrevented)return;X.preventDefault();let ne=X.nativeEvent.submitter,F=(ne==null?void 0:ne.getAttribute("formmethod"))||h,B=()=>M(ne||X.currentTarget,{fetcherKey:n,method:F,navigate:l,replace:o,state:f,relative:g,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:w});E&&l!==!1?S.startTransition(()=>B()):B()};return S.createElement("form",{ref:T,method:z,action:A,onSubmit:r?p:H,...k,"data-discover":!O&&a==="render"?"true":void 0})});_S.displayName="Form";function VS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gy(a){let n=S.useContext(tl);return Je(n,VS(a)),n}function US(a,{target:n,replace:l,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let y=bi(),v=pa(),w=wi(a,{relative:h});return S.useCallback(k=>{if(hS(k,n)){k.preventDefault();let T=l!==void 0?l:fi(v)===fi(w),E=()=>y(a,{replace:T,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p});g?S.startTransition(()=>E()):E()}},[v,y,w,l,r,o,n,a,f,h,m,p,g])}function LS(a){ia(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=S.useRef(Dd(a)),l=S.useRef(!1),r=pa(),o=S.useMemo(()=>mS(r.search,l.current?null:n.current),[r.search]),f=bi(),h=S.useCallback((m,p)=>{const g=Dd(typeof m=="function"?m(new URLSearchParams(o)):m);l.current=!0,f("?"+g,p)},[f,o]);return[o,h]}var BS=0,HS=()=>`__${String(++BS)}__`;function YS(){let{router:a}=gy("useSubmit"),{basename:n}=S.useContext(Ft),l=aS(),r=a.fetch,o=a.navigate;return S.useCallback(async(f,h={})=>{let{action:m,method:p,encType:g,formData:y,body:v}=xS(f,n);if(h.navigate===!1){let w=h.fetcherKey||HS();await r(w,l,h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:v,formMethod:h.method||p,formEncType:h.encType||g,flushSync:h.flushSync})}else await o(h.action||m,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:y,body:v,formMethod:h.method||p,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,n,l])}function qS(a,{relative:n}={}){let{basename:l}=S.useContext(Ft),r=S.useContext(ma);Je(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...wi(a||".",{relative:n})},h=pa();if(a==null){f.search=h.search;let m=new URLSearchParams(f.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(v=>v).forEach(v=>m.append("index",v));let y=m.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:Sa([l,f.pathname])),fi(f)}function GS(a,{relative:n}={}){let l=S.useContext(ly);Je(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=gy("useViewTransitionState"),o=wi(a,{relative:n});if(!l.isTransitioning)return!1;let f=Qa(l.currentLocation.pathname,r)||l.currentLocation.pathname,h=Qa(l.nextLocation.pathname,r)||l.nextLocation.pathname;return ho(o.pathname,h)!=null||ho(o.pathname,f)!=null}/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const PS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,l,r)=>r?r.toUpperCase():l.toLowerCase()),cg=a=>{const n=XS(a);return n.charAt(0).toUpperCase()+n.slice(1)},xy=(...a)=>a.filter((n,l,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===l).join(" ").trim(),QS=a=>{for(const n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var FS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const KS=S.forwardRef(({color:a="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...m},p)=>S.createElement("svg",{ref:p,...FS,width:n,height:n,stroke:a,strokeWidth:r?Number(l)*24/Number(n):l,className:xy("lucide",o),...!f&&!QS(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>S.createElement(g,y)),...Array.isArray(f)?f:[f]]));/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ne=(a,n)=>{const l=S.forwardRef(({className:r,...o},f)=>S.createElement(KS,{ref:f,iconNode:n,className:xy(`lucide-${PS(cg(a))}`,`lucide-${a}`,r),...o}));return l.displayName=cg(a),l};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ZS=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ug=Ne("activity",ZS);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const JS=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],$S=Ne("bell",JS);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const WS=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],IS=Ne("briefcase-business",WS);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ek=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],tk=Ne("briefcase",ek);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ak=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],sd=Ne("building-2",ak);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nk=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],dg=Ne("building",nk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],lk=Ne("calendar-check",sk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ik=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],rk=Ne("calendar-days",ik);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ok=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],po=Ne("calendar",ok);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ck=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],uk=Ne("camera",ck);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dk=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],fk=Ne("chart-column",dk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],go=Ne("chevron-right",hk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],yy=Ne("circle-check",mk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gk=Ne("circle-question-mark",pk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xk=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yk=Ne("circle-user-round",xk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vy=Ne("clock",vk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bk=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],fg=Ne("dollar-sign",bk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ld=Ne("eye-off",wk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],id=Ne("eye",Sk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kk=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],xo=Ne("file-text",kk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jk=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Nk=Ne("funnel",jk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tk=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Ek=Ne("house",Tk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ck=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Mk=Ne("link",Ck);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ak=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Dk=Ne("list-todo",Ak);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rk=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ok=Ne("log-out",Rk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],by=Ne("mail",zk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _k=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Rd=Ne("map-pin",_k);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vk=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],Uk=Ne("map-pinned",Vk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lk=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],wy=Ne("moon",Lk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bk=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],no=Ne("phone",Bk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sy=Ne("plus",Hk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yk=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],qk=Ne("refresh-cw",Yk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ky=Ne("search",Gk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pk=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Xk=Ne("send",Pk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qk=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Fk=Ne("settings",Qk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kk=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Zk=Ne("shield",Kk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jk=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],jy=Ne("sun",Jk);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $k=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Wk=Ne("tag",$k);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ik=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ej=Ne("trending-up",Ik);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],hi=Ne("user",tj);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aj=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ny=Ne("users",aj);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nl=Ne("x",nj);function Ty(a){var n,l,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(n=0;n<o;n++)a[n]&&(l=Ty(a[n]))&&(r&&(r+=" "),r+=l)}else for(l in a)a[l]&&(r&&(r+=" "),r+=l);return r}function sj(){for(var a,n,l=0,r="",o=arguments.length;l<o;l++)(a=arguments[l])&&(n=Ty(a))&&(r&&(r+=" "),r+=n);return r}const lj=(a,n)=>{const l=new Array(a.length+n.length);for(let r=0;r<a.length;r++)l[r]=a[r];for(let r=0;r<n.length;r++)l[a.length+r]=n[r];return l},ij=(a,n)=>({classGroupId:a,validator:n}),Ey=(a=new Map,n=null,l)=>({nextPart:a,validators:n,classGroupId:l}),yo="-",hg=[],rj="arbitrary..",oj=a=>{const n=uj(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return cj(h);const m=h.split(yo),p=m[0]===""&&m.length>1?1:0;return Cy(m,p,n)},getConflictingClassGroupIds:(h,m)=>{if(m){const p=r[h],g=l[h];return p?g?lj(g,p):p:g||hg}return l[h]||hg}}},Cy=(a,n,l)=>{if(a.length-n===0)return l.classGroupId;const o=a[n],f=l.nextPart.get(o);if(f){const g=Cy(a,n+1,f);if(g)return g}const h=l.validators;if(h===null)return;const m=n===0?a.join(yo):a.slice(n).join(yo),p=h.length;for(let g=0;g<p;g++){const y=h[g];if(y.validator(m))return y.classGroupId}},cj=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=a.slice(1,-1),l=n.indexOf(":"),r=n.slice(0,l);return r?rj+r:void 0})(),uj=a=>{const{theme:n,classGroups:l}=a;return dj(l,n)},dj=(a,n)=>{const l=Ey();for(const r in a){const o=a[r];mf(o,l,r,n)}return l},mf=(a,n,l,r)=>{const o=a.length;for(let f=0;f<o;f++){const h=a[f];fj(h,n,l,r)}},fj=(a,n,l,r)=>{if(typeof a=="string"){hj(a,n,l);return}if(typeof a=="function"){mj(a,n,l,r);return}pj(a,n,l,r)},hj=(a,n,l)=>{const r=a===""?n:My(n,a);r.classGroupId=l},mj=(a,n,l,r)=>{if(gj(a)){mf(a(r),n,l,r);return}n.validators===null&&(n.validators=[]),n.validators.push(ij(l,a))},pj=(a,n,l,r)=>{const o=Object.entries(a),f=o.length;for(let h=0;h<f;h++){const[m,p]=o[h];mf(p,My(n,m),l,r)}},My=(a,n)=>{let l=a;const r=n.split(yo),o=r.length;for(let f=0;f<o;f++){const h=r[f];let m=l.nextPart.get(h);m||(m=Ey(),l.nextPart.set(h,m)),l=m}return l},gj=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,xj=a=>{if(a<1)return{get:()=>{},set:()=>{}};let n=0,l=Object.create(null),r=Object.create(null);const o=(f,h)=>{l[f]=h,n++,n>a&&(n=0,r=l,l=Object.create(null))};return{get(f){let h=l[f];if(h!==void 0)return h;if((h=r[f])!==void 0)return o(f,h),h},set(f,h){f in l?l[f]=h:o(f,h)}}},Od="!",mg=":",yj=[],pg=(a,n,l,r,o)=>({modifiers:a,hasImportantModifier:n,baseClassName:l,maybePostfixModifierPosition:r,isExternal:o}),vj=a=>{const{prefix:n,experimentalParseClassName:l}=a;let r=o=>{const f=[];let h=0,m=0,p=0,g;const y=o.length;for(let E=0;E<y;E++){const M=o[E];if(h===0&&m===0){if(M===mg){f.push(o.slice(p,E)),p=E+1;continue}if(M==="/"){g=E;continue}}M==="["?h++:M==="]"?h--:M==="("?m++:M===")"&&m--}const v=f.length===0?o:o.slice(p);let w=v,k=!1;v.endsWith(Od)?(w=v.slice(0,-1),k=!0):v.startsWith(Od)&&(w=v.slice(1),k=!0);const T=g&&g>p?g-p:void 0;return pg(f,k,w,T)};if(n){const o=n+mg,f=r;r=h=>h.startsWith(o)?f(h.slice(o.length)):pg(yj,!1,h,void 0,!0)}if(l){const o=r;r=f=>l({className:f,parseClassName:o})}return r},bj=a=>{const n=new Map;return a.orderSensitiveModifiers.forEach((l,r)=>{n.set(l,1e6+r)}),l=>{const r=[];let o=[];for(let f=0;f<l.length;f++){const h=l[f],m=h[0]==="[",p=n.has(h);m||p?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(h)):o.push(h)}return o.length>0&&(o.sort(),r.push(...o)),r}},wj=a=>({cache:xj(a.cacheSize),parseClassName:vj(a),sortModifiers:bj(a),...oj(a)}),Sj=/\s+/,kj=(a,n)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:f}=n,h=[],m=a.trim().split(Sj);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:v,modifiers:w,hasImportantModifier:k,baseClassName:T,maybePostfixModifierPosition:E}=l(y);if(v){p=y+(p.length>0?" "+p:p);continue}let M=!!E,A=r(M?T.substring(0,E):T);if(!A){if(!M){p=y+(p.length>0?" "+p:p);continue}if(A=r(T),!A){p=y+(p.length>0?" "+p:p);continue}M=!1}const z=w.length===0?"":w.length===1?w[0]:f(w).join(":"),O=k?z+Od:z,H=O+A;if(h.indexOf(H)>-1)continue;h.push(H);const X=o(A,M);for(let ne=0;ne<X.length;++ne){const F=X[ne];h.push(O+F)}p=y+(p.length>0?" "+p:p)}return p},jj=(...a)=>{let n=0,l,r,o="";for(;n<a.length;)(l=a[n++])&&(r=Ay(l))&&(o&&(o+=" "),o+=r);return o},Ay=a=>{if(typeof a=="string")return a;let n,l="";for(let r=0;r<a.length;r++)a[r]&&(n=Ay(a[r]))&&(l&&(l+=" "),l+=n);return l},Nj=(a,...n)=>{let l,r,o,f;const h=p=>{const g=n.reduce((y,v)=>v(y),a());return l=wj(g),r=l.cache.get,o=l.cache.set,f=m,m(p)},m=p=>{const g=r(p);if(g)return g;const y=kj(p,l);return o(p,y),y};return f=h,(...p)=>f(jj(...p))},Tj=[],ft=a=>{const n=l=>l[a]||Tj;return n.isThemeGetter=!0,n},Dy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ry=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ej=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Cj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Aj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vn=a=>Ej.test(a),Ee=a=>!!a&&!Number.isNaN(Number(a)),bn=a=>!!a&&Number.isInteger(Number(a)),rd=a=>a.endsWith("%")&&Ee(a.slice(0,-1)),Ga=a=>Cj.test(a),Oy=()=>!0,Oj=a=>Mj.test(a)&&!Aj.test(a),pf=()=>!1,zj=a=>Dj.test(a),_j=a=>Rj.test(a),Vj=a=>!oe(a)&&!de(a),Uj=a=>Mn(a,Vy,pf),oe=a=>Dy.test(a),Zn=a=>Mn(a,Uy,Oj),gg=a=>Mn(a,Xj,Ee),Lj=a=>Mn(a,By,Oy),Bj=a=>Mn(a,Ly,pf),xg=a=>Mn(a,zy,pf),Hj=a=>Mn(a,_y,_j),Pr=a=>Mn(a,Hy,zj),de=a=>Ry.test(a),ai=a=>ns(a,Uy),Yj=a=>ns(a,Ly),yg=a=>ns(a,zy),qj=a=>ns(a,Vy),Gj=a=>ns(a,_y),Xr=a=>ns(a,Hy,!0),Pj=a=>ns(a,By,!0),Mn=(a,n,l)=>{const r=Dy.exec(a);return r?r[1]?n(r[1]):l(r[2]):!1},ns=(a,n,l=!1)=>{const r=Ry.exec(a);return r?r[1]?n(r[1]):l:!1},zy=a=>a==="position"||a==="percentage",_y=a=>a==="image"||a==="url",Vy=a=>a==="length"||a==="size"||a==="bg-size",Uy=a=>a==="length",Xj=a=>a==="number",Ly=a=>a==="family-name",By=a=>a==="number"||a==="weight",Hy=a=>a==="shadow",Qj=()=>{const a=ft("color"),n=ft("font"),l=ft("text"),r=ft("font-weight"),o=ft("tracking"),f=ft("leading"),h=ft("breakpoint"),m=ft("container"),p=ft("spacing"),g=ft("radius"),y=ft("shadow"),v=ft("inset-shadow"),w=ft("text-shadow"),k=ft("drop-shadow"),T=ft("blur"),E=ft("perspective"),M=ft("aspect"),A=ft("ease"),z=ft("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...H(),de,oe],ne=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],B=()=>[de,oe,p],$=()=>[vn,"full","auto",...B()],ee=()=>[bn,"none","subgrid",de,oe],re=()=>["auto",{span:["full",bn,de,oe]},bn,de,oe],me=()=>[bn,"auto",de,oe],Re=()=>["auto","min","max","fr",de,oe],Se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...B()],J=()=>[vn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],W=()=>[vn,"screen","full","dvw","lvw","svw","min","max","fit",...B()],he=()=>[vn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...B()],K=()=>[a,de,oe],N=()=>[...H(),yg,xg,{position:[de,oe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",qj,Uj,{size:[de,oe]}],te=()=>[rd,ai,Zn],se=()=>["","none","full",g,de,oe],ue=()=>["",Ee,ai,Zn],ke=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Ee,rd,yg,xg],jt=()=>["","none",T,de,oe],gt=()=>["none",Ee,de,oe],le=()=>["none",Ee,de,oe],ae=()=>[Ee,de,oe],be=()=>[vn,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ga],breakpoint:[Ga],color:[Oy],container:[Ga],"drop-shadow":[Ga],ease:["in","out","in-out"],font:[Vj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ga],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ga],shadow:[Ga],spacing:["px",Ee],text:[Ga],"text-shadow":[Ga],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vn,oe,de,M]}],container:["container"],columns:[{columns:[Ee,oe,de,m]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[bn,"auto",de,oe]}],basis:[{basis:[vn,"full","auto",m,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,vn,"auto","initial","none",oe]}],grow:[{grow:["",Ee,de,oe]}],shrink:[{shrink:["",Ee,de,oe]}],order:[{order:[bn,"first","last","none",de,oe]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Re()}],"auto-rows":[{"auto-rows":Re()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...Se(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...Se()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":Se()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pbs:[{pbs:B()}],pbe:[{pbe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",l,ai,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Pj,Lj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rd,oe]}],"font-family":[{font:[Yj,Bj,n]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,oe]}],"line-clamp":[{"line-clamp":[Ee,"none",de,gg]}],leading:[{leading:[f,...B()]}],"list-image":[{"list-image":["none",de,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",de,Zn]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Ee,"auto",de,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bn,de,oe],radial:["",de,oe],conic:[bn,de,oe]},Gj,Hj]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,de,oe]}],"outline-w":[{outline:["",Ee,ai,Zn]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",y,Xr,Pr]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",v,Xr,Pr]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Ee,Zn]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",w,Xr,Pr]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Ee,de,oe]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[de,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,oe]}],filter:[{filter:["","none",de,oe]}],blur:[{blur:jt()}],brightness:[{brightness:[Ee,de,oe]}],contrast:[{contrast:[Ee,de,oe]}],"drop-shadow":[{"drop-shadow":["","none",k,Xr,Pr]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Ee,de,oe]}],"hue-rotate":[{"hue-rotate":[Ee,de,oe]}],invert:[{invert:["",Ee,de,oe]}],saturate:[{saturate:[Ee,de,oe]}],sepia:[{sepia:["",Ee,de,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",de,oe]}],"backdrop-blur":[{"backdrop-blur":jt()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,de,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,de,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,de,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,de,oe]}],"backdrop-invert":[{"backdrop-invert":["",Ee,de,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,de,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,de,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,de,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",de,oe]}],ease:[{ease:["linear","initial",A,de,oe]}],delay:[{delay:[Ee,de,oe]}],animate:[{animate:["none",z,de,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,de,oe]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:gt()}],"rotate-x":[{"rotate-x":gt()}],"rotate-y":[{"rotate-y":gt()}],"rotate-z":[{"rotate-z":gt()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[de,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mbs":[{"scroll-mbs":B()}],"scroll-mbe":[{"scroll-mbe":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pbs":[{"scroll-pbs":B()}],"scroll-pbe":[{"scroll-pbe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,oe]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Ee,ai,Zn,gg]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Fj=Nj(Qj);function ni(...a){return Fj(sj(a))}const Kj={theme:"system",setTheme:()=>null},Yy=S.createContext(Kj);function Zj({children:a,defaultTheme:n="system",storageKey:l="crm-ui-theme",...r}){const[o,f]=S.useState(()=>localStorage.getItem(l)||n);S.useEffect(()=>{const m=window.document.documentElement;if(m.classList.remove("light","dark"),o==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";m.classList.add(p);return}m.classList.add(o)},[o]);const h={theme:o,setTheme:m=>{localStorage.setItem(l,m),f(m)}};return d.jsx(Yy.Provider,{...r,value:h,children:a})}const qy=()=>{const a=S.useContext(Yy);if(a===void 0)throw new Error("useTheme must be used within a ThemeProvider");return a},gf=S.createContext({});function xf(a){const n=S.useRef(null);return n.current===null&&(n.current=a()),n.current}const Jj=typeof window<"u",Gy=Jj?S.useLayoutEffect:S.useEffect,Ro=S.createContext(null);function yf(a,n){a.indexOf(n)===-1&&a.push(n)}function vo(a,n){const l=a.indexOf(n);l>-1&&a.splice(l,1)}const ja=(a,n,l)=>l>n?n:l<a?a:l;let vf=()=>{};const Tn={},Py=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Xy(a){return typeof a=="object"&&a!==null}const Qy=a=>/^0[^.\s]+$/u.test(a);function Fy(a){let n;return()=>(n===void 0&&(n=a()),n)}const la=a=>a,$j=(a,n)=>l=>n(a(l)),Si=(...a)=>a.reduce($j),mi=(a,n,l)=>{const r=n-a;return r===0?1:(l-a)/r};class bf{constructor(){this.subscriptions=[]}add(n){return yf(this.subscriptions,n),()=>vo(this.subscriptions,n)}notify(n,l,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](n,l,r);else for(let f=0;f<o;f++){const h=this.subscriptions[f];h&&h(n,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qt=a=>a*1e3,sa=a=>a/1e3;function Ky(a,n){return n?a*(1e3/n):0}const Zy=(a,n,l)=>(((1-3*l+3*n)*a+(3*l-6*n))*a+3*n)*a,Wj=1e-7,Ij=12;function eN(a,n,l,r,o){let f,h,m=0;do h=n+(l-n)/2,f=Zy(h,r,o)-a,f>0?l=h:n=h;while(Math.abs(f)>Wj&&++m<Ij);return h}function ki(a,n,l,r){if(a===n&&l===r)return la;const o=f=>eN(f,0,1,a,l);return f=>f===0||f===1?f:Zy(o(f),n,r)}const Jy=a=>n=>n<=.5?a(2*n)/2:(2-a(2*(1-n)))/2,$y=a=>n=>1-a(1-n),Wy=ki(.33,1.53,.69,.99),wf=$y(Wy),Iy=Jy(wf),ev=a=>a>=1?1:(a*=2)<1?.5*wf(a):.5*(2-Math.pow(2,-10*(a-1))),Sf=a=>1-Math.sin(Math.acos(a)),tv=$y(Sf),av=Jy(Sf),tN=ki(.42,0,1,1),aN=ki(0,0,.58,1),nv=ki(.42,0,.58,1),nN=a=>Array.isArray(a)&&typeof a[0]!="number",sv=a=>Array.isArray(a)&&typeof a[0]=="number",sN={linear:la,easeIn:tN,easeInOut:nv,easeOut:aN,circIn:Sf,circInOut:av,circOut:tv,backIn:wf,backInOut:Iy,backOut:Wy,anticipate:ev},lN=a=>typeof a=="string",vg=a=>{if(sv(a)){vf(a.length===4);const[n,l,r,o]=a;return ki(n,l,r,o)}else if(lN(a))return sN[a];return a},Qr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function iN(a,n){let l=new Set,r=new Set,o=!1,f=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(y){h.has(y)&&(g.schedule(y),a()),y(m)}const g={schedule:(y,v=!1,w=!1)=>{const T=w&&o?l:r;return v&&h.add(y),T.add(y),y},cancel:y=>{r.delete(y),h.delete(y)},process:y=>{if(m=y,o){f=!0;return}o=!0;const v=l;l=r,r=v,l.forEach(p),l.clear(),o=!1,f&&(f=!1,g.process(y))}};return g}const rN=40;function lv(a,n){let l=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,h=Qr.reduce((O,H)=>(O[H]=iN(f),O),{}),{setup:m,read:p,resolveKeyframes:g,preUpdate:y,update:v,preRender:w,render:k,postRender:T}=h,E=()=>{const O=Tn.useManualTiming,H=O?o.timestamp:performance.now();l=!1,O||(o.delta=r?1e3/60:Math.max(Math.min(H-o.timestamp,rN),1)),o.timestamp=H,o.isProcessing=!0,m.process(o),p.process(o),g.process(o),y.process(o),v.process(o),w.process(o),k.process(o),T.process(o),o.isProcessing=!1,l&&n&&(r=!1,a(E))},M=()=>{l=!0,r=!0,o.isProcessing||a(E)};return{schedule:Qr.reduce((O,H)=>{const X=h[H];return O[H]=(ne,F=!1,B=!1)=>(l||M(),X.schedule(ne,F,B)),O},{}),cancel:O=>{for(let H=0;H<Qr.length;H++)h[Qr[H]].cancel(O)},state:o,steps:h}}const{schedule:Xe,cancel:En,state:St,steps:od}=lv(typeof requestAnimationFrame<"u"?requestAnimationFrame:la,!0);let so;function oN(){so=void 0}const Ct={now:()=>(so===void 0&&Ct.set(St.isProcessing||Tn.useManualTiming?St.timestamp:performance.now()),so),set:a=>{so=a,queueMicrotask(oN)}},iv=a=>n=>typeof n=="string"&&n.startsWith(a),rv=iv("--"),cN=iv("var(--"),kf=a=>cN(a)?uN.test(a.split("/*")[0].trim()):!1,uN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function bg(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const sl={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},pi={...sl,transform:a=>ja(0,1,a)},Fr={...sl,default:1},oi=a=>Math.round(a*1e5)/1e5,jf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dN(a){return a==null}const fN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nf=(a,n)=>l=>!!(typeof l=="string"&&fN.test(l)&&l.startsWith(a)||n&&!dN(l)&&Object.prototype.hasOwnProperty.call(l,n)),ov=(a,n,l)=>r=>{if(typeof r!="string")return r;const[o,f,h,m]=r.match(jf);return{[a]:parseFloat(o),[n]:parseFloat(f),[l]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},hN=a=>ja(0,255,a),cd={...sl,transform:a=>Math.round(hN(a))},In={test:Nf("rgb","red"),parse:ov("red","green","blue"),transform:({red:a,green:n,blue:l,alpha:r=1})=>"rgba("+cd.transform(a)+", "+cd.transform(n)+", "+cd.transform(l)+", "+oi(pi.transform(r))+")"};function mN(a){let n="",l="",r="",o="";return a.length>5?(n=a.substring(1,3),l=a.substring(3,5),r=a.substring(5,7),o=a.substring(7,9)):(n=a.substring(1,2),l=a.substring(2,3),r=a.substring(3,4),o=a.substring(4,5),n+=n,l+=l,r+=r,o+=o),{red:parseInt(n,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const zd={test:Nf("#"),parse:mN,transform:In.transform},ji=a=>({test:n=>typeof n=="string"&&n.endsWith(a)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${a}`}),kn=ji("deg"),ka=ji("%"),ce=ji("px"),pN=ji("vh"),gN=ji("vw"),wg={...ka,parse:a=>ka.parse(a)/100,transform:a=>ka.transform(a*100)},Fs={test:Nf("hsl","hue"),parse:ov("hue","saturation","lightness"),transform:({hue:a,saturation:n,lightness:l,alpha:r=1})=>"hsla("+Math.round(a)+", "+ka.transform(oi(n))+", "+ka.transform(oi(l))+", "+oi(pi.transform(r))+")"},ut={test:a=>In.test(a)||zd.test(a)||Fs.test(a),parse:a=>In.test(a)?In.parse(a):Fs.test(a)?Fs.parse(a):zd.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?In.transform(a):Fs.transform(a),getAnimatableNone:a=>{const n=ut.parse(a);return n.alpha=0,ut.transform(n)}},xN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yN(a){var n,l;return isNaN(a)&&typeof a=="string"&&(((n=a.match(jf))==null?void 0:n.length)||0)+(((l=a.match(xN))==null?void 0:l.length)||0)>0}const cv="number",uv="color",vN="var",bN="var(",Sg="${}",wN=/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 Ws(a){const n=a.toString(),l=[],r={color:[],number:[],var:[]},o=[];let f=0;const m=n.replace(wN,p=>(ut.test(p)?(r.color.push(f),o.push(uv),l.push(ut.parse(p))):p.startsWith(bN)?(r.var.push(f),o.push(vN),l.push(p)):(r.number.push(f),o.push(cv),l.push(parseFloat(p))),++f,Sg)).split(Sg);return{values:l,split:m,indexes:r,types:o}}function SN(a){return Ws(a).values}function dv({split:a,types:n}){const l=a.length;return r=>{let o="";for(let f=0;f<l;f++)if(o+=a[f],r[f]!==void 0){const h=n[f];h===cv?o+=oi(r[f]):h===uv?o+=ut.transform(r[f]):o+=r[f]}return o}}function kN(a){return dv(Ws(a))}const jN=a=>typeof a=="number"?0:ut.test(a)?ut.getAnimatableNone(a):a,NN=(a,n)=>typeof a=="number"?n!=null&&n.trim().endsWith("/")?a:0:jN(a);function TN(a){const n=Ws(a);return dv(n)(n.values.map((r,o)=>NN(r,n.split[o])))}const ha={test:yN,parse:SN,createTransformer:kN,getAnimatableNone:TN};function ud(a,n,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(n-a)*6*l:l<1/2?n:l<2/3?a+(n-a)*(2/3-l)*6:a}function EN({hue:a,saturation:n,lightness:l,alpha:r}){a/=360,n/=100,l/=100;let o=0,f=0,h=0;if(!n)o=f=h=l;else{const m=l<.5?l*(1+n):l+n-l*n,p=2*l-m;o=ud(p,m,a+1/3),f=ud(p,m,a),h=ud(p,m,a-1/3)}return{red:Math.round(o*255),green:Math.round(f*255),blue:Math.round(h*255),alpha:r}}function bo(a,n){return l=>l>0?n:a}const $e=(a,n,l)=>a+(n-a)*l,dd=(a,n,l)=>{const r=a*a,o=l*(n*n-r)+r;return o<0?0:Math.sqrt(o)},CN=[zd,In,Fs],MN=a=>CN.find(n=>n.test(a));function kg(a){const n=MN(a);if(!n)return!1;let l=n.parse(a);return n===Fs&&(l=EN(l)),l}const jg=(a,n)=>{const l=kg(a),r=kg(n);if(!l||!r)return bo(a,n);const o={...l};return f=>(o.red=dd(l.red,r.red,f),o.green=dd(l.green,r.green,f),o.blue=dd(l.blue,r.blue,f),o.alpha=$e(l.alpha,r.alpha,f),In.transform(o))},_d=new Set(["none","hidden"]);function AN(a,n){return _d.has(a)?l=>l<=0?a:n:l=>l>=1?n:a}function DN(a,n){return l=>$e(a,n,l)}function Tf(a){return typeof a=="number"?DN:typeof a=="string"?kf(a)?bo:ut.test(a)?jg:zN:Array.isArray(a)?fv:typeof a=="object"?ut.test(a)?jg:RN:bo}function fv(a,n){const l=[...a],r=l.length,o=a.map((f,h)=>Tf(f)(f,n[h]));return f=>{for(let h=0;h<r;h++)l[h]=o[h](f);return l}}function RN(a,n){const l={...a,...n},r={};for(const o in l)a[o]!==void 0&&n[o]!==void 0&&(r[o]=Tf(a[o])(a[o],n[o]));return o=>{for(const f in r)l[f]=r[f](o);return l}}function ON(a,n){const l=[],r={color:0,var:0,number:0};for(let o=0;o<n.values.length;o++){const f=n.types[o],h=a.indexes[f][r[f]],m=a.values[h]??0;l[o]=m,r[f]++}return l}const zN=(a,n)=>{const l=ha.createTransformer(n),r=Ws(a),o=Ws(n);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?_d.has(a)&&!o.values.length||_d.has(n)&&!r.values.length?AN(a,n):Si(fv(ON(r,o),o.values),l):bo(a,n)};function hv(a,n,l){return typeof a=="number"&&typeof n=="number"&&typeof l=="number"?$e(a,n,l):Tf(a)(a,n)}const _N=a=>{const n=({timestamp:l})=>a(l);return{start:(l=!0)=>Xe.update(n,l),stop:()=>En(n),now:()=>St.isProcessing?St.timestamp:Ct.now()}},mv=(a,n,l=10)=>{let r="";const o=Math.max(Math.round(n/l),2);for(let f=0;f<o;f++)r+=Math.round(a(f/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},wo=2e4;function Ef(a){let n=0;const l=50;let r=a.next(n);for(;!r.done&&n<wo;)n+=l,r=a.next(n);return n>=wo?1/0:n}function VN(a,n=100,l){const r=l({...a,keyframes:[0,n]}),o=Math.min(Ef(r),wo);return{type:"keyframes",ease:f=>r.next(o*f).value/n,duration:sa(o)}}const at={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 Vd(a,n){return a*Math.sqrt(1-n*n)}const UN=12;function LN(a,n,l){let r=l;for(let o=1;o<UN;o++)r=r-a(r)/n(r);return r}const fd=.001;function BN({duration:a=at.duration,bounce:n=at.bounce,velocity:l=at.velocity,mass:r=at.mass}){let o,f,h=1-n;h=ja(at.minDamping,at.maxDamping,h),a=ja(at.minDuration,at.maxDuration,sa(a)),h<1?(o=g=>{const y=g*h,v=y*a,w=y-l,k=Vd(g,h),T=Math.exp(-v);return fd-w/k*T},f=g=>{const v=g*h*a,w=v*l+l,k=Math.pow(h,2)*Math.pow(g,2)*a,T=Math.exp(-v),E=Vd(Math.pow(g,2),h);return(-o(g)+fd>0?-1:1)*((w-k)*T)/E}):(o=g=>{const y=Math.exp(-g*a),v=(g-l)*a+1;return-fd+y*v},f=g=>{const y=Math.exp(-g*a),v=(l-g)*(a*a);return y*v});const m=5/a,p=LN(o,f,m);if(a=Qt(a),isNaN(p))return{stiffness:at.stiffness,damping:at.damping,duration:a};{const g=Math.pow(p,2)*r;return{stiffness:g,damping:h*2*Math.sqrt(r*g),duration:a}}}const HN=["duration","bounce"],YN=["stiffness","damping","mass"];function Ng(a,n){return n.some(l=>a[l]!==void 0)}function qN(a){let n={velocity:at.velocity,stiffness:at.stiffness,damping:at.damping,mass:at.mass,isResolvedFromDuration:!1,...a};if(!Ng(a,YN)&&Ng(a,HN))if(n.velocity=0,a.visualDuration){const l=a.visualDuration,r=2*Math.PI/(l*1.2),o=r*r,f=2*ja(.05,1,1-(a.bounce||0))*Math.sqrt(o);n={...n,mass:at.mass,stiffness:o,damping:f}}else{const l=BN({...a,velocity:0});n={...n,...l,mass:at.mass},n.isResolvedFromDuration=!0}return n}function So(a=at.visualDuration,n=at.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:n}:a;let{restSpeed:r,restDelta:o}=l;const f=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],m={done:!1,value:f},{stiffness:p,damping:g,mass:y,duration:v,velocity:w,isResolvedFromDuration:k}=qN({...l,velocity:-sa(l.velocity||0)}),T=w||0,E=g/(2*Math.sqrt(p*y)),M=h-f,A=sa(Math.sqrt(p/y)),z=Math.abs(M)<5;r||(r=z?at.restSpeed.granular:at.restSpeed.default),o||(o=z?at.restDelta.granular:at.restDelta.default);let O,H,X,ne,F,B;if(E<1)X=Vd(A,E),ne=(T+E*A*M)/X,O=ee=>{const re=Math.exp(-E*A*ee);return h-re*(ne*Math.sin(X*ee)+M*Math.cos(X*ee))},F=E*A*ne+M*X,B=E*A*M-ne*X,H=ee=>Math.exp(-E*A*ee)*(F*Math.sin(X*ee)+B*Math.cos(X*ee));else if(E===1){O=re=>h-Math.exp(-A*re)*(M+(T+A*M)*re);const ee=T+A*M;H=re=>Math.exp(-A*re)*(A*ee*re-T)}else{const ee=A*Math.sqrt(E*E-1);O=Se=>{const ge=Math.exp(-E*A*Se),_=Math.min(ee*Se,300);return h-ge*((T+E*A*M)*Math.sinh(_)+ee*M*Math.cosh(_))/ee};const re=(T+E*A*M)/ee,me=E*A*re-M*ee,Re=E*A*M-re*ee;H=Se=>{const ge=Math.exp(-E*A*Se),_=Math.min(ee*Se,300);return ge*(me*Math.sinh(_)+Re*Math.cosh(_))}}const $={calculatedDuration:k&&v||null,velocity:ee=>Qt(H(ee)),next:ee=>{if(!k&&E<1){const me=Math.exp(-E*A*ee),Re=Math.sin(X*ee),Se=Math.cos(X*ee),ge=h-me*(ne*Re+M*Se),_=Qt(me*(F*Re+B*Se));return m.done=Math.abs(_)<=r&&Math.abs(h-ge)<=o,m.value=m.done?h:ge,m}const re=O(ee);if(k)m.done=ee>=v;else{const me=Qt(H(ee));m.done=Math.abs(me)<=r&&Math.abs(h-re)<=o}return m.value=m.done?h:re,m},toString:()=>{const ee=Math.min(Ef($),wo),re=mv(me=>$.next(ee*me).value,ee,30);return ee+"ms "+re},toTransition:()=>{}};return $}So.applyToOptions=a=>{const n=VN(a,100,So);return a.ease=n.ease,a.duration=Qt(n.duration),a.type="keyframes",a};const GN=5;function pv(a,n,l){const r=Math.max(n-GN,0);return Ky(l-a(r),n-r)}function Ud({keyframes:a,velocity:n=0,power:l=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:f=500,modifyTarget:h,min:m,max:p,restDelta:g=.5,restSpeed:y}){const v=a[0],w={done:!1,value:v},k=B=>m!==void 0&&B<m||p!==void 0&&B>p,T=B=>m===void 0?p:p===void 0||Math.abs(m-B)<Math.abs(p-B)?m:p;let E=l*n;const M=v+E,A=h===void 0?M:h(M);A!==M&&(E=A-v);const z=B=>-E*Math.exp(-B/r),O=B=>A+z(B),H=B=>{const $=z(B),ee=O(B);w.done=Math.abs($)<=g,w.value=w.done?A:ee};let X,ne;const F=B=>{k(w.value)&&(X=B,ne=So({keyframes:[w.value,T(w.value)],velocity:pv(O,B,w.value),damping:o,stiffness:f,restDelta:g,restSpeed:y}))};return F(0),{calculatedDuration:null,next:B=>{let $=!1;return!ne&&X===void 0&&($=!0,H(B),F(B)),X!==void 0&&B>=X?ne.next(B-X):(!$&&H(B),w)}}}function PN(a,n,l){const r=[],o=l||Tn.mix||hv,f=a.length-1;for(let h=0;h<f;h++){let m=o(a[h],a[h+1]);if(n){const p=Array.isArray(n)?n[h]||la:n;m=Si(p,m)}r.push(m)}return r}function XN(a,n,{clamp:l=!0,ease:r,mixer:o}={}){const f=a.length;if(vf(f===n.length),f===1)return()=>n[0];if(f===2&&n[0]===n[1])return()=>n[1];const h=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),n=[...n].reverse());const m=PN(n,r,o),p=m.length,g=y=>{if(h&&y<a[0])return n[0];let v=0;if(p>1)for(;v<a.length-2&&!(y<a[v+1]);v++);const w=mi(a[v],a[v+1],y);return m[v](w)};return l?y=>g(ja(a[0],a[f-1],y)):g}function QN(a,n){const l=a[a.length-1];for(let r=1;r<=n;r++){const o=mi(0,n,r);a.push($e(l,1,o))}}function FN(a){const n=[0];return QN(n,a.length-1),n}function KN(a,n){return a.map(l=>l*n)}function ZN(a,n){return a.map(()=>n||nv).splice(0,a.length-1)}function ci({duration:a=300,keyframes:n,times:l,ease:r="easeInOut"}){const o=nN(r)?r.map(vg):vg(r),f={done:!1,value:n[0]},h=KN(l&&l.length===n.length?l:FN(n),a),m=XN(h,n,{ease:Array.isArray(o)?o:ZN(n,o)});return{calculatedDuration:a,next:p=>(f.value=m(p),f.done=p>=a,f)}}const JN=a=>a!==null;function Cf(a,{repeat:n,repeatType:l="loop"},r,o=1){const f=a.filter(JN),m=o<0||n&&l!=="loop"&&n%2===1?0:f.length-1;return!m||r===void 0?f[m]:r}const $N={decay:Ud,inertia:Ud,tween:ci,keyframes:ci,spring:So};function gv(a){typeof a.type=="string"&&(a.type=$N[a.type])}class Mf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,l){return this.finished.then(n,l)}}const WN=a=>a/100;class Af extends Mf{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:l}=this.options;l&&l.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;gv(n);const{type:l=ci,repeat:r=0,repeatDelay:o=0,repeatType:f,velocity:h=0}=n;let{keyframes:m}=n;const p=l||ci;p!==ci&&typeof m[0]!="number"&&(this.mixKeyframes=Si(WN,hv(m[0],m[1])),m=[0,100]);const g=p({...n,keyframes:m});f==="mirror"&&(this.mirroredGenerator=p({...n,keyframes:[...m].reverse(),velocity:-h})),g.calculatedDuration===null&&(g.calculatedDuration=Ef(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=g}updateTime(n){const l=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(n,l=!1){const{generator:r,totalDuration:o,mixKeyframes:f,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:y,repeat:v,repeatType:w,repeatDelay:k,type:T,onUpdate:E,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-o/this.speed,this.startTime)),l?this.currentTime=n:this.updateTime(n);const A=this.currentTime-g*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?A<0:A>o;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let O=this.currentTime,H=r;if(v){const B=Math.min(this.currentTime,o)/m;let $=Math.floor(B),ee=B%1;!ee&&B>=1&&(ee=1),ee===1&&$--,$=Math.min($,v+1),!!($%2)&&(w==="reverse"?(ee=1-ee,k&&(ee-=k/m)):w==="mirror"&&(H=h)),O=ja(0,1,ee)*m}const X=z?{done:!1,value:y[0]}:H.next(O);f&&!z&&(X.value=f(X.value));let{done:ne}=X;!z&&p!==null&&(ne=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ne);return F&&T!==Ud&&(X.value=Cf(y,this.options,M,this.speed)),E&&E(X.value),F&&this.finish(),X}then(n,l){return this.finished.then(n,l)}get duration(){return sa(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+sa(n)}get time(){return sa(this.currentTime)}set time(n){n=Qt(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=n,this.tick(n))}getGeneratorVelocity(){const n=this.currentTime;if(n<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(n);const l=this.generator.next(n).value;return pv(r=>this.generator.next(r).value,n,l)}get speed(){return this.playbackSpeed}set speed(n){const l=this.playbackSpeed!==n;l&&this.driver&&this.updateTime(Ct.now()),this.playbackSpeed=n,l&&this.driver&&(this.time=sa(this.currentTime))}play(){var o,f;if(this.isStopped)return;const{driver:n=_N,startTime:l}=this.options;this.driver||(this.driver=n(h=>this.tick(h))),(f=(o=this.options).onPlay)==null||f.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),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(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,l;this.notifyFinished(),this.teardown(),this.state="finished",(l=(n=this.options).onComplete)==null||l.call(n)}cancel(){var n,l;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(l=(n=this.options).onCancel)==null||l.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var l;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(l=this.driver)==null||l.stop(),n.observe(this)}}function IN(a){for(let n=1;n<a.length;n++)a[n]??(a[n]=a[n-1])}const es=a=>a*180/Math.PI,Ld=a=>{const n=es(Math.atan2(a[1],a[0]));return Bd(n)},eT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Ld,rotateZ:Ld,skewX:a=>es(Math.atan(a[1])),skewY:a=>es(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Bd=a=>(a=a%360,a<0&&(a+=360),a),Tg=Ld,Eg=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Cg=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),tT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Eg,scaleY:Cg,scale:a=>(Eg(a)+Cg(a))/2,rotateX:a=>Bd(es(Math.atan2(a[6],a[5]))),rotateY:a=>Bd(es(Math.atan2(-a[2],a[0]))),rotateZ:Tg,rotate:Tg,skewX:a=>es(Math.atan(a[4])),skewY:a=>es(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Hd(a){return a.includes("scale")?1:0}function Yd(a,n){if(!a||a==="none")return Hd(n);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(l)r=tT,o=l;else{const m=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=eT,o=m}if(!o)return Hd(n);const f=r[n],h=o[1].split(",").map(nT);return typeof f=="function"?f(h):h[f]}const aT=(a,n)=>{const{transform:l="none"}=getComputedStyle(a);return Yd(l,n)};function nT(a){return parseFloat(a.trim())}const ll=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],il=new Set(ll),Mg=a=>a===sl||a===ce,sT=new Set(["x","y","z"]),lT=ll.filter(a=>!sT.has(a));function iT(a){const n=[];return lT.forEach(l=>{const r=a.getValue(l);r!==void 0&&(n.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),n}const Nn={width:({x:a},{paddingLeft:n="0",paddingRight:l="0",boxSizing:r})=>{const o=a.max-a.min;return r==="border-box"?o:o-parseFloat(n)-parseFloat(l)},height:({y:a},{paddingTop:n="0",paddingBottom:l="0",boxSizing:r})=>{const o=a.max-a.min;return r==="border-box"?o:o-parseFloat(n)-parseFloat(l)},top:(a,{top:n})=>parseFloat(n),left:(a,{left:n})=>parseFloat(n),bottom:({y:a},{top:n})=>parseFloat(n)+(a.max-a.min),right:({x:a},{left:n})=>parseFloat(n)+(a.max-a.min),x:(a,{transform:n})=>Yd(n,"x"),y:(a,{transform:n})=>Yd(n,"y")};Nn.translateX=Nn.x;Nn.translateY=Nn.y;const ts=new Set;let qd=!1,Gd=!1,Pd=!1;function xv(){if(Gd){const a=Array.from(ts).filter(r=>r.needsMeasurement),n=new Set(a.map(r=>r.element)),l=new Map;n.forEach(r=>{const o=iT(r);o.length&&(l.set(r,o),r.render())}),a.forEach(r=>r.measureInitialState()),n.forEach(r=>{r.render();const o=l.get(r);o&&o.forEach(([f,h])=>{var m;(m=r.getValue(f))==null||m.set(h)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gd=!1,qd=!1,ts.forEach(a=>a.complete(Pd)),ts.clear()}function yv(){ts.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Gd=!0)})}function rT(){Pd=!0,yv(),xv(),Pd=!1}class Df{constructor(n,l,r,o,f,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=l,this.name=r,this.motionValue=o,this.element=f,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(ts.add(this),qd||(qd=!0,Xe.read(yv),Xe.resolveKeyframes(xv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:l,element:r,motionValue:o}=this;if(n[0]===null){const f=o==null?void 0:o.get(),h=n[n.length-1];if(f!==void 0)n[0]=f;else if(r&&l){const m=r.readValue(l,h);m!=null&&(n[0]=m)}n[0]===void 0&&(n[0]=h),o&&f===void 0&&o.set(n[0])}IN(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),ts.delete(this)}cancel(){this.state==="scheduled"&&(ts.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oT=a=>a.startsWith("--");function vv(a,n,l){oT(n)?a.style.setProperty(n,l):a.style[n]=l}const cT={};function bv(a,n){const l=Fy(a);return()=>cT[n]??l()}const uT=bv(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),wv=bv(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ri=([a,n,l,r])=>`cubic-bezier(${a}, ${n}, ${l}, ${r})`,Ag={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ri([0,.65,.55,1]),circOut:ri([.55,0,1,.45]),backIn:ri([.31,.01,.66,-.59]),backOut:ri([.33,1.53,.69,.99])};function Sv(a,n){if(a)return typeof a=="function"?wv()?mv(a,n):"ease-out":sv(a)?ri(a):Array.isArray(a)?a.map(l=>Sv(l,n)||Ag.easeOut):Ag[a]}function dT(a,n,l,{delay:r=0,duration:o=300,repeat:f=0,repeatType:h="loop",ease:m="easeOut",times:p}={},g=void 0){const y={[n]:l};p&&(y.offset=p);const v=Sv(m,o);Array.isArray(v)&&(y.easing=v);const w={delay:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:f+1,direction:h==="reverse"?"alternate":"normal"};return g&&(w.pseudoElement=g),a.animate(y,w)}function kv(a){return typeof a=="function"&&"applyToOptions"in a}function fT({type:a,...n}){return kv(a)&&wv()?a.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class jv extends Mf{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:l,name:r,keyframes:o,pseudoElement:f,allowFlatten:h=!1,finalKeyframe:m,onComplete:p}=n;this.isPseudoElement=!!f,this.allowFlatten=h,this.options=n,vf(typeof n.type!="string");const g=fT(n);this.animation=dT(l,r,o,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const y=Cf(o,this.options,m,this.speed);this.updateMotionValue&&this.updateMotionValue(y),vv(l,r,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,l;(l=(n=this.animation).finish)==null||l.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var l,r,o;const n=(l=this.options)==null?void 0:l.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var l,r;const n=((r=(l=this.animation.effect)==null?void 0:l.getComputedTiming)==null?void 0:r.call(l).duration)||0;return sa(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+sa(n)}get time(){return sa(Number(this.animation.currentTime)||0)}set time(n){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Qt(n),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:l,rangeEnd:r,observe:o}){var f;return this.allowFlatten&&((f=this.animation.effect)==null||f.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&uT()?(this.animation.timeline=n,l&&(this.animation.rangeStart=l),r&&(this.animation.rangeEnd=r),la):o(this)}}const Nv={anticipate:ev,backInOut:Iy,circInOut:av};function hT(a){return a in Nv}function mT(a){typeof a.ease=="string"&&hT(a.ease)&&(a.ease=Nv[a.ease])}const hd=10;class pT extends jv{constructor(n){mT(n),gv(n),super(n),n.startTime!==void 0&&n.autoplay!==!1&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:l,onUpdate:r,onComplete:o,element:f,...h}=this.options;if(!l)return;if(n!==void 0){l.set(n);return}const m=new Af({...h,autoplay:!1}),p=Math.max(hd,Ct.now()-this.startTime),g=ja(0,hd,p-hd),y=m.sample(p).value,{name:v}=this.options;f&&v&&vv(f,v,y),l.setWithVelocity(m.sample(Math.max(0,p-g)).value,y,g),m.stop()}}const Dg=(a,n)=>n==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ha.test(a)||a==="0")&&!a.startsWith("url("));function gT(a){const n=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==n)return!0}function xT(a,n,l,r){const o=a[0];if(o===null)return!1;if(n==="display"||n==="visibility")return!0;const f=a[a.length-1],h=Dg(o,n),m=Dg(f,n);return!h||!m?!1:gT(a)||(l==="spring"||kv(l))&&r}function Xd(a){a.duration=0,a.type="keyframes"}const yT=new Set(["opacity","clipPath","filter","transform"]),vT=Fy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bT(a){var y;const{motionValue:n,name:l,repeatDelay:r,repeatType:o,damping:f,type:h}=a;if(!(((y=n==null?void 0:n.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=n.owner.getProps();return vT()&&l&&yT.has(l)&&(l!=="transform"||!g)&&!p&&!r&&o!=="mirror"&&f!==0&&h!=="inertia"}const wT=40;class ST extends Mf{constructor({autoplay:n=!0,delay:l=0,type:r="keyframes",repeat:o=0,repeatDelay:f=0,repeatType:h="loop",keyframes:m,name:p,motionValue:g,element:y,...v}){var T;super(),this.stop=()=>{var E,M;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(M=this.keyframeResolver)==null||M.cancel()},this.createdAt=Ct.now();const w={autoplay:n,delay:l,type:r,repeat:o,repeatDelay:f,repeatType:h,name:p,motionValue:g,element:y,...v},k=(y==null?void 0:y.KeyframeResolver)||Df;this.keyframeResolver=new k(m,(E,M,A)=>this.onKeyframesResolved(E,M,w,!A),p,g,y),(T=this.keyframeResolver)==null||T.scheduleResolve()}onKeyframesResolved(n,l,r,o){var A,z;this.keyframeResolver=void 0;const{name:f,type:h,velocity:m,delay:p,isHandoff:g,onUpdate:y}=r;this.resolvedAt=Ct.now();let v=!0;xT(n,f,h,m)||(v=!1,(Tn.instantAnimations||!p)&&(y==null||y(Cf(n,r,l))),n[0]=n[n.length-1],Xd(r),r.repeat=0);const k={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>wT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:n},T=v&&!g&&bT(k),E=(z=(A=k.motionValue)==null?void 0:A.owner)==null?void 0:z.current,M=T?new pT({...k,element:E}):new Af(k);M.finished.then(()=>{this.notifyFinished()}).catch(la),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(n,l){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),rT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function Tv(a,n,l,r=0,o=1){const f=Array.from(a).sort((g,y)=>g.sortNodePosition(y)).indexOf(n),h=a.size,m=(h-1)*r;return typeof l=="function"?l(f,h):o===1?f*r:m-f*r}const kT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jT(a){const n=kT.exec(a);if(!n)return[,];const[,l,r,o]=n;return[`--${l??r}`,o]}function Ev(a,n,l=1){const[r,o]=jT(a);if(!r)return;const f=window.getComputedStyle(n).getPropertyValue(r);if(f){const h=f.trim();return Py(h)?parseFloat(h):h}return kf(o)?Ev(o,n,l+1):o}const NT={type:"spring",stiffness:500,damping:25,restSpeed:10},TT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),ET={type:"keyframes",duration:.8},CT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},MT=(a,{keyframes:n})=>n.length>2?ET:il.has(a)?a.startsWith("scale")?TT(n[1]):NT:CT,AT=a=>a!==null;function DT(a,{repeat:n,repeatType:l="loop"},r){const o=a.filter(AT),f=n&&l!=="loop"&&n%2===1?0:o.length-1;return o[f]}function Cv(a,n){if(a!=null&&a.inherit&&n){const{inherit:l,...r}=a;return{...n,...r}}return a}function Rf(a,n){const l=(a==null?void 0:a[n])??(a==null?void 0:a.default)??a;return l!==a?Cv(l,a):l}function RT({when:a,delay:n,delayChildren:l,staggerChildren:r,staggerDirection:o,repeat:f,repeatType:h,repeatDelay:m,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const Of=(a,n,l,r={},o,f)=>h=>{const m=Rf(r,a)||{},p=m.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Qt(p);const y={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:n.getVelocity(),...m,delay:-g,onUpdate:w=>{n.set(w),m.onUpdate&&m.onUpdate(w)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:a,motionValue:n,element:f?void 0:o};RT(m)||Object.assign(y,MT(a,y)),y.duration&&(y.duration=Qt(y.duration)),y.repeatDelay&&(y.repeatDelay=Qt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Xd(y),y.delay===0&&(v=!0)),(Tn.instantAnimations||Tn.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(v=!0,Xd(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,v&&!f&&n.get()!==void 0){const w=DT(y.keyframes,m);if(w!==void 0){Xe.update(()=>{y.onUpdate(w),y.onComplete()});return}}return m.isSync?new Af(y):new ST(y)};function Rg(a){const n=[{},{}];return a==null||a.values.forEach((l,r)=>{n[0][r]=l.get(),n[1][r]=l.getVelocity()}),n}function zf(a,n,l,r){if(typeof n=="function"){const[o,f]=Rg(r);n=n(l!==void 0?l:a.custom,o,f)}if(typeof n=="string"&&(n=a.variants&&a.variants[n]),typeof n=="function"){const[o,f]=Rg(r);n=n(l!==void 0?l:a.custom,o,f)}return n}function as(a,n,l){const r=a.getProps();return zf(r,n,l!==void 0?l:r.custom,a)}const Mv=new Set(["width","height","top","left","right","bottom",...ll]),Og=30,OT=a=>!isNaN(parseFloat(a));class zT{constructor(n,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var f;const o=Ct.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((f=this.events.change)==null||f.notify(this.current),this.dependents))for(const h of this.dependents)h.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=l.owner}setCurrent(n){this.current=n,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=OT(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,l){this.events[n]||(this.events[n]=new bf);const r=this.events[n].add(l);return n==="change"?()=>{r(),Xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,l){this.passiveEffect=n,this.stopPassiveEffect=l}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-r}jump(n,l=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>Og)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,Og);return Ky(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(n){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=n(l),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 n,l;(n=this.dependents)==null||n.clear(),(l=this.events.destroy)==null||l.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Is(a,n){return new zT(a,n)}const Qd=a=>Array.isArray(a);function _T(a,n,l){a.hasValue(n)?a.getValue(n).set(l):a.addValue(n,Is(l))}function VT(a){return Qd(a)?a[a.length-1]||0:a}function UT(a,n){const l=as(a,n);let{transitionEnd:r={},transition:o={},...f}=l||{};f={...f,...r};for(const h in f){const m=VT(f[h]);_T(a,h,m)}}const kt=a=>!!(a&&a.getVelocity);function LT(a){return!!(kt(a)&&a.add)}function Fd(a,n){const l=a.getValue("willChange");if(LT(l))return l.add(n);if(!l&&Tn.WillChange){const r=new Tn.WillChange("auto");a.addValue("willChange",r),r.add(n)}}function _f(a){return a.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const BT="framerAppearId",Av="data-"+_f(BT);function Dv(a){return a.props[Av]}function HT({protectedKeys:a,needsAnimating:n},l){const r=a.hasOwnProperty(l)&&n[l]!==!0;return n[l]=!1,r}function Rv(a,n,{delay:l=0,transitionOverride:r,type:o}={}){let{transition:f,transitionEnd:h,...m}=n;const p=a.getDefaultTransition();f=f?Cv(f,p):p;const g=f==null?void 0:f.reduceMotion;r&&(f=r);const y=[],v=o&&a.animationState&&a.animationState.getState()[o];for(const w in m){const k=a.getValue(w,a.latestValues[w]??null),T=m[w];if(T===void 0||v&&HT(v,w))continue;const E={delay:l,...Rf(f||{},w)},M=k.get();if(M!==void 0&&!k.isAnimating&&!Array.isArray(T)&&T===M&&!E.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const H=Dv(a);if(H){const X=window.MotionHandoffAnimation(H,w,Xe);X!==null&&(E.startTime=X,A=!0)}}Fd(a,w);const z=g??a.shouldReduceMotion;k.start(Of(w,k,T,z&&Mv.has(w)?{type:!1}:E,a,A));const O=k.animation;O&&y.push(O)}if(h){const w=()=>Xe.update(()=>{h&&UT(a,h)});y.length?Promise.all(y).then(w):w()}return y}function Kd(a,n,l={}){var p;const r=as(a,n,l.type==="exit"?(p=a.presenceContext)==null?void 0:p.custom:void 0);let{transition:o=a.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(o=l.transitionOverride);const f=r?()=>Promise.all(Rv(a,r,l)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:w}=o;return YT(a,n,g,y,v,w,l)}:()=>Promise.resolve(),{when:m}=o;if(m){const[g,y]=m==="beforeChildren"?[f,h]:[h,f];return g().then(()=>y())}else return Promise.all([f(),h(l.delay)])}function YT(a,n,l=0,r=0,o=0,f=1,h){const m=[];for(const p of a.variantChildren)p.notify("AnimationStart",n),m.push(Kd(p,n,{...h,delay:l+(typeof r=="function"?0:r)+Tv(a.variantChildren,p,r,o,f)}).then(()=>p.notify("AnimationComplete",n)));return Promise.all(m)}function qT(a,n,l={}){a.notify("AnimationStart",n);let r;if(Array.isArray(n)){const o=n.map(f=>Kd(a,f,l));r=Promise.all(o)}else if(typeof n=="string")r=Kd(a,n,l);else{const o=typeof n=="function"?as(a,n,l.custom):n;r=Promise.all(Rv(a,o,l))}return r.then(()=>{a.notify("AnimationComplete",n)})}const GT={test:a=>a==="auto",parse:a=>a},Ov=a=>n=>n.test(a),zv=[sl,ce,ka,kn,gN,pN,GT],zg=a=>zv.find(Ov(a));function PT(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Qy(a):!0}const XT=new Set(["brightness","contrast","saturate","opacity"]);function QT(a){const[n,l]=a.slice(0,-1).split("(");if(n==="drop-shadow")return a;const[r]=l.match(jf)||[];if(!r)return a;const o=l.replace(r,"");let f=XT.has(n)?1:0;return r!==l&&(f*=100),n+"("+f+o+")"}const FT=/\b([a-z-]*)\(.*?\)/gu,Zd={...ha,getAnimatableNone:a=>{const n=a.match(FT);return n?n.map(QT).join(" "):a}},Jd={...ha,getAnimatableNone:a=>{const n=ha.parse(a);return ha.createTransformer(a)(n.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},_g={...sl,transform:Math.round},KT={rotate:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Fr,scaleX:Fr,scaleY:Fr,scaleZ:Fr,skew:kn,skewX:kn,skewY:kn,distance:ce,translateX:ce,translateY:ce,translateZ:ce,x:ce,y:ce,z:ce,perspective:ce,transformPerspective:ce,opacity:pi,originX:wg,originY:wg,originZ:ce},Vf={borderWidth:ce,borderTopWidth:ce,borderRightWidth:ce,borderBottomWidth:ce,borderLeftWidth:ce,borderRadius:ce,borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomRightRadius:ce,borderBottomLeftRadius:ce,width:ce,maxWidth:ce,height:ce,maxHeight:ce,top:ce,right:ce,bottom:ce,left:ce,inset:ce,insetBlock:ce,insetBlockStart:ce,insetBlockEnd:ce,insetInline:ce,insetInlineStart:ce,insetInlineEnd:ce,padding:ce,paddingTop:ce,paddingRight:ce,paddingBottom:ce,paddingLeft:ce,paddingBlock:ce,paddingBlockStart:ce,paddingBlockEnd:ce,paddingInline:ce,paddingInlineStart:ce,paddingInlineEnd:ce,margin:ce,marginTop:ce,marginRight:ce,marginBottom:ce,marginLeft:ce,marginBlock:ce,marginBlockStart:ce,marginBlockEnd:ce,marginInline:ce,marginInlineStart:ce,marginInlineEnd:ce,fontSize:ce,backgroundPositionX:ce,backgroundPositionY:ce,...KT,zIndex:_g,fillOpacity:pi,strokeOpacity:pi,numOctaves:_g},ZT={...Vf,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:Zd,WebkitFilter:Zd,mask:Jd,WebkitMask:Jd},_v=a=>ZT[a],JT=new Set([Zd,Jd]);function Vv(a,n){let l=_v(a);return JT.has(l)||(l=ha),l.getAnimatableNone?l.getAnimatableNone(n):void 0}const $T=new Set(["auto","none","0"]);function WT(a,n,l){let r=0,o;for(;r<a.length&&!o;){const f=a[r];typeof f=="string"&&!$T.has(f)&&Ws(f).values.length&&(o=a[r]),r++}if(o&&l)for(const f of n)a[f]=Vv(l,o)}class IT extends Df{constructor(n,l,r,o,f){super(n,l,r,o,f,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let v=n[y];if(typeof v=="string"&&(v=v.trim(),kf(v))){const w=Ev(v,l.current);w!==void 0&&(n[y]=w),y===n.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!Mv.has(r)||n.length!==2)return;const[o,f]=n,h=zg(o),m=zg(f),p=bg(o),g=bg(f);if(p!==g&&Nn[r]){this.needsMeasurement=!0;return}if(h!==m)if(Mg(h)&&Mg(m))for(let y=0;y<n.length;y++){const v=n[y];typeof v=="string"&&(n[y]=parseFloat(v))}else Nn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:l}=this,r=[];for(let o=0;o<n.length;o++)(n[o]===null||PT(n[o]))&&r.push(o);r.length&&WT(n,r,l)}measureInitialState(){const{element:n,unresolvedKeyframes:l,name:r}=this;if(!n||!n.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l[0]=this.measuredOrigin;const o=l[l.length-1];o!==void 0&&n.getValue(r,o).jump(o,!1)}measureEndState(){var m;const{element:n,name:l,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(l);o&&o.jump(this.measuredOrigin,!1);const f=r.length-1,h=r[f];r[f]=Nn[l](n.measureViewportBox(),window.getComputedStyle(n.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([p,g])=>{n.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const e5=new Set(["opacity","clipPath","filter","transform"]);function Uv(a,n,l){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const o=(l==null?void 0:l[a])??r.querySelectorAll(a);return o?Array.from(o):[]}return Array.from(a).filter(r=>r!=null)}const Lv=(a,n)=>n&&typeof a=="number"?n.transform(a):a;function lo(a){return Xy(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Uf}=lv(queueMicrotask,!1),fa={x:!1,y:!1};function Bv(){return fa.x||fa.y}function t5(a){return a==="x"||a==="y"?fa[a]?null:(fa[a]=!0,()=>{fa[a]=!1}):fa.x||fa.y?null:(fa.x=fa.y=!0,()=>{fa.x=fa.y=!1})}function Hv(a,n){const l=Uv(a),r=new AbortController,o={passive:!0,...n,signal:r.signal};return[l,o,()=>r.abort()]}function a5(a){return!(a.pointerType==="touch"||Bv())}function n5(a,n,l={}){const[r,o,f]=Hv(a,l);return r.forEach(h=>{let m=!1,p=!1,g;const y=()=>{h.removeEventListener("pointerleave",T)},v=M=>{g&&(g(M),g=void 0),y()},w=M=>{m=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),p&&(p=!1,v(M))},k=()=>{m=!0,window.addEventListener("pointerup",w,o),window.addEventListener("pointercancel",w,o)},T=M=>{if(M.pointerType!=="touch"){if(m){p=!0;return}v(M)}},E=M=>{if(!a5(M))return;p=!1;const A=n(h,M);typeof A=="function"&&(g=A,h.addEventListener("pointerleave",T,o))};h.addEventListener("pointerenter",E,o),h.addEventListener("pointerdown",k,o)}),f}const Yv=(a,n)=>n?a===n?!0:Yv(a,n.parentElement):!1,Lf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,s5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function l5(a){return s5.has(a.tagName)||a.isContentEditable===!0}const i5=new Set(["INPUT","SELECT","TEXTAREA"]);function r5(a){return i5.has(a.tagName)||a.isContentEditable===!0}const io=new WeakSet;function Vg(a){return n=>{n.key==="Enter"&&a(n)}}function md(a,n){a.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const o5=(a,n)=>{const l=a.currentTarget;if(!l)return;const r=Vg(()=>{if(io.has(l))return;md(l,"down");const o=Vg(()=>{md(l,"up")}),f=()=>md(l,"cancel");l.addEventListener("keyup",o,n),l.addEventListener("blur",f,n)});l.addEventListener("keydown",r,n),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),n)};function Ug(a){return Lf(a)&&!Bv()}const Lg=new WeakSet;function c5(a,n,l={}){const[r,o,f]=Hv(a,l),h=m=>{const p=m.currentTarget;if(!Ug(m)||Lg.has(m))return;io.add(p),l.stopPropagation&&Lg.add(m);const g=n(p,m),y=(k,T)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),io.has(p)&&io.delete(p),Ug(k)&&typeof g=="function"&&g(k,{success:T})},v=k=>{y(k,p===window||p===document||l.useGlobalTarget||Yv(p,k.target))},w=k=>{y(k,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",w,o)};return r.forEach(m=>{(l.useGlobalTarget?window:m).addEventListener("pointerdown",h,o),lo(m)&&(m.addEventListener("focus",g=>o5(g,o)),!l5(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),f}function Bf(a){return Xy(a)&&"ownerSVGElement"in a}const ro=new WeakMap;let jn;const qv=(a,n,l)=>(r,o)=>o&&o[0]?o[0][a+"Size"]:Bf(r)&&"getBBox"in r?r.getBBox()[n]:r[l],u5=qv("inline","width","offsetWidth"),d5=qv("block","height","offsetHeight");function f5({target:a,borderBoxSize:n}){var l;(l=ro.get(a))==null||l.forEach(r=>{r(a,{get width(){return u5(a,n)},get height(){return d5(a,n)}})})}function h5(a){a.forEach(f5)}function m5(){typeof ResizeObserver>"u"||(jn=new ResizeObserver(h5))}function p5(a,n){jn||m5();const l=Uv(a);return l.forEach(r=>{let o=ro.get(r);o||(o=new Set,ro.set(r,o)),o.add(n),jn==null||jn.observe(r)}),()=>{l.forEach(r=>{const o=ro.get(r);o==null||o.delete(n),o!=null&&o.size||jn==null||jn.unobserve(r)})}}const oo=new Set;let Ks;function g5(){Ks=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};oo.forEach(n=>n(a))},window.addEventListener("resize",Ks)}function x5(a){return oo.add(a),Ks||g5(),()=>{oo.delete(a),!oo.size&&typeof Ks=="function"&&(window.removeEventListener("resize",Ks),Ks=void 0)}}function Bg(a,n){return typeof a=="function"?x5(a):p5(a,n)}function y5(a){return Bf(a)&&a.tagName==="svg"}const v5=[...zv,ut,ha],b5=a=>v5.find(Ov(a)),Hg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zs=()=>({x:Hg(),y:Hg()}),Yg=()=>({min:0,max:0}),ht=()=>({x:Yg(),y:Yg()}),w5=new WeakMap;function Oo(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function gi(a){return typeof a=="string"||Array.isArray(a)}const Hf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yf=["initial",...Hf];function zo(a){return Oo(a.animate)||Yf.some(n=>gi(a[n]))}function Gv(a){return!!(zo(a)||a.variants)}function S5(a,n,l){for(const r in n){const o=n[r],f=l[r];if(kt(o))a.addValue(r,o);else if(kt(f))a.addValue(r,Is(o,{owner:a}));else if(f!==o)if(a.hasValue(r)){const h=a.getValue(r);h.liveStyle===!0?h.jump(o):h.hasAnimated||h.set(o)}else{const h=a.getStaticValue(r);a.addValue(r,Is(h!==void 0?h:o,{owner:a}))}}for(const r in l)n[r]===void 0&&a.removeValue(r);return n}const $d={current:null},Pv={current:!1},k5=typeof window<"u";function j5(){if(Pv.current=!0,!!k5)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),n=()=>$d.current=a.matches;a.addEventListener("change",n),n()}else $d.current=!1}const qg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ko={};function Xv(a){ko=a}function N5(){return ko}class T5{scrapeMotionValuesFromProps(n,l,r){return{}}constructor({parent:n,props:l,presenceContext:r,reducedMotionConfig:o,skipAnimations:f,blockInitialAnimation:h,visualState:m},p={}){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=Df,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 k=Ct.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,Xe.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=m;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},this.renderState=y,this.parent=n,this.props=l,this.presenceContext=r,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=f,this.options=p,this.blockInitialAnimation=!!h,this.isControllingVariants=zo(l),this.isVariantNode=Gv(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:v,...w}=this.scrapeMotionValuesFromProps(l,{},this);for(const k in w){const T=w[k];g[k]!==void 0&&kt(T)&&T.set(g[k])}}mount(n){var l,r;if(this.hasBeenMounted)for(const o in this.initialValues)(l=this.values.get(o))==null||l.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=n,w5.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,f)=>this.bindToMotionValue(f,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Pv.current||j5(),this.shouldReduceMotion=$d.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),En(this.notifyUpdate),En(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const r=this.features[l];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,l){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),l.accelerate&&e5.has(n)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:p,ease:g,duration:y}=l.accelerate,v=new jv({element:this.current,name:n,keyframes:m,times:p,ease:g,duration:Qt(y)}),w=h(v);this.valueSubscriptions.set(n,()=>{w(),v.cancel()});return}const r=il.has(n);r&&this.onBindTransform&&this.onBindTransform();const o=l.on("change",h=>{this.latestValues[n]=h,this.props.onUpdate&&Xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,n,l)),this.valueSubscriptions.set(n,()=>{o(),f&&f(),l.owner&&l.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in ko){const l=ko[n];if(!l)continue;const{isEnabled:r,Feature:o}=l;if(!this.features[n]&&o&&r(this.props)&&(this.features[n]=new o(this)),this.features[n]){const f=this.features[n];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,l){this.latestValues[n]=l}update(n,l){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<qg.length;r++){const o=qg[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const f="on"+o,h=n[f];h&&(this.propEventSubscriptions[o]=this.on(o,h))}this.prevMotionValues=S5(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(n),()=>l.variantChildren.delete(n)}addValue(n,l){const r=this.values.get(n);l!==r&&(r&&this.removeValue(n),this.bindToMotionValue(n,l),this.values.set(n,l),this.latestValues[n]=l.get())}removeValue(n){this.values.delete(n);const l=this.valueSubscriptions.get(n);l&&(l(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,l){if(this.props.values&&this.props.values[n])return this.props.values[n];let r=this.values.get(n);return r===void 0&&l!==void 0&&(r=Is(l===null?void 0:l,{owner:this}),this.addValue(n,r)),r}readValue(n,l){let r=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return r!=null&&(typeof r=="string"&&(Py(r)||Qy(r))?r=parseFloat(r):!b5(r)&&ha.test(l)&&(r=Vv(n,l)),this.setBaseTarget(n,kt(r)?r.get():r)),kt(r)?r.get():r}setBaseTarget(n,l){this.baseTarget[n]=l}getBaseTarget(n){var f;const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const h=zf(this.props,l,(f=this.presenceContext)==null?void 0:f.custom);h&&(r=h[n])}if(l&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,n);return o!==void 0&&!kt(o)?o:this.initialValues[n]!==void 0&&r===void 0?void 0:this.baseTarget[n]}on(n,l){return this.events[n]||(this.events[n]=new bf),this.events[n].add(l)}notify(n,...l){this.events[n]&&this.events[n].notify(...l)}scheduleRenderMicrotask(){Uf.render(this.render)}}class Qv extends T5{constructor(){super(...arguments),this.KeyframeResolver=IT}sortInstanceNodePosition(n,l){return n.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(n,l){const r=n.style;return r?r[l]:void 0}removeValueFromRenderState(n,{vars:l,style:r}){delete l[n],delete r[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;kt(n)&&(this.childSubscription=n.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class An{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Fv({top:a,left:n,right:l,bottom:r}){return{x:{min:n,max:l},y:{min:a,max:r}}}function E5({x:a,y:n}){return{top:n.min,right:a.max,bottom:n.max,left:a.min}}function C5(a,n){if(!n)return a;const l=n({x:a.left,y:a.top}),r=n({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function pd(a){return a===void 0||a===1}function Wd({scale:a,scaleX:n,scaleY:l}){return!pd(a)||!pd(n)||!pd(l)}function $n(a){return Wd(a)||Kv(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Kv(a){return Gg(a.x)||Gg(a.y)}function Gg(a){return a&&a!=="0%"}function jo(a,n,l){const r=a-l,o=n*r;return l+o}function Pg(a,n,l,r,o){return o!==void 0&&(a=jo(a,o,r)),jo(a,l,r)+n}function Id(a,n=0,l=1,r,o){a.min=Pg(a.min,n,l,r,o),a.max=Pg(a.max,n,l,r,o)}function Zv(a,{x:n,y:l}){Id(a.x,n.translate,n.scale,n.originPoint),Id(a.y,l.translate,l.scale,l.originPoint)}const Xg=.999999999999,Qg=1.0000000000001;function M5(a,n,l,r=!1){var m;const o=l.length;if(!o)return;n.x=n.y=1;let f,h;for(let p=0;p<o;p++){f=l[p],h=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&$s(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),h&&(n.x*=h.x.scale,n.y*=h.y.scale,Zv(a,h)),r&&$n(f.latestValues)&&$s(a,f.latestValues,(m=f.layout)==null?void 0:m.layoutBox))}n.x<Qg&&n.x>Xg&&(n.x=1),n.y<Qg&&n.y>Xg&&(n.y=1)}function Js(a,n){a.min=a.min+n,a.max=a.max+n}function Fg(a,n,l,r,o=.5){const f=$e(a.min,a.max,o);Id(a,n,l,f,r)}function Kg(a,n){return typeof a=="string"?parseFloat(a)/100*(n.max-n.min):a}function $s(a,n,l){const r=l??a;Fg(a.x,Kg(n.x,r.x),n.scaleX,n.scale,n.originX),Fg(a.y,Kg(n.y,r.y),n.scaleY,n.scale,n.originY)}function Jv(a,n){return Fv(C5(a.getBoundingClientRect(),n))}function A5(a,n,l){const r=Jv(a,l),{scroll:o}=n;return o&&(Js(r.x,o.offset.x),Js(r.y,o.offset.y)),r}const D5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R5=ll.length;function O5(a,n,l){let r="",o=!0;for(let f=0;f<R5;f++){const h=ll[f],m=a[h];if(m===void 0)continue;let p=!0;if(typeof m=="number")p=m===(h.startsWith("scale")?1:0);else{const g=parseFloat(m);p=h.startsWith("scale")?g===1:g===0}if(!p||l){const g=Lv(m,Vf[h]);if(!p){o=!1;const y=D5[h]||h;r+=`${y}(${g}) `}l&&(n[h]=g)}}return r=r.trim(),l?r=l(n,o?"":r):o&&(r="none"),r}function qf(a,n,l){const{style:r,vars:o,transformOrigin:f}=a;let h=!1,m=!1;for(const p in n){const g=n[p];if(il.has(p)){h=!0;continue}else if(rv(p)){o[p]=g;continue}else{const y=Lv(g,Vf[p]);p.startsWith("origin")?(m=!0,f[p]=y):r[p]=y}}if(n.transform||(h||l?r.transform=O5(n,a.transform,l):r.transform&&(r.transform="none")),m){const{originX:p="50%",originY:g="50%",originZ:y=0}=f;r.transformOrigin=`${p} ${g} ${y}`}}function $v(a,{style:n,vars:l},r,o){const f=a.style;let h;for(h in n)f[h]=n[h];o==null||o.applyProjectionStyles(f,r);for(h in l)f.setProperty(h,l[h])}function Zg(a,n){return n.max===n.min?0:a/(n.max-n.min)*100}const si={correct:(a,n)=>{if(!n.target)return a;if(typeof a=="string")if(ce.test(a))a=parseFloat(a);else return a;const l=Zg(a,n.target.x),r=Zg(a,n.target.y);return`${l}% ${r}%`}},z5={correct:(a,{treeScale:n,projectionDelta:l})=>{const r=a,o=ha.parse(a);if(o.length>5)return r;const f=ha.createTransformer(a),h=typeof o[0]!="number"?1:0,m=l.x.scale*n.x,p=l.y.scale*n.y;o[0+h]/=m,o[1+h]/=p;const g=$e(m,p,.5);return typeof o[2+h]=="number"&&(o[2+h]/=g),typeof o[3+h]=="number"&&(o[3+h]/=g),f(o)}},ef={borderRadius:{...si,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:si,borderTopRightRadius:si,borderBottomLeftRadius:si,borderBottomRightRadius:si,boxShadow:z5};function Wv(a,{layout:n,layoutId:l}){return il.has(a)||a.startsWith("origin")||(n||l!==void 0)&&(!!ef[a]||a==="opacity")}function Gf(a,n,l){var h;const r=a.style,o=n==null?void 0:n.style,f={};if(!r)return f;for(const m in r)(kt(r[m])||o&&kt(o[m])||Wv(m,a)||((h=l==null?void 0:l.getValue(m))==null?void 0:h.liveStyle)!==void 0)&&(f[m]=r[m]);return f}function _5(a){return window.getComputedStyle(a)}class V5 extends Qv{constructor(){super(...arguments),this.type="html",this.renderInstance=$v}readValueFromInstance(n,l){var r;if(il.has(l))return(r=this.projection)!=null&&r.isProjecting?Hd(l):aT(n,l);{const o=_5(n),f=(rv(l)?o.getPropertyValue(l):o[l])||0;return typeof f=="string"?f.trim():f}}measureInstanceViewportBox(n,{transformPagePoint:l}){return Jv(n,l)}build(n,l,r){qf(n,l,r.transformTemplate)}scrapeMotionValuesFromProps(n,l,r){return Gf(n,l,r)}}const U5={offset:"stroke-dashoffset",array:"stroke-dasharray"},L5={offset:"strokeDashoffset",array:"strokeDasharray"};function B5(a,n,l=1,r=0,o=!0){a.pathLength=1;const f=o?U5:L5;a[f.offset]=`${-r}`,a[f.array]=`${n} ${l}`}const H5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Iv(a,{attrX:n,attrY:l,attrScale:r,pathLength:o,pathSpacing:f=1,pathOffset:h=0,...m},p,g,y){if(qf(a,m,g),p){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:w}=a;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox);for(const k of H5)v[k]!==void 0&&(w[k]=v[k],delete v[k]);n!==void 0&&(v.x=n),l!==void 0&&(v.y=l),r!==void 0&&(v.scale=r),o!==void 0&&B5(v,o,f,h,!1)}const eb=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"]),tb=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Y5(a,n,l,r){$v(a,n,void 0,r);for(const o in n.attrs)a.setAttribute(eb.has(o)?o:_f(o),n.attrs[o])}function ab(a,n,l){const r=Gf(a,n,l);for(const o in a)if(kt(a[o])||kt(n[o])){const f=ll.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[f]=a[o]}return r}class q5 extends Qv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(n,l){return n[l]}readValueFromInstance(n,l){if(il.has(l)){const r=_v(l);return r&&r.default||0}return l=eb.has(l)?l:_f(l),n.getAttribute(l)}scrapeMotionValuesFromProps(n,l,r){return ab(n,l,r)}build(n,l,r){Iv(n,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(n,l,r,o){Y5(n,l,r,o)}mount(n){this.isSVGTag=tb(n.tagName),super.mount(n)}}const G5=Yf.length;function nb(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?nb(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const n={};for(let l=0;l<G5;l++){const r=Yf[l],o=a.props[r];(gi(o)||o===!1)&&(n[r]=o)}return n}function sb(a,n){if(!Array.isArray(n))return!1;const l=n.length;if(l!==a.length)return!1;for(let r=0;r<l;r++)if(n[r]!==a[r])return!1;return!0}const P5=[...Hf].reverse(),X5=Hf.length;function Q5(a){return n=>Promise.all(n.map(({animation:l,options:r})=>qT(a,l,r)))}function F5(a){let n=Q5(a),l=Jg(),r=!0,o=!1;const f=g=>(y,v)=>{var k;const w=as(a,v,g==="exit"?(k=a.presenceContext)==null?void 0:k.custom:void 0);if(w){const{transition:T,transitionEnd:E,...M}=w;y={...y,...M,...E}}return y};function h(g){n=g(a)}function m(g){const{props:y}=a,v=nb(a.parent)||{},w=[],k=new Set;let T={},E=1/0;for(let A=0;A<X5;A++){const z=P5[A],O=l[z],H=y[z]!==void 0?y[z]:v[z],X=gi(H),ne=z===g?O.isActive:null;ne===!1&&(E=A);let F=H===v[z]&&H!==y[z]&&X;if(F&&(r||o)&&a.manuallyAnimateOnMount&&(F=!1),O.protectedKeys={...T},!O.isActive&&ne===null||!H&&!O.prevProp||Oo(H)||typeof H=="boolean")continue;if(z==="exit"&&O.isActive&&ne!==!0){O.prevResolvedValues&&(T={...T,...O.prevResolvedValues});continue}const B=K5(O.prevProp,H);let $=B||z===g&&O.isActive&&!F&&X||A>E&&X,ee=!1;const re=Array.isArray(H)?H:[H];let me=re.reduce(f(z),{});ne===!1&&(me={});const{prevResolvedValues:Re={}}=O,Se={...Re,...me},ge=W=>{$=!0,k.has(W)&&(ee=!0,k.delete(W)),O.needsAnimating[W]=!0;const he=a.getValue(W);he&&(he.liveStyle=!1)};for(const W in Se){const he=me[W],K=Re[W];if(T.hasOwnProperty(W))continue;let N=!1;Qd(he)&&Qd(K)?N=!sb(he,K):N=he!==K,N?he!=null?ge(W):k.add(W):he!==void 0&&k.has(W)?ge(W):O.protectedKeys[W]=!0}O.prevProp=H,O.prevResolvedValues=me,O.isActive&&(T={...T,...me}),(r||o)&&a.blockInitialAnimation&&($=!1);const _=F&&B;$&&(!_||ee)&&w.push(...re.map(W=>{const he={type:z};if(typeof W=="string"&&(r||o)&&!_&&a.manuallyAnimateOnMount&&a.parent){const{parent:K}=a,N=as(K,W);if(K.enteringChildren&&N){const{delayChildren:q}=N.transition||{};he.delay=Tv(K.enteringChildren,a,q)}}return{animation:W,options:he}}))}if(k.size){const A={};if(typeof y.initial!="boolean"){const z=as(a,Array.isArray(y.initial)?y.initial[0]:y.initial);z&&z.transition&&(A.transition=z.transition)}k.forEach(z=>{const O=a.getBaseTarget(z),H=a.getValue(z);H&&(H.liveStyle=!0),A[z]=O??null}),w.push({animation:A})}let M=!!w.length;return r&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(M=!1),r=!1,o=!1,M?n(w):Promise.resolve()}function p(g,y){var w;if(l[g].isActive===y)return Promise.resolve();(w=a.variantChildren)==null||w.forEach(k=>{var T;return(T=k.animationState)==null?void 0:T.setActive(g,y)}),l[g].isActive=y;const v=m(g);for(const k in l)l[k].protectedKeys={};return v}return{animateChanges:m,setActive:p,setAnimateFunction:h,getState:()=>l,reset:()=>{l=Jg(),o=!0}}}function K5(a,n){return typeof n=="string"?n!==a:Array.isArray(n)?!sb(n,a):!1}function Jn(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jg(){return{animate:Jn(!0),whileInView:Jn(),whileHover:Jn(),whileTap:Jn(),whileDrag:Jn(),whileFocus:Jn(),exit:Jn()}}function tf(a,n){a.min=n.min,a.max=n.max}function da(a,n){tf(a.x,n.x),tf(a.y,n.y)}function $g(a,n){a.translate=n.translate,a.scale=n.scale,a.originPoint=n.originPoint,a.origin=n.origin}const lb=1e-4,Z5=1-lb,J5=1+lb,ib=.01,$5=0-ib,W5=0+ib;function Mt(a){return a.max-a.min}function I5(a,n,l){return Math.abs(a-n)<=l}function Wg(a,n,l,r=.5){a.origin=r,a.originPoint=$e(n.min,n.max,a.origin),a.scale=Mt(l)/Mt(n),a.translate=$e(l.min,l.max,a.origin)-a.originPoint,(a.scale>=Z5&&a.scale<=J5||isNaN(a.scale))&&(a.scale=1),(a.translate>=$5&&a.translate<=W5||isNaN(a.translate))&&(a.translate=0)}function ui(a,n,l,r){Wg(a.x,n.x,l.x,r?r.originX:void 0),Wg(a.y,n.y,l.y,r?r.originY:void 0)}function Ig(a,n,l){a.min=l.min+n.min,a.max=a.min+Mt(n)}function e4(a,n,l){Ig(a.x,n.x,l.x),Ig(a.y,n.y,l.y)}function ex(a,n,l){a.min=n.min-l.min,a.max=a.min+Mt(n)}function No(a,n,l){ex(a.x,n.x,l.x),ex(a.y,n.y,l.y)}function tx(a,n,l,r,o){return a-=n,a=jo(a,1/l,r),o!==void 0&&(a=jo(a,1/o,r)),a}function t4(a,n=0,l=1,r=.5,o,f=a,h=a){if(ka.test(n)&&(n=parseFloat(n),n=$e(h.min,h.max,n/100)-h.min),typeof n!="number")return;let m=$e(f.min,f.max,r);a===f&&(m-=n),a.min=tx(a.min,n,l,m,o),a.max=tx(a.max,n,l,m,o)}function ax(a,n,[l,r,o],f,h){t4(a,n[l],n[r],n[o],n.scale,f,h)}const a4=["x","scaleX","originX"],n4=["y","scaleY","originY"];function nx(a,n,l,r){ax(a.x,n,a4,l?l.x:void 0,r?r.x:void 0),ax(a.y,n,n4,l?l.y:void 0,r?r.y:void 0)}function sx(a){return a.translate===0&&a.scale===1}function rb(a){return sx(a.x)&&sx(a.y)}function lx(a,n){return a.min===n.min&&a.max===n.max}function s4(a,n){return lx(a.x,n.x)&&lx(a.y,n.y)}function ix(a,n){return Math.round(a.min)===Math.round(n.min)&&Math.round(a.max)===Math.round(n.max)}function ob(a,n){return ix(a.x,n.x)&&ix(a.y,n.y)}function rx(a){return Mt(a.x)/Mt(a.y)}function ox(a,n){return a.translate===n.translate&&a.scale===n.scale&&a.originPoint===n.originPoint}function wa(a){return[a("x"),a("y")]}function l4(a,n,l){let r="";const o=a.x.translate/n.x,f=a.y.translate/n.y,h=(l==null?void 0:l.z)||0;if((o||f||h)&&(r=`translate3d(${o}px, ${f}px, ${h}px) `),(n.x!==1||n.y!==1)&&(r+=`scale(${1/n.x}, ${1/n.y}) `),l){const{transformPerspective:g,rotate:y,rotateX:v,rotateY:w,skewX:k,skewY:T}=l;g&&(r=`perspective(${g}px) ${r}`),y&&(r+=`rotate(${y}deg) `),v&&(r+=`rotateX(${v}deg) `),w&&(r+=`rotateY(${w}deg) `),k&&(r+=`skewX(${k}deg) `),T&&(r+=`skewY(${T}deg) `)}const m=a.x.scale*n.x,p=a.y.scale*n.y;return(m!==1||p!==1)&&(r+=`scale(${m}, ${p})`),r||"none"}const cb=["TopLeft","TopRight","BottomLeft","BottomRight"],i4=cb.length,cx=a=>typeof a=="string"?parseFloat(a):a,ux=a=>typeof a=="number"||ce.test(a);function r4(a,n,l,r,o,f){o?(a.opacity=$e(0,l.opacity??1,o4(r)),a.opacityExit=$e(n.opacity??1,0,c4(r))):f&&(a.opacity=$e(n.opacity??1,l.opacity??1,r));for(let h=0;h<i4;h++){const m=`border${cb[h]}Radius`;let p=dx(n,m),g=dx(l,m);if(p===void 0&&g===void 0)continue;p||(p=0),g||(g=0),p===0||g===0||ux(p)===ux(g)?(a[m]=Math.max($e(cx(p),cx(g),r),0),(ka.test(g)||ka.test(p))&&(a[m]+="%")):a[m]=g}(n.rotate||l.rotate)&&(a.rotate=$e(n.rotate||0,l.rotate||0,r))}function dx(a,n){return a[n]!==void 0?a[n]:a.borderRadius}const o4=ub(0,.5,tv),c4=ub(.5,.95,la);function ub(a,n,l){return r=>r<a?0:r>n?1:l(mi(a,n,r))}function u4(a,n,l){const r=kt(a)?a:Is(a);return r.start(Of("",r,n,l)),r.animation}function xi(a,n,l,r={passive:!0}){return a.addEventListener(n,l,r),()=>a.removeEventListener(n,l)}const d4=(a,n)=>a.depth-n.depth;class f4{constructor(){this.children=[],this.isDirty=!1}add(n){yf(this.children,n),this.isDirty=!0}remove(n){vo(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(d4),this.isDirty=!1,this.children.forEach(n)}}function h4(a,n){const l=Ct.now(),r=({timestamp:o})=>{const f=o-l;f>=n&&(En(r),a(f-n))};return Xe.setup(r,!0),()=>En(r)}function co(a){return kt(a)?a.get():a}class m4{constructor(){this.members=[]}add(n){yf(this.members,n);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===n||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(vo(this.members,r),r.unmount())}n.scheduleRender()}remove(n){if(vo(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(n){var l;for(let r=this.members.indexOf(n)-1;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1&&((l=o.instance)==null?void 0:l.isConnected)!==!1)return this.promote(o),!0}return!1}promote(n,l){var o;const r=this.lead;if(n!==r&&(this.prevLead=r,this.lead=n,n.show(),r)){r.updateSnapshot(),n.scheduleRender();const{layoutDependency:f}=r.options,{layoutDependency:h}=n.options;(f===void 0||f!==h)&&(n.resumeFrom=r,l&&(r.preserveOpacity=!0),r.snapshot&&(n.snapshot=r.snapshot,n.snapshot.latestValues=r.animationValues||r.latestValues),(o=n.root)!=null&&o.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(n=>{var l,r,o,f,h;(r=(l=n.options).onExitComplete)==null||r.call(l),(h=(o=n.resumingFrom)==null?void 0:(f=o.options).onExitComplete)==null||h.call(f)})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){var n;(n=this.lead)!=null&&n.snapshot&&(this.lead.snapshot=void 0)}}const uo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gd=["","X","Y","Z"],p4=1e3;let g4=0;function xd(a,n,l,r){const{latestValues:o}=n;o[a]&&(l[a]=o[a],n.setStaticValue(a,0),r&&(r[a]=0))}function db(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:n}=a.options;if(!n)return;const l=Dv(n);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:o,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Xe,!(o||f))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&db(r)}function fb({attachResizeListener:a,defaultParent:n,measureScroll:l,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(h={},m=n==null?void 0:n()){this.id=g4++,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(v4),this.nodes.forEach(k4),this.nodes.forEach(j4),this.nodes.forEach(b4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new f4)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new bf),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const p=this.eventHandlers.get(h);p&&p.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Bf(h)&&!y5(h),this.instance=h;const{layoutId:m,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||m)&&(this.isLayoutDirty=!0),a){let y,v=0;const w=()=>this.root.updateBlockedByResize=!1;Xe.read(()=>{v=window.innerWidth}),a(h,()=>{const k=window.innerWidth;k!==v&&(v=k,this.root.updateBlockedByResize=!0,y&&y(),y=h4(w,250),uo.hasAnimatedSinceResize&&(uo.hasAnimatedSinceResize=!1,this.nodes.forEach(mx)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&g&&(m||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:k})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||g.getDefaultTransition()||M4,{onLayoutAnimationStart:E,onLayoutAnimationComplete:M}=g.getProps(),A=!this.targetLayout||!ob(this.targetLayout,k),z=!v&&w;if(this.options.layoutRoot||this.resumeFrom||z||v&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...Rf(T,"layout"),onPlay:E,onComplete:M};(g.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(y,z)}else v||mx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=k})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),En(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(N4),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&db(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:m,layout:p}=this.options;if(m===void 0&&!p)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fx);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hx);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(S4),this.nodes.forEach(x4),this.nodes.forEach(y4)):this.nodes.forEach(hx),this.clearAllSnapshots();const m=Ct.now();St.delta=ja(0,1e3/60,m-St.timestamp),St.timestamp=m,St.isProcessing=!0,od.update.process(St),od.preRender.process(St),od.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Uf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w4),this.sharedNodes.forEach(T4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(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 p=0;p<this.path.length;p++)this.path[p].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(m=!1),m&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:p,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!rb(this.projectionDelta),p=this.getTransformTemplate(),g=p?p(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;h&&this.instance&&(m||$n(this.latestValues)||y)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let p=this.removeElementScroll(m);return h&&(p=this.removeTransform(p)),A4(p),{animationId:this.root.animationId,measuredBox:m,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:h}=this.options;if(!h)return ht();const m=h.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(D4))){const{scroll:y}=this.root;y&&(Js(m.x,y.offset.x),Js(m.y,y.offset.y))}return m}removeElementScroll(h){var p;const m=ht();if(da(m,h),(p=this.scroll)!=null&&p.wasRoot)return m;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:v,options:w}=y;y!==this.root&&v&&w.layoutScroll&&(v.wasRoot&&da(m,h),Js(m.x,v.offset.x),Js(m.y,v.offset.y))}return m}applyTransform(h,m=!1){var g,y;const p=ht();da(p,h);for(let v=0;v<this.path.length;v++){const w=this.path[v];!m&&w.options.layoutScroll&&w.scroll&&w!==w.root&&$s(p,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),$n(w.latestValues)&&$s(p,w.latestValues,(g=w.layout)==null?void 0:g.layoutBox)}return $n(this.latestValues)&&$s(p,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),p}removeTransform(h){var p;const m=ht();da(m,h);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!$n(y.latestValues))continue;let v;y.instance&&(Wd(y.latestValues)&&y.updateSnapshot(),v=ht(),da(v,y.measurePageBox())),nx(m,y.latestValues,(p=y.snapshot)==null?void 0:p.layoutBox,v)}return $n(this.latestValues)&&nx(m,this.latestValues),m}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var k;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==m;if(!(h||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(k=this.parent)!=null&&k.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=St.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ht(),this.targetWithTransforms=ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),e4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):da(this.target,this.layout.layoutBox),Zv(this.target,this.targetDelta)):da(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Wd(this.parent.latestValues)||Kv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,m,p){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),No(this.relativeTargetOrigin,m,p),da(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var T;const h=this.getLead(),m=!!this.resumingFrom||this!==h;let p=!0;if((this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty)&&(p=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===St.timestamp&&(p=!1),p)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;da(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,w=this.treeScale.y;M5(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=ht());const{target:k}=h;if(!k){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($g(this.prevProjectionDelta.x,this.projectionDelta.x),$g(this.prevProjectionDelta.y,this.projectionDelta.y)),ui(this.projectionDelta,this.layoutCorrected,k,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!ox(this.projectionDelta.x,this.prevProjectionDelta.x)||!ox(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",k))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),h){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Zs(),this.projectionDelta=Zs(),this.projectionDeltaWithTransform=Zs()}setAnimationOrigin(h,m=!1){const p=this.snapshot,g=p?p.latestValues:{},y={...this.latestValues},v=Zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const w=ht(),k=p?p.source:void 0,T=this.layout?this.layout.source:void 0,E=k!==T,M=this.getStack(),A=!M||M.members.length<=1,z=!!(E&&!A&&this.options.crossfade===!0&&!this.path.some(C4));this.animationProgress=0;let O;this.mixTargetDelta=H=>{const X=H/1e3;px(v.x,h.x,X),px(v.y,h.y,X),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(No(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),E4(this.relativeTarget,this.relativeTargetOrigin,w,X),O&&s4(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=ht()),da(O,this.relativeTarget)),E&&(this.animationValues=y,r4(y,g,this.latestValues,X,z,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){var m,p,g;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(g=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||g.stop(),this.pendingAnimation&&(En(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{uo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Is(0)),this.motionValue.jump(0,!1),this.currentAnimation=u4(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),h.onUpdate&&h.onUpdate(y)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(p4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:p,layout:g,latestValues:y}=h;if(!(!m||!p||!g)){if(this!==h&&this.layout&&g&&hb(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||ht();const v=Mt(this.layout.layoutBox.x);p.x.min=h.target.x.min,p.x.max=p.x.min+v;const w=Mt(this.layout.layoutBox.y);p.y.min=h.target.y.min,p.y.max=p.y.min+w}da(m,p),$s(m,y),ui(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new m4),this.sharedNodes.get(h).add(m);const g=m.options.initialPromotionConfig;m.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(m):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var m;const{layoutId:h}=this.options;return h?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:h}=this.options;return h?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:m,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:p}=h;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const g={};p.z&&xd("z",h,g,this.animationValues);for(let y=0;y<gd.length;y++)xd(`rotate${gd[y]}`,h,g,this.animationValues),xd(`skew${gd[y]}`,h,g,this.animationValues);h.render();for(const y in g)h.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);h.scheduleRender()}applyProjectionStyles(h,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=co(m==null?void 0:m.pointerEvents)||"",h.transform=p?p(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=co(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!$n(this.latestValues)&&(h.transform=p?p({},""):"none",this.hasProjected=!1);return}h.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let v=l4(this.projectionDeltaWithTransform,this.treeScale,y);p&&(v=p(y,v)),h.transform=v;const{x:w,y:k}=this.projectionDelta;h.transformOrigin=`${w.origin*100}% ${k.origin*100}% 0`,g.animationValues?h.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const T in ef){if(y[T]===void 0)continue;const{correct:E,applyTo:M,isCSSVariable:A}=ef[T],z=v==="none"?y[T]:E(y[T],g);if(M){const O=M.length;for(let H=0;H<O;H++)h[M[H]]=z}else A?this.options.visualElement.renderState.vars[T]=z:h[T]=z}this.options.layoutId&&(h.pointerEvents=g===this?co(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var m;return(m=h.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(fx),this.root.sharedNodes.clear()}}}function x4(a){a.updateLayout()}function y4(a){var l;const n=((l=a.resumeFrom)==null?void 0:l.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&n&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=a.layout,{animationType:f}=a.options,h=n.source!==a.layout.source;if(f==="size")wa(v=>{const w=h?n.measuredBox[v]:n.layoutBox[v],k=Mt(w);w.min=r[v].min,w.max=w.min+k});else if(f==="x"||f==="y"){const v=f==="x"?"y":"x";tf(h?n.measuredBox[v]:n.layoutBox[v],r[v])}else hb(f,n.layoutBox,r)&&wa(v=>{const w=h?n.measuredBox[v]:n.layoutBox[v],k=Mt(r[v]);w.max=w.min+k,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+k)});const m=Zs();ui(m,r,n.layoutBox);const p=Zs();h?ui(p,a.applyTransform(o,!0),n.measuredBox):ui(p,r,n.layoutBox);const g=!rb(m);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:w,layout:k}=v;if(w&&k){const T=ht();No(T,n.layoutBox,w.layoutBox);const E=ht();No(E,r,k.layoutBox),ob(T,E)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=E,a.relativeTargetOrigin=T,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:p,layoutDelta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function v4(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function b4(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function w4(a){a.clearSnapshot()}function fx(a){a.clearMeasurements()}function hx(a){a.isLayoutDirty=!1}function S4(a){const{visualElement:n}=a.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),a.resetTransform()}function mx(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function k4(a){a.resolveTargetDelta()}function j4(a){a.calcProjection()}function N4(a){a.resetSkewAndRotation()}function T4(a){a.removeLeadSnapshot()}function px(a,n,l){a.translate=$e(n.translate,0,l),a.scale=$e(n.scale,1,l),a.origin=n.origin,a.originPoint=n.originPoint}function gx(a,n,l,r){a.min=$e(n.min,l.min,r),a.max=$e(n.max,l.max,r)}function E4(a,n,l,r){gx(a.x,n.x,l.x,r),gx(a.y,n.y,l.y,r)}function C4(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const M4={duration:.45,ease:[.4,0,.1,1]},xx=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),yx=xx("applewebkit/")&&!xx("chrome/")?Math.round:la;function vx(a){a.min=yx(a.min),a.max=yx(a.max)}function A4(a){vx(a.x),vx(a.y)}function hb(a,n,l){return a==="position"||a==="preserve-aspect"&&!I5(rx(n),rx(l),.2)}function D4(a){var n;return a!==a.root&&((n=a.scroll)==null?void 0:n.wasRoot)}const R4=fb({attachResizeListener:(a,n)=>xi(a,"resize",n),measureScroll:()=>{var a,n;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),yd={current:void 0},mb=fb({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!yd.current){const a=new R4({});a.mount(window),a.setOptions({layoutScroll:!0}),yd.current=a}return yd.current},resetTransform:(a,n)=>{a.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Pf=S.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function bx(a,n){if(typeof a=="function")return a(n);a!=null&&(a.current=n)}function O4(...a){return n=>{let l=!1;const r=a.map(o=>{const f=bx(o,n);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let o=0;o<r.length;o++){const f=r[o];typeof f=="function"?f():bx(a[o],null)}}}}function z4(...a){return S.useCallback(O4(...a),a)}class _4 extends S.Component{getSnapshotBeforeUpdate(n){const l=this.props.childRef.current;if(lo(l)&&n.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,o=lo(r)&&r.offsetWidth||0,f=lo(r)&&r.offsetHeight||0,h=getComputedStyle(l),m=this.props.sizeRef.current;m.height=parseFloat(h.height),m.width=parseFloat(h.width),m.top=l.offsetTop,m.left=l.offsetLeft,m.right=o-m.width-m.left,m.bottom=f-m.height-m.top}return null}componentDidUpdate(){}render(){return this.props.children}}function V4({children:a,isPresent:n,anchorX:l,anchorY:r,root:o,pop:f}){var w;const h=S.useId(),m=S.useRef(null),p=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=S.useContext(Pf),y=((w=a.props)==null?void 0:w.ref)??(a==null?void 0:a.ref),v=z4(m,y);return S.useInsertionEffect(()=>{const{width:k,height:T,top:E,left:M,right:A,bottom:z}=p.current;if(n||f===!1||!m.current||!k||!T)return;const O=l==="left"?`left: ${M}`:`right: ${A}`,H=r==="bottom"?`bottom: ${z}`:`top: ${E}`;m.current.dataset.motionPopId=h;const X=document.createElement("style");g&&(X.nonce=g);const ne=o??document.head;return ne.appendChild(X),X.sheet&&X.sheet.insertRule(`
|
||
[data-motion-pop-id="${h}"] {
|
||
position: absolute !important;
|
||
width: ${k}px !important;
|
||
height: ${T}px !important;
|
||
${O}px !important;
|
||
${H}px !important;
|
||
}
|
||
`),()=>{var F;(F=m.current)==null||F.removeAttribute("data-motion-pop-id"),ne.contains(X)&&ne.removeChild(X)}},[n]),d.jsx(_4,{isPresent:n,childRef:m,sizeRef:p,pop:f,children:f===!1?a:S.cloneElement(a,{ref:v})})}const U4=({children:a,initial:n,isPresent:l,onExitComplete:r,custom:o,presenceAffectsLayout:f,mode:h,anchorX:m,anchorY:p,root:g})=>{const y=xf(L4),v=S.useId();let w=!0,k=S.useMemo(()=>(w=!1,{id:v,initial:n,isPresent:l,custom:o,onExitComplete:T=>{y.set(T,!0);for(const E of y.values())if(!E)return;r&&r()},register:T=>(y.set(T,!1),()=>y.delete(T))}),[l,y,r]);return f&&w&&(k={...k}),S.useMemo(()=>{y.forEach((T,E)=>y.set(E,!1))},[l]),S.useEffect(()=>{!l&&!y.size&&r&&r()},[l]),a=d.jsx(V4,{pop:h==="popLayout",isPresent:l,anchorX:m,anchorY:p,root:g,children:a}),d.jsx(Ro.Provider,{value:k,children:a})};function L4(){return new Map}function pb(a=!0){const n=S.useContext(Ro);if(n===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:o}=n,f=S.useId();S.useEffect(()=>{if(a)return o(f)},[a]);const h=S.useCallback(()=>a&&r&&r(f),[f,r,a]);return!l&&r?[!1,h]:[!0]}const Kr=a=>a.key||"";function wx(a){const n=[];return S.Children.forEach(a,l=>{S.isValidElement(l)&&n.push(l)}),n}const Xa=({children:a,custom:n,initial:l=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:f="sync",propagate:h=!1,anchorX:m="left",anchorY:p="top",root:g})=>{const[y,v]=pb(h),w=S.useMemo(()=>wx(a),[a]),k=h&&!y?[]:w.map(Kr),T=S.useRef(!0),E=S.useRef(w),M=xf(()=>new Map),A=S.useRef(new Set),[z,O]=S.useState(w),[H,X]=S.useState(w);Gy(()=>{T.current=!1,E.current=w;for(let B=0;B<H.length;B++){const $=Kr(H[B]);k.includes($)?(M.delete($),A.current.delete($)):M.get($)!==!0&&M.set($,!1)}},[H,k.length,k.join("-")]);const ne=[];if(w!==z){let B=[...w];for(let $=0;$<H.length;$++){const ee=H[$],re=Kr(ee);k.includes(re)||(B.splice($,0,ee),ne.push(ee))}return f==="wait"&&ne.length&&(B=ne),X(wx(B)),O(w),null}const{forceRender:F}=S.useContext(gf);return d.jsx(d.Fragment,{children:H.map(B=>{const $=Kr(B),ee=h&&!y?!1:w===H||k.includes($),re=()=>{if(A.current.has($))return;if(M.has($))A.current.add($),M.set($,!0);else return;let me=!0;M.forEach(Re=>{Re||(me=!1)}),me&&(F==null||F(),X(E.current),h&&(v==null||v()),r&&r())};return d.jsx(U4,{isPresent:ee,initial:!T.current||l?void 0:!1,custom:n,presenceAffectsLayout:o,mode:f,root:g,onExitComplete:ee?void 0:re,anchorX:m,anchorY:p,children:B},$)})})},gb=S.createContext({strict:!1}),Sx={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 kx=!1;function B4(){if(kx)return;const a={};for(const n in Sx)a[n]={isEnabled:l=>Sx[n].some(r=>!!l[r])};Xv(a),kx=!0}function xb(){return B4(),N5()}function H4(a){const n=xb();for(const l in a)n[l]={...n[l],...a[l]};Xv(n)}const Y4=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 To(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Y4.has(a)}let yb=a=>!To(a);function q4(a){typeof a=="function"&&(yb=n=>n.startsWith("on")?!To(n):a(n))}try{q4(require("@emotion/is-prop-valid").default)}catch{}function G4(a,n,l){const r={};for(const o in a)o==="values"&&typeof a.values=="object"||kt(a[o])||(yb(o)||l===!0&&To(o)||!n&&!To(o)||a.draggable&&o.startsWith("onDrag"))&&(r[o]=a[o]);return r}const _o=S.createContext({});function P4(a,n){if(zo(a)){const{initial:l,animate:r}=a;return{initial:l===!1||gi(l)?l:void 0,animate:gi(r)?r:void 0}}return a.inherit!==!1?n:{}}function X4(a){const{initial:n,animate:l}=P4(a,S.useContext(_o));return S.useMemo(()=>({initial:n,animate:l}),[jx(n),jx(l)])}function jx(a){return Array.isArray(a)?a.join(" "):a}const Xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vb(a,n,l){for(const r in n)!kt(n[r])&&!Wv(r,l)&&(a[r]=n[r])}function Q4({transformTemplate:a},n){return S.useMemo(()=>{const l=Xf();return qf(l,n,a),Object.assign({},l.vars,l.style)},[n])}function F4(a,n){const l=a.style||{},r={};return vb(r,l,a),Object.assign(r,Q4(a,n)),r}function K4(a,n){const l={},r=F4(a,n);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=r,l}const bb=()=>({...Xf(),attrs:{}});function Z4(a,n,l,r){const o=S.useMemo(()=>{const f=bb();return Iv(f,n,tb(r),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[n]);if(a.style){const f={};vb(f,a.style,a),o.style={...f,...o.style}}return o}const J4=["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 Qf(a){return typeof a!="string"||a.includes("-")?!1:!!(J4.indexOf(a)>-1||/[A-Z]/u.test(a))}function $4(a,n,l,{latestValues:r},o,f=!1,h){const p=(h??Qf(a)?Z4:K4)(n,r,o,a),g=G4(n,typeof a=="string",f),y=a!==S.Fragment?{...g,...p,ref:l}:{},{children:v}=n,w=S.useMemo(()=>kt(v)?v.get():v,[v]);return S.createElement(a,{...y,children:w})}function W4({scrapeMotionValuesFromProps:a,createRenderState:n},l,r,o){return{latestValues:I4(l,r,o,a),renderState:n()}}function I4(a,n,l,r){const o={},f=r(a,{});for(const w in f)o[w]=co(f[w]);let{initial:h,animate:m}=a;const p=zo(a),g=Gv(a);n&&g&&!p&&a.inherit!==!1&&(h===void 0&&(h=n.initial),m===void 0&&(m=n.animate));let y=l?l.initial===!1:!1;y=y||h===!1;const v=y?m:h;if(v&&typeof v!="boolean"&&!Oo(v)){const w=Array.isArray(v)?v:[v];for(let k=0;k<w.length;k++){const T=zf(a,w[k]);if(T){const{transitionEnd:E,transition:M,...A}=T;for(const z in A){let O=A[z];if(Array.isArray(O)){const H=y?O.length-1:0;O=O[H]}O!==null&&(o[z]=O)}for(const z in E)o[z]=E[z]}}}return o}const wb=a=>(n,l)=>{const r=S.useContext(_o),o=S.useContext(Ro),f=()=>W4(a,n,r,o);return l?f():xf(f)},e3=wb({scrapeMotionValuesFromProps:Gf,createRenderState:Xf}),t3=wb({scrapeMotionValuesFromProps:ab,createRenderState:bb}),a3=Symbol.for("motionComponentSymbol");function n3(a,n,l){const r=S.useRef(l);S.useInsertionEffect(()=>{r.current=l});const o=S.useRef(null);return S.useCallback(f=>{var m;f&&((m=a.onMount)==null||m.call(a,f));const h=r.current;if(typeof h=="function")if(f){const p=h(f);typeof p=="function"&&(o.current=p)}else o.current?(o.current(),o.current=null):h(f);else h&&(h.current=f);n&&(f?n.mount(f):n.unmount())},[n])}const Sb=S.createContext({});function Qs(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function s3(a,n,l,r,o,f){var O,H;const{visualElement:h}=S.useContext(_o),m=S.useContext(gb),p=S.useContext(Ro),g=S.useContext(Pf),y=g.reducedMotion,v=g.skipAnimations,w=S.useRef(null),k=S.useRef(!1);r=r||m.renderer,!w.current&&r&&(w.current=r(a,{visualState:n,parent:h,props:l,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y,skipAnimations:v,isSVG:f}),k.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));const T=w.current,E=S.useContext(Sb);T&&!T.projection&&o&&(T.type==="html"||T.type==="svg")&&l3(w.current,l,o,E);const M=S.useRef(!1);S.useInsertionEffect(()=>{T&&M.current&&T.update(l,p)});const A=l[Av],z=S.useRef(!!A&&typeof window<"u"&&!((O=window.MotionHandoffIsComplete)!=null&&O.call(window,A))&&((H=window.MotionHasOptimisedAnimation)==null?void 0:H.call(window,A)));return Gy(()=>{k.current=!0,T&&(M.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),T.scheduleRenderMicrotask(),z.current&&T.animationState&&T.animationState.animateChanges())}),S.useEffect(()=>{T&&(!z.current&&T.animationState&&T.animationState.animateChanges(),z.current&&(queueMicrotask(()=>{var X;(X=window.MotionHandoffMarkAsComplete)==null||X.call(window,A)}),z.current=!1),T.enteringChildren=void 0)}),T}function l3(a,n,l,r){const{layoutId:o,layout:f,drag:h,dragConstraints:m,layoutScroll:p,layoutRoot:g,layoutCrossfade:y}=n;a.projection=new l(a.latestValues,n["data-framer-portal-id"]?void 0:kb(a.parent)),a.projection.setOptions({layoutId:o,layout:f,alwaysMeasureLayout:!!h||m&&Qs(m),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:p,layoutRoot:g})}function kb(a){if(a)return a.options.allowProjection!==!1?a.projection:kb(a.parent)}function vd(a,{forwardMotionProps:n=!1,type:l}={},r,o){r&&H4(r);const f=l?l==="svg":Qf(a),h=f?t3:e3;function m(g,y){let v;const w={...S.useContext(Pf),...g,layoutId:i3(g)},{isStatic:k}=w,T=X4(g),E=h(g,k);if(!k&&typeof window<"u"){r3();const M=o3(w);v=M.MeasureLayout,T.visualElement=s3(a,E,w,o,M.ProjectionNode,f)}return d.jsxs(_o.Provider,{value:T,children:[v&&T.visualElement?d.jsx(v,{visualElement:T.visualElement,...w}):null,$4(a,g,n3(E,T.visualElement,y),E,k,n,f)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const p=S.forwardRef(m);return p[a3]=a,p}function i3({layoutId:a}){const n=S.useContext(gf).id;return n&&a!==void 0?n+"-"+a:a}function r3(a,n){S.useContext(gb).strict}function o3(a){const n=xb(),{drag:l,layout:r}=n;if(!l&&!r)return{};const o={...l,...r};return{MeasureLayout:l!=null&&l.isEnabled(a)||r!=null&&r.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function c3(a,n){if(typeof Proxy>"u")return vd;const l=new Map,r=(f,h)=>vd(f,h,a,n),o=(f,h)=>r(f,h);return new Proxy(o,{get:(f,h)=>h==="create"?r:(l.has(h)||l.set(h,vd(h,void 0,a,n)),l.get(h))})}const u3=(a,n)=>n.isSVG??Qf(a)?new q5(n):new V5(n,{allowProjection:a!==S.Fragment});class d3 extends An{constructor(n){super(n),n.animationState||(n.animationState=F5(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Oo(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:l}=this.node.prevProps||{};n!==l&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let f3=0;class h3 extends An{constructor(){super(...arguments),this.id=f3++,this.isExitComplete=!1}update(){var f;if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===r)return;if(n&&r===!1){if(this.isExitComplete){const{initial:h,custom:m}=this.node.getProps();if(typeof h=="string"){const p=as(this.node,h,m);if(p){const{transition:g,transitionEnd:y,...v}=p;for(const w in v)(f=this.node.getValue(w))==null||f.jump(v[w])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!n);l&&!n&&o.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:n,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const m3={animation:{Feature:d3},exit:{Feature:h3}};function Ni(a){return{point:{x:a.pageX,y:a.pageY}}}const p3=a=>n=>Lf(n)&&a(n,Ni(n));function di(a,n,l,r){return xi(a,n,p3(l),r)}const jb=({current:a})=>a?a.ownerDocument.defaultView:null,Nx=(a,n)=>Math.abs(a-n);function g3(a,n){const l=Nx(a.x,n.x),r=Nx(a.y,n.y);return Math.sqrt(l**2+r**2)}const Tx=new Set(["auto","scroll"]);class Nb{constructor(n,l,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:f=!1,distanceThreshold:h=3,element:m}={}){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=k=>{this.handleScroll(k.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zr(this.lastRawMoveEventInfo,this.transformPagePoint));const k=bd(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=g3(k.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!E)return;const{point:M}=k,{timestamp:A}=St;this.history.push({...M,timestamp:A});const{onStart:z,onMove:O}=this.handlers;T||(z&&z(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,k)},this.handlePointerMove=(k,T)=>{this.lastMoveEvent=k,this.lastRawMoveEventInfo=T,this.lastMoveEventInfo=Zr(T,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(k,T)=>{this.end();const{onEnd:E,onSessionEnd:M,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const z=bd(k.type==="pointercancel"?this.lastMoveEventInfo:Zr(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(k,z),M&&M(k,z)},!Lf(n))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=h,this.contextWindow=o||window;const p=Ni(n),g=Zr(p,this.transformPagePoint),{point:y}=g,{timestamp:v}=St;this.history=[{...y,timestamp:v}];const{onSessionStart:w}=l;w&&w(n,bd(g,this.history)),this.removeListeners=Si(di(this.contextWindow,"pointermove",this.handlePointerMove),di(this.contextWindow,"pointerup",this.handlePointerUp),di(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(n){let l=n.parentElement;for(;l;){const r=getComputedStyle(l);(Tx.has(r.overflowX)||Tx.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(n){const l=this.scrollPositions.get(n);if(!l)return;const r=n===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},f={x:o.x-l.x,y:o.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(n,o),Xe.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),En(this.updatePoint)}}function Zr(a,n){return n?{point:n(a.point)}:a}function Ex(a,n){return{x:a.x-n.x,y:a.y-n.y}}function bd({point:a},n){return{point:a,delta:Ex(a,Tb(n)),offset:Ex(a,x3(n)),velocity:y3(n,.1)}}function x3(a){return a[0]}function Tb(a){return a[a.length-1]}function y3(a,n){if(a.length<2)return{x:0,y:0};let l=a.length-1,r=null;const o=Tb(a);for(;l>=0&&(r=a[l],!(o.timestamp-r.timestamp>Qt(n)));)l--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&o.timestamp-r.timestamp>Qt(n)*2&&(r=a[1]);const f=sa(o.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const h={x:(o.x-r.x)/f,y:(o.y-r.y)/f};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function v3(a,{min:n,max:l},r){return n!==void 0&&a<n?a=r?$e(n,a,r.min):Math.max(a,n):l!==void 0&&a>l&&(a=r?$e(l,a,r.max):Math.min(a,l)),a}function Cx(a,n,l){return{min:n!==void 0?a.min+n:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function b3(a,{top:n,left:l,bottom:r,right:o}){return{x:Cx(a.x,l,o),y:Cx(a.y,n,r)}}function Mx(a,n){let l=n.min-a.min,r=n.max-a.max;return n.max-n.min<a.max-a.min&&([l,r]=[r,l]),{min:l,max:r}}function w3(a,n){return{x:Mx(a.x,n.x),y:Mx(a.y,n.y)}}function S3(a,n){let l=.5;const r=Mt(a),o=Mt(n);return o>r?l=mi(n.min,n.max-r,a.min):r>o&&(l=mi(a.min,a.max-o,n.min)),ja(0,1,l)}function k3(a,n){const l={};return n.min!==void 0&&(l.min=n.min-a.min),n.max!==void 0&&(l.max=n.max-a.min),l}const af=.35;function j3(a=af){return a===!1?a=0:a===!0&&(a=af),{x:Ax(a,"left","right"),y:Ax(a,"top","bottom")}}function Ax(a,n,l){return{min:Dx(a,n),max:Dx(a,l)}}function Dx(a,n){return typeof a=="number"?a:a[n]||0}const N3=new WeakMap;class T3{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const f=v=>{l&&this.snapToCursor(Ni(v).point),this.stopAnimation()},h=(v,w)=>{const{drag:k,dragPropagation:T,onDragStart:E}=this.getProps();if(k&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=t5(k),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wa(A=>{let z=this.getAxisMotionValue(A).get()||0;if(ka.test(z)){const{projection:O}=this.visualElement;if(O&&O.layout){const H=O.layout.layoutBox[A];H&&(z=Mt(H)*(parseFloat(z)/100))}}this.originPoint[A]=z}),E&&Xe.update(()=>E(v,w),!1,!0),Fd(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},m=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:k,dragDirectionLock:T,onDirectionLock:E,onDrag:M}=this.getProps();if(!k&&!this.openDragLock)return;const{offset:A}=w;if(T&&this.currentDirection===null){this.currentDirection=C3(A),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",w.point,A),this.updateAxis("y",w.point,A),this.visualElement.render(),M&&Xe.update(()=>M(v,w),!1,!0)},p=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new Nb(n,{onSessionStart:f,onStart:h,onMove:m,onSessionEnd:p,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:jb(this.visualElement),element:this.visualElement.current})}stop(n,l){const r=n||this.latestPointerEvent,o=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!o||!r)return;const{velocity:h}=o;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&Xe.postRender(()=>m(r,o))}cancel(){this.isDragging=!1;const{projection:n,animationState:l}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,l,r){const{drag:o}=this.getProps();if(!r||!Jr(n,o,this.currentDirection))return;const f=this.getAxisMotionValue(n);let h=this.originPoint[n]+r[n];this.constraints&&this.constraints[n]&&(h=v3(h,this.constraints[n],this.elastic[n])),f.set(h)}resolveConstraints(){var f;const{dragConstraints:n,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(f=this.visualElement.projection)==null?void 0:f.layout,o=this.constraints;n&&Qs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=b3(r.layoutBox,n):this.constraints=!1,this.elastic=j3(l),o!==this.constraints&&!Qs(n)&&r&&this.constraints&&!this.hasMutatedConstraints&&wa(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=k3(r.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:l}=this.getProps();if(!n||!Qs(n))return!1;const r=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const f=A5(r,o.root,this.visualElement.getTransformPagePoint());let h=w3(o.layout.layoutBox,f);if(l){const m=l(E5(h));this.hasMutatedConstraints=!!m,m&&(h=Fv(m))}return h}startAnimation(n){const{drag:l,dragMomentum:r,dragElastic:o,dragTransition:f,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},g=wa(y=>{if(!Jr(y,l,this.currentDirection))return;let v=p&&p[y]||{};(h===!0||h===y)&&(v={min:0,max:0});const w=o?200:1e6,k=o?40:1e7,T={type:"inertia",velocity:r?n[y]:0,bounceStiffness:w,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10,...f,...v};return this.startAxisValueAnimation(y,T)});return Promise.all(g).then(m)}startAxisValueAnimation(n,l){const r=this.getAxisMotionValue(n);return Fd(this.visualElement,n),r.start(Of(n,r,0,l,this.visualElement,!1))}stopAnimation(){wa(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const l=`_drag${n.toUpperCase()}`,r=this.visualElement.getProps(),o=r[l];return o||this.visualElement.getValue(n,(r.initial?r.initial[n]:void 0)||0)}snapToCursor(n){wa(l=>{const{drag:r}=this.getProps();if(!Jr(l,r,this.currentDirection))return;const{projection:o}=this.visualElement,f=this.getAxisMotionValue(l);if(o&&o.layout){const{min:h,max:m}=o.layout.layoutBox[l],p=f.get()||0;f.set(n[l]-$e(h,m,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!Qs(l)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};wa(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const p=m.get();o[h]=S3({min:p,max:p},this.constraints[h])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),wa(h=>{if(!Jr(h,n,null))return;const m=this.getAxisMotionValue(h),{min:p,max:g}=this.constraints[h];m.set($e(p,g,o[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;N3.set(this.visualElement,this);const n=this.visualElement.current,l=di(n,"pointerdown",g=>{const{drag:y,dragListener:v=!0}=this.getProps(),w=g.target,k=w!==n&&r5(w);y&&v&&!k&&this.start(g)});let r;const o=()=>{const{dragConstraints:g}=this.getProps();Qs(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=E3(n,g.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,h=f.addEventListener("measure",o);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Xe.read(o);const m=xi(window,"resize",()=>this.scalePositionWithinConstraints()),p=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(wa(v=>{const w=this.getAxisMotionValue(v);w&&(this.originPoint[v]+=g[v].translate,w.set(w.get()+g[v].translate))}),this.visualElement.render())}));return()=>{m(),l(),h(),p&&p(),r&&r()}}getProps(){const n=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:f=!1,dragElastic:h=af,dragMomentum:m=!0}=n;return{...n,drag:l,dragDirectionLock:r,dragPropagation:o,dragConstraints:f,dragElastic:h,dragMomentum:m}}}function Rx(a){let n=!0;return()=>{if(n){n=!1;return}a()}}function E3(a,n,l){const r=Bg(a,Rx(l)),o=Bg(n,Rx(l));return()=>{r(),o()}}function Jr(a,n,l){return(n===!0||n===a)&&(l===null||l===a)}function C3(a,n=10){let l=null;return Math.abs(a.y)>n?l="y":Math.abs(a.x)>n&&(l="x"),l}class M3 extends An{constructor(n){super(n),this.removeGroupControls=la,this.removeListeners=la,this.controls=new T3(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||la}update(){const{dragControls:n}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};n!==l&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const wd=a=>(n,l)=>{a&&Xe.update(()=>a(n,l),!1,!0)};class A3 extends An{constructor(){super(...arguments),this.removePointerDownListener=la}onPointerDown(n){this.session=new Nb(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jb(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:l,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:wd(n),onStart:wd(l),onMove:wd(r),onEnd:(f,h)=>{delete this.session,o&&Xe.postRender(()=>o(f,h))}}}mount(){this.removePointerDownListener=di(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Sd=!1;class D3 extends S.Component{componentDidMount(){const{visualElement:n,layoutGroup:l,switchLayoutGroup:r,layoutId:o}=this.props,{projection:f}=n;f&&(l.group&&l.group.add(f),r&&r.register&&o&&r.register(f),Sd&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),uo.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:l,visualElement:r,drag:o,isPresent:f}=this.props,{projection:h}=r;return h&&(h.isPresent=f,n.layoutDependency!==l&&h.setOptions({...h.options,layoutDependency:l}),Sd=!0,o||n.layoutDependency!==l||l===void 0||n.isPresent!==f?h.willUpdate():this.safeToRemove(),n.isPresent!==f&&(f?h.promote():h.relegate()||Xe.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Uf.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:o}=n;Sd=!0,o&&(o.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Eb(a){const[n,l]=pb(),r=S.useContext(gf);return d.jsx(D3,{...a,layoutGroup:r,switchLayoutGroup:S.useContext(Sb),isPresent:n,safeToRemove:l})}const R3={pan:{Feature:A3},drag:{Feature:M3,ProjectionNode:mb,MeasureLayout:Eb}};function Ox(a,n,l){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",l==="Start");const o="onHover"+l,f=r[o];f&&Xe.postRender(()=>f(n,Ni(n)))}class O3 extends An{mount(){const{current:n}=this.node;n&&(this.unmount=n5(n,(l,r)=>(Ox(this.node,r,"Start"),o=>Ox(this.node,o,"End"))))}unmount(){}}class z3 extends An{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=Si(xi(this.node.current,"focus",()=>this.onFocus()),xi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zx(a,n,l){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",l==="Start");const o="onTap"+(l==="End"?"":l),f=r[o];f&&Xe.postRender(()=>f(n,Ni(n)))}class _3 extends An{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=c5(n,(o,f)=>(zx(this.node,f,"Start"),(h,{success:m})=>zx(this.node,h,m?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const nf=new WeakMap,kd=new WeakMap,V3=a=>{const n=nf.get(a.target);n&&n(a)},U3=a=>{a.forEach(V3)};function L3({root:a,...n}){const l=a||document;kd.has(l)||kd.set(l,{});const r=kd.get(l),o=JSON.stringify(n);return r[o]||(r[o]=new IntersectionObserver(U3,{root:a,...n})),r[o]}function B3(a,n,l){const r=L3(n);return nf.set(a,l),r.observe(a),()=>{nf.delete(a),r.unobserve(a)}}const H3={some:0,all:1};class Y3 extends An{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:l,margin:r,amount:o="some",once:f}=n,h={root:l?l.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:H3[o]},m=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),w=g?y:v;w&&w(p)};return B3(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:l}=this.node;["amount","margin","root"].some(q3(n,l))&&this.startObserver()}unmount(){}}function q3({viewport:a={}},{viewport:n={}}={}){return l=>a[l]!==n[l]}const G3={inView:{Feature:Y3},tap:{Feature:_3},focus:{Feature:z3},hover:{Feature:O3}},P3={layout:{ProjectionNode:mb,MeasureLayout:Eb}},X3={...m3,...G3,...R3,...P3},We=c3(X3,u3),_x=[{name:"首页",path:"/",icon:Ek},{name:"拓展",path:"/expansion",icon:Ny},{name:"商机",path:"/opportunities",icon:tk},{name:"工作",path:"/work",icon:lk},{name:"我的",path:"/profile",icon:hi}];function Q3(){const a=pa(),{theme:n,setTheme:l}=qy();return d.jsxs("div",{className:"flex h-screen bg-slate-50 dark:bg-slate-950 text-slate-900 dark:text-slate-50 transition-colors duration-300",children:[d.jsxs("aside",{className:"hidden w-64 flex-col border-r border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 md:flex transition-colors duration-300",children:[d.jsxs("div",{className:"flex h-16 items-center justify-between border-b border-slate-200 dark:border-slate-800 px-6",children:[d.jsx("span",{className:"text-lg font-bold bg-gradient-to-r from-violet-600 to-indigo-600 bg-clip-text text-transparent",children:"紫光汇智CRM"}),d.jsx("button",{onClick:()=>l(n==="dark"?"light":"dark"),className:"rounded-full p-2 text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-slate-800 transition-colors",children:n==="dark"?d.jsx(jy,{className:"h-4 w-4"}):d.jsx(wy,{className:"h-4 w-4"})})]}),d.jsx("nav",{className:"flex-1 space-y-2 p-4",children:_x.map(r=>{const o=a.pathname===r.path||r.path!=="/"&&a.pathname.startsWith(r.path);return d.jsxs(mo,{to:r.path,className:ni("flex items-center gap-3 rounded-xl px-3 py-3 text-sm font-medium transition-all duration-200",o?"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400 shadow-sm":"text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800/50 hover:text-slate-900 dark:hover:text-slate-50"),children:[d.jsx(r.icon,{className:ni("h-5 w-5 transition-transform",o&&"scale-110")}),r.name]},r.name)})})]}),d.jsx("main",{className:"flex-1 overflow-y-auto pb-20 md:pb-0 relative",children:d.jsx("div",{className:"mx-auto max-w-5xl p-4 md:p-8",children:d.jsx(Xa,{mode:"wait",children:d.jsx(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:d.jsx(iS,{})},a.pathname)})})}),d.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-50 flex h-16 border-t border-slate-200 dark:border-slate-800 bg-white/80 dark:bg-slate-900/80 backdrop-blur-xl pb-safe md:hidden transition-colors duration-300",children:_x.map(r=>{const o=a.pathname===r.path||r.path!=="/"&&a.pathname.startsWith(r.path);return d.jsxs(mo,{to:r.path,className:ni("flex flex-1 flex-col items-center justify-center gap-1 text-[10px] font-medium transition-all duration-200",o?"text-violet-600 dark:text-violet-400":"text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-50"),children:[d.jsx("div",{className:ni("flex h-8 w-8 items-center justify-center rounded-full transition-all duration-200",o?"bg-violet-100 dark:bg-violet-500/20":"bg-transparent"),children:d.jsx(r.icon,{className:ni("h-5 w-5",o&&"fill-violet-100 dark:fill-violet-500/20")})}),r.name]},r.name)})})]})}const F3="/login";async function Ke(a,n,l=!1){const r=new Headers(n==null?void 0:n.headers);if(!r.has("Content-Type")&&(n!=null&&n.body)&&!(n.body instanceof FormData)&&r.set("Content-Type","application/json"),l){const h=localStorage.getItem("accessToken");h&&r.set("Authorization",`Bearer ${h}`);const m=Z3();m!==void 0&&r.set("X-User-Id",String(m))}const o=await fetch(a,{...n,headers:r});if(o.status===401||o.status===403)throw Eo(),window.location.href=`${F3}?timeout=1`,new Error("登录已失效,请重新登录");let f=null;try{f=await o.json()}catch{if(!o.ok)throw new Error(`请求失败(${o.status})`)}if(!o.ok)throw new Error((f==null?void 0:f.msg)||(f==null?void 0:f.message)||`请求失败(${o.status})`);if(!f)throw new Error("接口返回为空");if(f.code!=="0")throw new Error(f.msg||"请求失败");return f.data}function Cb(){return!!localStorage.getItem("accessToken")}function Eo(){localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("username"),localStorage.removeItem("availableTenants"),localStorage.removeItem("activeTenantId"),sessionStorage.removeItem("userProfile")}function K3(a,n){if(localStorage.setItem("accessToken",a.accessToken),localStorage.setItem("refreshToken",a.refreshToken),localStorage.setItem("username",n),a.availableTenants){localStorage.setItem("availableTenants",JSON.stringify(a.availableTenants));try{const l=JSON.parse(atob(a.accessToken.split(".")[1]));(l==null?void 0:l.tenantId)!==void 0&&localStorage.setItem("activeTenantId",String(l.tenantId))}catch{localStorage.removeItem("activeTenantId")}}}function Z3(){try{const a=sessionStorage.getItem("userProfile");if(a){const n=JSON.parse(a);if(typeof n.userId=="number"&&Number.isFinite(n.userId))return n.userId}}catch{}try{const a=localStorage.getItem("accessToken");if(!a)return;const n=JSON.parse(atob(a.split(".")[1]));if(typeof n.userId=="number"&&Number.isFinite(n.userId))return n.userId}catch{return}}async function J3(){return Ke("/api/sys/auth/captcha")}async function $3(a){return Ke("/api/sys/auth/login",{method:"POST",body:JSON.stringify(a)})}async function W3(a,n){const l=new URLSearchParams({key:a});return l.set("defaultValue",n),Ke(`/api/sys/api/params/value?${l.toString()}`)}async function I3(){return Ke("/api/sys/api/open/platform/config")}async function fo(){return Ke("/api/sys/api/users/me",void 0,!0)}async function eE(){return Ke("/api/dashboard/home",void 0,!0)}async function jd(){return Ke("/api/profile/overview",void 0,!0)}async function tE(a){return Ke("/api/sys/api/users/profile",{method:"PUT",body:JSON.stringify(a)},!0)}async function aE(a){return Ke("/api/sys/api/users/password",{method:"PUT",body:JSON.stringify(a)},!0)}async function nE(){return Ke("/api/work/overview",void 0,!0)}async function sE(a,n){const l=new URLSearchParams({lat:String(a),lon:String(n)});return Ke(`/api/work/reverse-geocode?${l.toString()}`,void 0,!0)}async function lE(a){return Ke("/api/work/checkins",{method:"POST",body:JSON.stringify(a)},!0)}async function iE(a){const n=new FormData;return n.append("file",a),Ke("/api/work/checkin-photos",{method:"POST",body:n},!0)}async function rE(a){return Ke("/api/work/daily-reports",{method:"POST",body:JSON.stringify(a)},!0)}async function Vx(a,n){const l=new URLSearchParams;a&&a.trim()&&l.set("keyword",a.trim()),n&&n.trim()&&n!=="全部"&&l.set("stage",n.trim());const r=l.toString();return Ke(`/api/opportunities/overview${r?`?${r}`:""}`,void 0,!0)}async function oE(a){return Ke("/api/opportunities",{method:"POST",body:JSON.stringify(a)},!0)}async function cE(a,n){return Ke(`/api/opportunities/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function uE(a,n){return Ke(`/api/opportunities/${a}/followups`,{method:"POST",body:JSON.stringify(n)},!0)}async function dE(a){const n=new URLSearchParams;a&&a.trim()&&n.set("keyword",a.trim());const l=n.toString();return Ke(`/api/expansion/overview${l?`?${l}`:""}`,void 0,!0)}async function fE(){return Ke("/api/expansion/meta",void 0,!0)}async function hE(a){return Ke("/api/expansion/sales",{method:"POST",body:JSON.stringify(a)},!0)}async function mE(a){return Ke("/api/expansion/channel",{method:"POST",body:JSON.stringify(a)},!0)}async function pE(a,n){return Ke(`/api/expansion/sales/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function gE(a,n){return Ke(`/api/expansion/channel/${a}`,{method:"PUT",body:JSON.stringify(n)},!0)}async function xE(a,n,l){return Ke(`/api/expansion/${a}/${n}/followups`,{method:"POST",body:JSON.stringify(l)},!0)}const $r=5,yE=[{name:"本月新增商机",metricKey:"monthlyOpportunities",icon:ej,color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-500/20"},{name:"跟进中客户",metricKey:"followingCustomers",icon:Ny,color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-500/20"},{name:"已成单项目",metricKey:"wonProjects",icon:yy,color:"text-violet-600 dark:text-violet-400",bg:"bg-violet-100 dark:bg-violet-500/20"},{name:"本月打卡天数",metricKey:"monthlyCheckins",icon:fk,color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-500/20"}];function vE(){var T,E,M,A;const[a,n]=S.useState({}),[l,r]=S.useState(!1),[o,f]=S.useState(!1);S.useEffect(()=>{let z=!1;async function O(){try{const H=await eE();z||n(H??{})}catch{z||n({})}}return O(),()=>{z=!0}},[]),S.useEffect(()=>{r(!1),f(!1)},[a.todos,a.activities]);const h=new Map((a.stats??[]).map(z=>[z.metricKey,z.value])),m=yE.map(z=>({...z,value:h.get(z.metricKey)})),p=(T=a.todos)!=null&&T.length?a.todos:[{id:0,title:"无"}],g=(E=a.activities)!=null&&E.length?a.activities:[{id:0,title:"无",content:"无",timeText:"无"}],y=l?p:p.slice(0,$r),v=o?g:g.slice(0,$r),w=p.length>$r&&((M=p[0])==null?void 0:M.id)!==0,k=g.length>$r&&((A=g[0])==null?void 0:A.id)!==0;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),d.jsxs("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:["欢迎回来,",a.realName||"无","。今天是你入职的第 ",a.onboardingDays??0," 天。"]})]}),d.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:m.map((z,O)=>d.jsx(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:O*.1},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-5 shadow-sm backdrop-blur-sm transition-all hover:shadow-md dark:hover:bg-slate-900",children:d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:`flex h-12 w-12 items-center justify-center rounded-xl ${z.bg}`,children:d.jsx(z.icon,{className:`h-6 w-6 ${z.color}`})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-500 dark:text-slate-400",children:z.name}),d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:z.value??0})]})]})},z.name))}),d.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[d.jsxs(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[d.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"待办事项"}),d.jsx("ul",{className:"space-y-3",children:y.map((z,O)=>d.jsxs("li",{className:"group flex cursor-pointer items-center gap-3 rounded-xl border border-slate-50 dark:border-slate-800/50 p-3 transition-all hover:bg-slate-50 dark:hover:bg-slate-800",children:[d.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-full border-2 border-slate-300 dark:border-slate-600 group-hover:border-violet-500 dark:group-hover:border-violet-400 transition-colors"}),d.jsx("span",{className:"text-sm text-slate-700 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-white transition-colors",children:z.title||"无"})]},z.id??O))}),w&&!l?d.jsx("button",{type:"button",onClick:()=>r(!0),className:"mt-4 w-full rounded-xl border border-dashed border-slate-200 dark:border-slate-700 px-3 py-2 text-sm font-medium text-slate-500 transition-colors hover:border-violet-300 hover:text-violet-600 dark:text-slate-400 dark:hover:border-violet-700 dark:hover:text-violet-400",children:"..."}):null]}),d.jsxs(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[d.jsx("h2",{className:"mb-4 text-lg font-semibold text-slate-900 dark:text-white",children:"最新动态"}),d.jsx("div",{className:"space-y-5",children:v.map((z,O)=>d.jsxs("div",{className:"flex gap-4",children:[d.jsxs("div",{className:"relative mt-1 flex h-3 w-3 items-center justify-center",children:[d.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-violet-400 opacity-20"}),d.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-violet-500"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white",children:z.title||"无"}),d.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:z.content||"无"}),d.jsx("p",{className:"mt-1 text-[10px] text-slate-400 dark:text-slate-500",children:z.timeText||"无"})]})]},z.id??O))}),k&&!o?d.jsx("button",{type:"button",onClick:()=>f(!0),className:"mt-4 w-full rounded-xl border border-dashed border-slate-200 dark:border-slate-700 px-3 py-2 text-sm font-medium text-slate-500 transition-colors hover:border-violet-300 hover:text-violet-600 dark:text-slate-400 dark:hover:border-violet-700 dark:hover:text-violet-400",children:"..."}):null]})]})]})}const Wr={candidateName:"",mobile:"",email:"",industry:"",title:"",intentLevel:"medium",stage:"initial_contact",hasDesktopExp:!1,inProgress:!0,employmentStatus:"active",expectedJoinDate:"",remark:""},Ir={channelName:"",province:"",industry:"",contactName:"",contactTitle:"",contactMobile:"",stage:"initial_contact",landedFlag:!1,expectedSignDate:"",remark:""};function sf(a=new Date){const n=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-n).toISOString().slice(0,16)}const Ux={followUpType:"电话沟通",content:"",nextAction:"",followUpTime:sf()};function Nd({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(We.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-[70] bg-slate-900/35 backdrop-blur-sm dark:bg-slate-950/70"}),d.jsx(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-[80] p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto flex h-full w-full items-end sm:max-w-3xl sm:items-center",children:d.jsxs("div",{className:"flex h-[92dvh] w-full flex-col overflow-hidden rounded-t-3xl border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:h-full sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n})]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(nl,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o})]})})})]})}function bE(){const[a,n]=S.useState("sales"),[l,r]=S.useState(null),[o,f]=S.useState(""),[h,m]=S.useState([]),[p,g]=S.useState([]),[y,v]=S.useState([]),[w,k]=S.useState(0),[T,E]=S.useState(!1),[M,A]=S.useState(!1),[z,O]=S.useState(!1),[H,X]=S.useState(!1),[ne,F]=S.useState(""),[B,$]=S.useState(""),[ee,re]=S.useState(""),[me,Re]=S.useState(Wr),[Se,ge]=S.useState(Ir),[_,J]=S.useState(Wr),[W,he]=S.useState(Ir),[K,N]=S.useState(Ux),q=T||M||z;S.useEffect(()=>{let Z=!1;async function ve(){try{const I=await fE();Z||v(I.departments??[])}catch{Z||v([])}}return ve(),()=>{Z=!0}},[]),S.useEffect(()=>{let Z=!1;async function ve(){try{const I=await dE(o);if(Z)return;m(I.salesItems??[]),g(I.channelItems??[]),r(null)}catch{Z||(m([]),g([]),r(null))}}return ve(),()=>{Z=!0}},[o,w]);const R=(l==null?void 0:l.followUps)??[],te=(Z,ve)=>{Re(I=>({...I,[Z]:ve}))},se=(Z,ve)=>{ge(I=>({...I,[Z]:ve}))},ue=(Z,ve)=>{J(I=>({...I,[Z]:ve}))},ke=(Z,ve)=>{he(I=>({...I,[Z]:ve}))},Ue=(Z,ve)=>{N(I=>({...I,[Z]:ve}))},ye=()=>{E(!1),F(""),Re(Wr),ge(Ir)},jt=()=>{A(!1),$(""),J(Wr),he(Ir)},gt=()=>{O(!1),re(""),N({...Ux,followUpTime:sf()})},le=()=>{F(""),E(!0)},ae=()=>{l&&($(""),l.type==="sales"?J({candidateName:l.name??"",mobile:l.phone==="无"?"":l.phone??"",email:l.email==="无"?"":l.email??"",targetDeptId:l.targetDeptId,industry:l.industry==="无"?"":l.industry??"",title:l.title==="无"?"":l.title??"",intentLevel:l.intentLevel??"medium",stage:l.stageCode??"initial_contact",hasDesktopExp:!!l.hasExp,inProgress:!!l.inProgress,employmentStatus:l.employmentStatus??"active",expectedJoinDate:l.expectedJoinDate==="无"?"":l.expectedJoinDate??"",remark:l.notes==="无"?"":l.notes??""}):he({channelName:l.name??"",province:l.province==="无"?"":l.province??"",industry:l.industry==="无"?"":l.industry??"",annualRevenue:l.annualRevenue?Number(l.annualRevenue):void 0,staffSize:l.size??void 0,contactName:l.contact==="无"?"":l.contact??"",contactTitle:l.contactTitle==="无"?"":l.contactTitle??"",contactMobile:l.phone==="无"?"":l.phone??"",stage:l.stageCode??"initial_contact",landedFlag:!!l.landed,expectedSignDate:l.expectedSignDate==="无"?"":l.expectedSignDate??"",remark:l.notes==="无"?"":l.notes??""}),A(!0))},be=()=>{l&&(re(""),N({followUpType:"电话沟通",content:"",nextAction:"",followUpTime:sf()}),O(!0))},Ie=async()=>{if(!H){X(!0),F("");try{a==="sales"?await hE({...me,expectedJoinDate:me.expectedJoinDate||void 0,targetDeptId:me.targetDeptId||void 0}):await mE({...Se,annualRevenue:Se.annualRevenue||void 0,staffSize:Se.staffSize||void 0,expectedSignDate:Se.expectedSignDate||void 0}),ye(),k(Z=>Z+1)}catch(Z){F(Z instanceof Error?Z.message:"新增失败")}finally{X(!1)}}},nt=async()=>{if(!(!l||H)){X(!0),$("");try{l.type==="sales"?await pE(l.id,{..._,expectedJoinDate:_.expectedJoinDate||void 0,targetDeptId:_.targetDeptId||void 0}):await gE(l.id,{...W,annualRevenue:W.annualRevenue||void 0,staffSize:W.staffSize||void 0,expectedSignDate:W.expectedSignDate||void 0}),jt(),r(null),k(Z=>Z+1)}catch(Z){$(Z instanceof Error?Z.message:"编辑失败")}finally{X(!1)}}},ra=async()=>{if(!(!l||H)){X(!0),re("");try{await xE(l.type,l.id,{...K,nextAction:K.nextAction||void 0,followUpTime:new Date(K.followUpTime).toISOString()}),gt(),r(null),k(Z=>Z+1)}catch(Z){re(Z instanceof Error?Z.message:"新增跟进失败")}finally{X(!1)}}},Nt=()=>d.jsx("div",{className:"rounded-2xl border border-slate-100 bg-white p-10 text-center text-sm text-slate-400 shadow-sm backdrop-blur-sm dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-500",children:"暂无"}),ss=Z=>{n(Z),r(null)},ls=(Z,ve)=>d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"候选人姓名"}),d.jsx("input",{value:Z.candidateName,onChange:I=>ve("candidateName",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系电话"}),d.jsx("input",{value:Z.mobile,onChange:I=>ve("mobile",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"邮箱"}),d.jsx("input",{value:Z.email,onChange:I=>ve("email",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"目标部门"}),d.jsxs("select",{value:Z.targetDeptId??"",onChange:I=>ve("targetDeptId",I.target.value?Number(I.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"",children:"请选择"}),y.map(I=>d.jsx("option",{value:I.id,children:I.name||"无"},I.id))]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"负责行业"}),d.jsx("input",{value:Z.industry,onChange:I=>ve("industry",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"岗位名称"}),d.jsx("input",{value:Z.title,onChange:I=>ve("title",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"意向度"}),d.jsxs("select",{value:Z.intentLevel,onChange:I=>ve("intentLevel",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"high",children:"高"}),d.jsx("option",{value:"medium",children:"中"}),d.jsx("option",{value:"low",children:"低"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsxs("select",{value:Z.stage,onChange:I=>ve("stage",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"initial_contact",children:"初步沟通"}),d.jsx("option",{value:"solution_discussion",children:"方案交流"}),d.jsx("option",{value:"bidding",children:"招投标"}),d.jsx("option",{value:"business_negotiation",children:"商务谈判"}),d.jsx("option",{value:"won",children:"已成交"}),d.jsx("option",{value:"lost",children:"已放弃"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"人员状态"}),d.jsxs("select",{value:Z.employmentStatus,onChange:I=>ve("employmentStatus",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"active",children:"在职"}),d.jsx("option",{value:"left",children:"离职"}),d.jsx("option",{value:"joined",children:"已入职"}),d.jsx("option",{value:"abandoned",children:"已放弃"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计入职"}),d.jsx("input",{type:"date",value:Z.expectedJoinDate,onChange:I=>ve("expectedJoinDate",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"云桌面经验"}),d.jsx("input",{type:"checkbox",checked:!!Z.hasDesktopExp,onChange:I=>ve("hasDesktopExp",I.target.checked)})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"持续跟进"}),d.jsx("input",{type:"checkbox",checked:!!Z.inProgress,onChange:I=>ve("inProgress",I.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:Z.remark,onChange:I=>ve("remark",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),is=(Z,ve)=>d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"渠道名称"}),d.jsx("input",{value:Z.channelName,onChange:I=>ve("channelName",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"省份"}),d.jsx("input",{value:Z.province,onChange:I=>ve("province",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"行业"}),d.jsx("input",{value:Z.industry,onChange:I=>ve("industry",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"年营收"}),d.jsx("input",{type:"number",value:Z.annualRevenue??"",onChange:I=>ve("annualRevenue",I.target.value?Number(I.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"公司人数"}),d.jsx("input",{type:"number",value:Z.staffSize??"",onChange:I=>ve("staffSize",I.target.value?Number(I.target.value):void 0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系人"}),d.jsx("input",{value:Z.contactName,onChange:I=>ve("contactName",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系人职务"}),d.jsx("input",{value:Z.contactTitle,onChange:I=>ve("contactTitle",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"联系电话"}),d.jsx("input",{value:Z.contactMobile,onChange:I=>ve("contactMobile",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsxs("select",{value:Z.stage,onChange:I=>ve("stage",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"initial_contact",children:"初步接触"}),d.jsx("option",{value:"solution_discussion",children:"方案交流"}),d.jsx("option",{value:"business_negotiation",children:"合作洽谈"}),d.jsx("option",{value:"bidding",children:"招投标"}),d.jsx("option",{value:"won",children:"已合作"}),d.jsx("option",{value:"lost",children:"已终止"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计签约"}),d.jsx("input",{type:"date",value:Z.expectedSignDate,onChange:I=>ve("expectedSignDate",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 sm:col-span-2 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"是否已落地"}),d.jsx("input",{type:"checkbox",checked:!!Z.landedFlag,onChange:I=>ve("landedFlag",I.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:Z.remark,onChange:I=>ve("remark",I.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3",children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"拓展管理"}),d.jsxs("button",{onClick:le,className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm transition-all hover:bg-violet-700 active:scale-95",children:[d.jsx(Sy,{className:"h-4 w-4"}),d.jsx("span",{className:"hidden sm:inline",children:"新增"})]})]}),d.jsxs("div",{className:"flex rounded-xl border border-slate-200/50 bg-slate-100 p-1 backdrop-blur-sm dark:border-slate-800/50 dark:bg-slate-900/50",children:[d.jsx("button",{onClick:()=>ss("sales"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${a==="sales"?"bg-white text-violet-600 shadow-sm dark:bg-slate-800 dark:text-violet-400":"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-white"}`,children:"销售人员拓展"}),d.jsx("button",{onClick:()=>ss("channel"),className:`flex-1 rounded-lg py-2 text-sm font-medium transition-all duration-200 ${a==="channel"?"bg-white text-violet-600 shadow-sm dark:bg-slate-800 dark:text-violet-400":"text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-white"}`,children:"渠道拓展"})]}),d.jsxs("div",{className:"group relative",children:[d.jsx(ky,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400 transition-colors group-focus-within:text-violet-500"}),d.jsx("input",{type:"text",placeholder:"搜索姓名、渠道名称、行业...",value:o,onChange:Z=>f(Z.target.value),className:"w-full rounded-xl border border-slate-200 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-900 outline-none transition-all placeholder:text-slate-400 focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50 dark:text-white dark:placeholder:text-slate-500"})]}),d.jsx("div",{className:"space-y-4",children:a==="sales"?h.length>0?h.map((Z,ve)=>d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ve*.05},onClick:()=>r(Z),className:"cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:Z.name||"无"}),d.jsxs("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[Z.dept||"无"," · ",Z.title||"无"]})]}),d.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${Z.active?"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400":"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-300"}`,children:Z.active?"在职":"离职"})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(sd,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),Z.industry||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"意向:"}),d.jsx("span",{className:Z.intent==="高"?"font-medium text-rose-600 dark:text-rose-400":"",children:Z.intent||"无"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),Z.stage||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"云桌面经验:"}),Z.hasExp?"有":"无"]})]}),d.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 pt-3 dark:border-slate-800/50",children:d.jsx("button",{className:"text-sm font-medium text-violet-600 transition-colors hover:text-violet-700 dark:text-violet-400 dark:hover:text-violet-300",children:"查看详情与跟进"})})]},Z.id)):Nt():p.length>0?p.map((Z,ve)=>d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ve*.05},onClick:()=>r(Z),className:"cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:Z.name||"无"}),d.jsxs("div",{className:"mt-1 flex items-center gap-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsx(Rd,{className:"h-3.5 w-3.5"}),Z.province||"无"]})]}),d.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-medium ${Z.landed?"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-400":"bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-400"}`,children:Z.landed?"已落地":"未落地"})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(sd,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),Z.industry||"无"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(hi,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),Z.contact||"无"]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(no,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),Z.phone||"无"]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"阶段:"}),d.jsx("span",{className:"font-medium text-slate-900 dark:text-white",children:Z.stage||"无"})]})]}),d.jsx("div",{className:"mt-4 flex justify-end border-t border-slate-50 pt-3 dark:border-slate-800/50",children:d.jsx("button",{className:"text-sm font-medium text-violet-600 transition-colors hover:text-violet-700 dark:text-violet-400 dark:hover:text-violet-300",children:"查看详情与跟进"})})]},Z.id)):Nt()}),d.jsx(Xa,{children:T&&d.jsxs(Nd,{title:`新增${a==="sales"?"销售人员拓展":"渠道拓展"}`,subtitle:"支持电脑和手机填写,提交后自动刷新列表。",onClose:ye,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:ye,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void Ie(),disabled:H,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:H?"提交中...":"确认新增"})]}),children:[a==="sales"?ls(me,te):is(Se,se),ne?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:ne}):null]})}),d.jsx(Xa,{children:M&&l&&d.jsxs(Nd,{title:`编辑${l.type==="sales"?"销售人员拓展":"渠道拓展"}`,subtitle:"修改后会实时更新本人名下的拓展资料。",onClose:jt,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:jt,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void nt(),disabled:H,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:H?"保存中...":"保存修改"})]}),children:[l.type==="sales"?ls(_,ue):is(W,ke),B?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:B}):null]})}),d.jsx(Xa,{children:z&&l&&d.jsxs(Nd,{title:"新增跟进",subtitle:"仅允许为当前登录人名下的拓展对象写入跟进记录。",onClose:gt,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:gt,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void ra(),disabled:H,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:H?"提交中...":"确认提交"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进类型"}),d.jsxs("select",{value:K.followUpType,onChange:Z=>Ue("followUpType",Z.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"电话沟通",children:"电话沟通"}),d.jsx("option",{value:"拜访面谈",children:"拜访面谈"}),d.jsx("option",{value:"微信触达",children:"微信触达"}),d.jsx("option",{value:"方案沟通",children:"方案沟通"}),d.jsx("option",{value:"其他",children:"其他"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进时间"}),d.jsx("input",{type:"datetime-local",value:K.followUpTime,onChange:Z=>Ue("followUpTime",Z.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进内容"}),d.jsx("textarea",{rows:5,value:K.content,onChange:Z=>Ue("content",Z.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"下一步动作"}),d.jsx("input",{value:K.nextAction,onChange:Z=>Ue("nextAction",Z.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),ee?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:ee}):null]})}),d.jsx(Xa,{children:l&&d.jsxs(d.Fragment,{children:[d.jsx(We.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>r(null),className:`fixed inset-0 z-40 bg-slate-900/20 backdrop-blur-sm transition-opacity dark:bg-slate-900/60 ${q?"pointer-events-none opacity-30":""}`}),d.jsxs(We.div,{initial:{x:"100%",y:0},animate:{x:0,y:0},exit:{x:"100%",y:0},transition:{type:"spring",damping:25,stiffness:200},className:`fixed inset-x-0 bottom-0 z-50 flex h-[88dvh] w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-opacity dark:border-slate-800 dark:bg-slate-900 sm:inset-y-0 sm:right-0 sm:left-auto sm:h-full sm:max-w-md sm:rounded-none sm:rounded-l-3xl sm:border-l ${q?"pointer-events-none opacity-20":""}`,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"h-1.5 w-10 rounded-full bg-slate-200 sm:hidden dark:bg-slate-700"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:l.type==="sales"?"销售拓展详情":"渠道拓展详情"})]}),d.jsx("button",{onClick:()=>r(null),className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(nl,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto px-5 py-5 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold text-slate-900 dark:text-white",children:l.name||"无"}),d.jsx("p",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:l.type==="sales"?`${l.dept||"无"} · ${l.title||"无"}`:`${l.province||"无"} · ${l.industry||"无"}`}),d.jsxs("div",{className:"mt-3 flex gap-2",children:[d.jsx("span",{className:"rounded-full bg-violet-50 px-2.5 py-1 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:l.stage||"无"}),l.type==="sales"?d.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${l.active?"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400":"bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400"}`,children:l.active?"在职":"离职"}):d.jsx("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${l.landed?"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400":"bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400"}`,children:l.landed?"已落地":"未落地"})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-xl border border-slate-100 bg-slate-50/50 p-4 text-sm dark:border-slate-800 dark:bg-slate-800/20",children:[l.type==="sales"?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(no,{className:"h-3 w-3"})," 联系电话"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.phone||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(by,{className:"h-3 w-3"})," 邮箱"]}),d.jsx("p",{className:"truncate font-medium text-slate-900 dark:text-white",title:l.email,children:l.email||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(sd,{className:"h-3 w-3"})," 负责行业"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.industry||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"云桌面经验"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.hasExp?"有":"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"意向度"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.intent||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计入职"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.expectedJoinDate||"无"})]})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(hi,{className:"h-3 w-3"})," 联系人"]}),d.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[l.contact||"无"," (",l.contactTitle||"无",")"]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(no,{className:"h-3 w-3"})," 联系电话"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.phone||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"营收规模"}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.revenue||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"公司人数"}),d.jsxs("p",{className:"font-medium text-slate-900 dark:text-white",children:[l.size??0,"人"]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计签约"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:l.expectedSignDate||"无"})]})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"备注说明"}),d.jsx("p",{className:"leading-relaxed font-medium text-slate-900 dark:text-white",children:l.notes||"无"})]})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(vy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),d.jsx("button",{onClick:be,className:"text-xs font-medium text-violet-600 hover:text-violet-700 dark:text-violet-400",children:"添加记录"})]}),R.length>0?d.jsx("div",{className:"relative space-y-6 border-l-2 border-slate-100 pl-4 dark:border-slate-800",children:R.map(Z=>d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute -left-[21px] mt-1.5 h-2.5 w-2.5 rounded-full bg-violet-500 ring-4 ring-white dark:ring-slate-900"}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[d.jsx("span",{className:"rounded bg-violet-50 px-2 py-0.5 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:Z.type||"无"}),d.jsx("span",{className:"text-xs text-slate-400",children:Z.date||"无"})]}),d.jsx("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:Z.content||"无"}),d.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["跟进人: ",Z.user||"无"]})]})]},Z.id))}):d.jsx("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-6 text-center text-sm text-slate-400 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-500",children:"暂无"})]})]}),d.jsx("div",{className:"sticky bottom-0 bg-slate-50/95 p-4 backdrop-blur sm:static dark:bg-slate-900/90",children:d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[d.jsx("button",{onClick:ae,className:"flex-1 rounded-xl border border-slate-200 bg-white px-4 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"编辑资料"}),d.jsx("button",{onClick:be,className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700",children:"写跟进"})]})})]})]})})]})}const Lx=["全部","初步沟通","方案交流","招投标","商务谈判","已成交"],Td={opportunityName:"",customerName:"",amount:0,expectedCloseDate:"",confidencePct:50,stage:"初步沟通",opportunityType:"新建",productType:"VDI云桌面",source:"主动开发",pushedToOms:!1,description:""};function lf(a=new Date){const n=a.getTimezoneOffset()*6e4;return new Date(a.getTime()-n).toISOString().slice(0,16)}const Bx={followUpType:"电话沟通",content:"",nextAction:"",followUpTime:lf()};function Hx(a){return a==null||Number.isNaN(Number(a))?"0":new Intl.NumberFormat("zh-CN").format(Number(a))}function wE(a){return{opportunityName:a.name||"",customerName:a.client||"",amount:a.amount||0,expectedCloseDate:a.date||"",confidencePct:a.confidence??50,stage:a.stage||"初步沟通",opportunityType:a.type||"新建",productType:a.product||"VDI云桌面",source:a.source||"主动开发",pushedToOms:!!a.pushedToOms,description:a.notes||""}}function Yx({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(We.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-[70] bg-slate-900/35 backdrop-blur-sm dark:bg-slate-950/70"}),d.jsx(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-[80] p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto flex h-full w-full items-end sm:max-w-3xl sm:items-center",children:d.jsxs("div",{className:"flex h-[92dvh] w-full flex-col overflow-hidden rounded-t-3xl border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:h-full sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n})]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(nl,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o})]})})})]})}function SE(){const[a,n]=S.useState("全部"),[l,r]=S.useState(""),[o,f]=S.useState(null),[h,m]=S.useState(!1),[p,g]=S.useState(!1),[y,v]=S.useState(!1),[w,k]=S.useState(!1),[T,E]=S.useState(""),[M,A]=S.useState(""),[z,O]=S.useState([]),[H,X]=S.useState(Td),[ne,F]=S.useState(Bx),B=h||p||y;S.useEffect(()=>{let R=!1;async function te(){try{const se=await Vx(l,a);R||(O(se.items??[]),f(null))}catch{R||(O([]),f(null))}}return te(),()=>{R=!0}},[l,a]);const $=(o==null?void 0:o.followUps)??[],ee=R=>R>=80?"text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border-emerald-200 dark:border-emerald-500/20":R>=50?"text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 border-amber-200 dark:border-amber-500/20":"text-rose-600 dark:text-rose-400 bg-rose-50 dark:bg-rose-500/10 border-rose-200 dark:border-rose-500/20",re=(R,te)=>{X(se=>({...se,[R]:te}))},me=(R,te)=>{F(se=>({...se,[R]:te}))},Re=()=>{E(""),X(Td),m(!0)},Se=()=>{m(!1),g(!1),k(!1),E(""),X(Td)},ge=()=>{v(!1),A(""),F({...Bx,followUpTime:lf()})},_=async R=>{const se=(await Vx(l,a)).items??[];O(se),R&&f(se.find(ue=>ue.id===R)??null)},J=async()=>{if(!w){k(!0),E("");try{await oE(H),await _(),Se()}catch(R){E(R instanceof Error?R.message:"新增商机失败"),k(!1)}}},W=()=>{o&&(E(""),X(wE(o)),g(!0))},he=async()=>{if(!(!o||w)){k(!0),E("");try{await cE(o.id,H),await _(o.id),Se()}catch(R){E(R instanceof Error?R.message:"编辑商机失败"),k(!1)}}},K=()=>{o&&(A(""),F({followUpType:"电话沟通",content:"",nextAction:"",followUpTime:lf()}),v(!0))},N=async()=>{if(!(!o||w)){k(!0),A("");try{await uE(o.id,{...ne,nextAction:ne.nextAction||void 0,followUpTime:new Date(ne.followUpTime).toISOString()}),await _(),ge(),f(null),k(!1)}catch(R){A(R instanceof Error?R.message:"新增跟进失败"),k(!1)}}},q=()=>d.jsx("div",{className:"rounded-2xl border border-slate-100 bg-white p-10 text-center text-sm text-slate-400 shadow-sm backdrop-blur-sm dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-500",children:"暂无商机数据,先新增一条试试。"});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("header",{className:"flex items-center justify-between gap-3",children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"商机储备"}),d.jsxs("button",{onClick:Re,className:"flex items-center gap-2 rounded-xl bg-violet-600 px-4 py-2 text-sm font-medium text-white shadow-sm transition-all hover:bg-violet-700 active:scale-95",children:[d.jsx(Sy,{className:"h-4 w-4"}),d.jsx("span",{className:"hidden sm:inline",children:"新增商机"})]})]}),d.jsxs("div",{className:"relative group",children:[d.jsx(ky,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-500 transition-colors"}),d.jsx("input",{type:"text",placeholder:"搜索项目名称、客户、编码...",value:l,onChange:R=>r(R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white py-2.5 pl-10 pr-4 text-sm text-slate-900 outline-none transition-all placeholder:text-slate-400 focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50 dark:text-white dark:placeholder:text-slate-500"})]}),d.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide",children:Lx.map(R=>d.jsx("button",{onClick:()=>n(R),className:`whitespace-nowrap rounded-full px-4 py-1.5 text-sm font-medium transition-all duration-200 ${a===R?"bg-slate-800 text-white shadow-sm dark:bg-violet-600":"border border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-800 dark:bg-slate-900/50 dark:text-slate-400 dark:hover:bg-slate-800"}`,children:R},R))}),d.jsx("div",{className:"space-y-4",children:z.length>0?z.map((R,te)=>d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:te*.05},onClick:()=>f(R),className:"group relative cursor-pointer rounded-2xl border border-slate-100 bg-white p-5 shadow-sm backdrop-blur-sm transition-all hover:border-violet-100 hover:shadow-md dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"pr-8",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:R.code||`#${R.id}`}),R.pushedToOms?d.jsx("span",{className:"rounded bg-violet-50 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:"已推OMS"}):null]}),d.jsx("h3",{className:"mt-1 line-clamp-1 text-lg font-semibold text-slate-900 dark:text-white",children:R.name||"未命名商机"})]}),d.jsxs("div",{className:`flex flex-col items-center justify-center rounded-lg border p-2 ${ee(R.confidence??0)}`,children:[d.jsxs("span",{className:"text-xs font-semibold",children:[R.confidence??0,"%"]}),d.jsx("span",{className:"text-[10px] opacity-80",children:"把握度"})]})]}),d.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-y-3 text-sm",children:[d.jsxs("div",{className:"col-span-2 flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(dg,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsx("span",{className:"truncate",children:R.client||"未命名客户"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(fg,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsxs("span",{className:"font-medium text-slate-900 dark:text-white",children:["¥",Hx(R.amount)]})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(po,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),R.date||"未设置"]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx(ug,{className:"h-4 w-4 shrink-0 text-slate-400 dark:text-slate-500"}),d.jsx("span",{className:"rounded-full bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300",children:R.stage||"初步沟通"})]}),d.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-300",children:[d.jsx("span",{className:"text-slate-400 dark:text-slate-500",children:"类型:"}),R.type||"新建"]})]}),d.jsx("div",{className:"mt-4 hidden items-center justify-end border-t border-slate-50 pt-3 md:flex dark:border-slate-800/50",children:d.jsxs("button",{className:"flex items-center text-sm font-medium text-violet-600 dark:text-violet-400",children:["查看详情 ",d.jsx(go,{className:"ml-1 h-4 w-4"})]})}),d.jsx("div",{className:"mt-4 flex items-center justify-end border-t border-slate-50 pt-3 md:hidden dark:border-slate-800/50",children:d.jsxs("button",{className:"flex items-center text-sm font-medium text-violet-600 dark:text-violet-400",children:["查看详情 ",d.jsx(go,{className:"ml-1 h-4 w-4"})]})})]},R.id)):q()}),d.jsx(Xa,{children:(h||p)&&d.jsxs(Yx,{title:p?"编辑商机":"新增商机",subtitle:p?"支持手机与电脑端修改商机资料,保存后会同步刷新详情与列表。":"支持手机与电脑端填写,提交后会自动刷新商机列表。",onClose:Se,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:Se,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void(p?he():J()),disabled:w,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:w?"提交中...":p?"保存修改":"确认新增"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机名称"}),d.jsx("input",{value:H.opportunityName,onChange:R=>re("opportunityName",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"客户名称"}),d.jsx("input",{value:H.customerName,onChange:R=>re("customerName",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机金额"}),d.jsx("input",{type:"number",min:"0",value:H.amount||"",onChange:R=>re("amount",Number(R.target.value)||0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"预计结单"}),d.jsx("input",{type:"date",value:H.expectedCloseDate,onChange:R=>re("expectedCloseDate",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"把握度"}),d.jsx("input",{type:"number",min:"0",max:"100",value:H.confidencePct,onChange:R=>re("confidencePct",Number(R.target.value)||0),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"阶段"}),d.jsx("select",{value:H.stage,onChange:R=>re("stage",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:Lx.filter(R=>R!=="全部").map(R=>d.jsx("option",{value:R,children:R},R))})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机类型"}),d.jsxs("select",{value:H.opportunityType,onChange:R=>re("opportunityType",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"新建",children:"新建"}),d.jsx("option",{value:"扩容",children:"扩容"}),d.jsx("option",{value:"替换",children:"替换"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"产品类别"}),d.jsxs("select",{value:H.productType,onChange:R=>re("productType",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"VDI云桌面",children:"VDI云桌面"}),d.jsx("option",{value:"VOI云桌面",children:"VOI云桌面"}),d.jsx("option",{value:"IDV云桌面",children:"IDV云桌面"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"商机来源"}),d.jsxs("select",{value:H.source,onChange:R=>re("source",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"主动开发",children:"主动开发"}),d.jsx("option",{value:"渠道推荐",children:"渠道推荐"}),d.jsx("option",{value:"市场活动",children:"市场活动"}),d.jsx("option",{value:"老客转介绍",children:"老客转介绍"})]})]}),d.jsxs("label",{className:"flex items-center justify-between rounded-xl border border-slate-200 px-4 py-3 sm:col-span-2 dark:border-slate-800",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"是否已推送 OMS"}),d.jsx("input",{type:"checkbox",checked:!!H.pushedToOms,onChange:R=>re("pushedToOms",R.target.checked)})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"备注说明"}),d.jsx("textarea",{rows:4,value:H.description||"",onChange:R=>re("description",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),T?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:T}):null]})}),d.jsx(Xa,{children:y&&o&&d.jsxs(Yx,{title:"新增跟进",subtitle:"商机跟进与拓展管理保持同样的填写方式,方便手机与电脑端使用。",onClose:ge,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:ge,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void N(),disabled:w,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:w?"提交中...":"确认提交"})]}),children:[d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进类型"}),d.jsxs("select",{value:ne.followUpType,onChange:R=>me("followUpType",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50",children:[d.jsx("option",{value:"电话沟通",children:"电话沟通"}),d.jsx("option",{value:"拜访面谈",children:"拜访面谈"}),d.jsx("option",{value:"微信触达",children:"微信触达"}),d.jsx("option",{value:"方案沟通",children:"方案沟通"}),d.jsx("option",{value:"其他",children:"其他"})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进时间"}),d.jsx("input",{type:"datetime-local",value:ne.followUpTime,onChange:R=>me("followUpTime",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"跟进内容"}),d.jsx("textarea",{rows:5,value:ne.content,onChange:R=>me("content",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2 sm:col-span-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"下一步动作"}),d.jsx("input",{value:ne.nextAction,onChange:R=>me("nextAction",R.target.value),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),M?d.jsx("div",{className:"mt-4 rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:M}):null]})}),d.jsx(Xa,{children:o&&d.jsxs(d.Fragment,{children:[d.jsx(We.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>f(null),className:`fixed inset-0 z-40 bg-slate-900/20 backdrop-blur-sm transition-opacity dark:bg-slate-900/60 ${B?"pointer-events-none opacity-30":""}`}),d.jsxs(We.div,{initial:{x:"100%",y:0},animate:{x:0,y:0},exit:{x:"100%",y:0},transition:{type:"spring",damping:25,stiffness:200},className:`fixed inset-x-0 bottom-0 z-50 flex h-[88dvh] w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-opacity dark:border-slate-800 dark:bg-slate-900 sm:inset-y-0 sm:right-0 sm:left-auto sm:h-full sm:max-w-md sm:rounded-none sm:rounded-l-3xl sm:border-l ${B?"pointer-events-none opacity-20":""}`,children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"h-1.5 w-10 rounded-full bg-slate-200 sm:hidden dark:bg-slate-700"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"商机详情"})]}),d.jsx("button",{onClick:()=>f(null),className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(nl,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"flex-1 space-y-8 overflow-y-auto px-5 py-5 sm:px-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[d.jsx("span",{className:"text-xs font-medium text-slate-400 dark:text-slate-500",children:o.code||`#${o.id}`}),o.pushedToOms?d.jsx("span",{className:"rounded bg-violet-50 px-1.5 py-0.5 text-[10px] font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:"已推OMS"}):null]}),d.jsx("h3",{className:"text-xl font-bold leading-tight text-slate-900 dark:text-white",children:o.name||"未命名商机"}),d.jsxs("div",{className:"mt-3 flex gap-2",children:[d.jsx("span",{className:"rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300",children:o.stage||"初步沟通"}),d.jsxs("span",{className:`rounded-full px-2.5 py-1 text-xs font-medium ${ee(o.confidence??0)}`,children:["把握度 ",o.confidence??0,"%"]})]})]}),d.jsxs("div",{className:"space-y-3",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-violet-500"}),"基本信息"]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-xl border border-slate-100 bg-slate-50/50 p-4 text-sm dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"col-span-2",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(dg,{className:"h-3 w-3"})," 客户名称"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.client||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(fg,{className:"h-3 w-3"})," 商机金额"]}),d.jsxs("p",{className:"font-medium text-rose-600 dark:text-rose-400",children:["¥",Hx(o.amount)]})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(po,{className:"h-3 w-3"})," 预计结单"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.date||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(hi,{className:"h-3 w-3"})," 负责人"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.owner||"当前用户"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(Wk,{className:"h-3 w-3"})," 商机类型"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.type||"新建"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(ug,{className:"h-3 w-3"})," 产品类别"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.product||"无"})]}),d.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[d.jsxs("p",{className:"mb-1 flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[d.jsx(Mk,{className:"h-3 w-3"})," 商机来源"]}),d.jsx("p",{className:"font-medium text-slate-900 dark:text-white",children:o.source||"无"})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("p",{className:"mb-1 text-slate-500 dark:text-slate-400",children:"备注说明"}),d.jsx("p",{className:"leading-relaxed font-medium text-slate-900 dark:text-white",children:o.notes||"无"})]})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("h4",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(vy,{className:"h-4 w-4 text-violet-500"}),"跟进记录"]}),d.jsx("button",{onClick:K,className:"text-xs font-medium text-violet-600 hover:text-violet-700 dark:text-violet-400",children:"添加记录"})]}),$.length>0?d.jsx("div",{className:"relative space-y-6 border-l-2 border-slate-100 pl-4 dark:border-slate-800",children:$.map(R=>d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute -left-[21px] mt-1.5 h-2.5 w-2.5 rounded-full bg-violet-500 ring-4 ring-white dark:ring-slate-900"}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[d.jsx("span",{className:"rounded bg-violet-50 px-2 py-0.5 text-xs font-medium text-violet-600 dark:bg-violet-500/10 dark:text-violet-400",children:R.type||"无"}),d.jsx("span",{className:"text-xs text-slate-400",children:R.date||"无"})]}),d.jsx("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:R.content||"无"}),d.jsxs("p",{className:"mt-2 text-xs text-slate-400",children:["跟进人: ",R.user||"无"]})]})]},R.id))}):d.jsx("div",{className:"rounded-xl border border-slate-100 bg-slate-50/50 p-6 text-center text-sm text-slate-400 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-500",children:"暂无跟进记录"})]})]}),d.jsx("div",{className:"sticky bottom-0 bg-slate-50/95 p-4 backdrop-blur sm:static dark:bg-slate-900/90",children:d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row",children:[d.jsx("button",{onClick:W,className:"flex-1 rounded-xl border border-slate-200 bg-white px-4 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"编辑商机"}),d.jsx("button",{onClick:K,className:"flex-1 rounded-xl bg-violet-600 px-4 py-2.5 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700",children:"写跟进"})]})})]})]})})]})}const Mb=6048e5,kE=864e5,qx=Symbol.for("constructDateFrom");function Cn(a,n){return typeof a=="function"?a(n):a&&typeof a=="object"&&qx in a?a[qx](n):a instanceof Date?new a.constructor(n):new Date(n)}function ga(a,n){return Cn(n||a,a)}let jE={};function Vo(){return jE}function yi(a,n){var m,p,g,y;const l=Vo(),r=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??l.weekStartsOn??((y=(g=l.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,o=ga(a,n==null?void 0:n.in),f=o.getDay(),h=(f<r?7:0)+f-r;return o.setDate(o.getDate()-h),o.setHours(0,0,0,0),o}function Co(a,n){return yi(a,{...n,weekStartsOn:1})}function Ab(a,n){const l=ga(a,n==null?void 0:n.in),r=l.getFullYear(),o=Cn(l,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const f=Co(o),h=Cn(l,0);h.setFullYear(r,0,4),h.setHours(0,0,0,0);const m=Co(h);return l.getTime()>=f.getTime()?r+1:l.getTime()>=m.getTime()?r:r-1}function Gx(a){const n=ga(a),l=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return l.setUTCFullYear(n.getFullYear()),+a-+l}function NE(a,...n){const l=Cn.bind(null,n.find(r=>typeof r=="object"));return n.map(l)}function Px(a,n){const l=ga(a,n==null?void 0:n.in);return l.setHours(0,0,0,0),l}function TE(a,n,l){const[r,o]=NE(l==null?void 0:l.in,a,n),f=Px(r),h=Px(o),m=+f-Gx(f),p=+h-Gx(h);return Math.round((m-p)/kE)}function EE(a,n){const l=Ab(a,n),r=Cn(a,0);return r.setFullYear(l,0,4),r.setHours(0,0,0,0),Co(r)}function CE(a){return a instanceof Date||typeof a=="object"&&Object.prototype.toString.call(a)==="[object Date]"}function ME(a){return!(!CE(a)&&typeof a!="number"||isNaN(+ga(a)))}function AE(a,n){const l=ga(a,n==null?void 0:n.in);return l.setFullYear(l.getFullYear(),0,1),l.setHours(0,0,0,0),l}const DE={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RE=(a,n,l)=>{let r;const o=DE[a];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+r:r+" ago":r};function Ed(a){return(n={})=>{const l=n.width?String(n.width):a.defaultWidth;return a.formats[l]||a.formats[a.defaultWidth]}}const OE={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zE={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_E={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VE={date:Ed({formats:OE,defaultWidth:"full"}),time:Ed({formats:zE,defaultWidth:"full"}),dateTime:Ed({formats:_E,defaultWidth:"full"})},UE={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},LE=(a,n,l,r)=>UE[a];function li(a){return(n,l)=>{const r=l!=null&&l.context?String(l.context):"standalone";let o;if(r==="formatting"&&a.formattingValues){const h=a.defaultFormattingWidth||a.defaultWidth,m=l!=null&&l.width?String(l.width):h;o=a.formattingValues[m]||a.formattingValues[h]}else{const h=a.defaultWidth,m=l!=null&&l.width?String(l.width):a.defaultWidth;o=a.values[m]||a.values[h]}const f=a.argumentCallback?a.argumentCallback(n):n;return o[f]}}const BE={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YE={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qE={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},GE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},PE={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},XE=(a,n)=>{const l=Number(a),r=l%100;if(r>20||r<10)switch(r%10){case 1:return l+"st";case 2:return l+"nd";case 3:return l+"rd"}return l+"th"},QE={ordinalNumber:XE,era:li({values:BE,defaultWidth:"wide"}),quarter:li({values:HE,defaultWidth:"wide",argumentCallback:a=>a-1}),month:li({values:YE,defaultWidth:"wide"}),day:li({values:qE,defaultWidth:"wide"}),dayPeriod:li({values:GE,defaultWidth:"wide",formattingValues:PE,defaultFormattingWidth:"wide"})};function ii(a){return(n,l={})=>{const r=l.width,o=r&&a.matchPatterns[r]||a.matchPatterns[a.defaultMatchWidth],f=n.match(o);if(!f)return null;const h=f[0],m=r&&a.parsePatterns[r]||a.parsePatterns[a.defaultParseWidth],p=Array.isArray(m)?KE(m,v=>v.test(h)):FE(m,v=>v.test(h));let g;g=a.valueCallback?a.valueCallback(p):p,g=l.valueCallback?l.valueCallback(g):g;const y=n.slice(h.length);return{value:g,rest:y}}}function FE(a,n){for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&n(a[l]))return l}function KE(a,n){for(let l=0;l<a.length;l++)if(n(a[l]))return l}function ZE(a){return(n,l={})=>{const r=n.match(a.matchPattern);if(!r)return null;const o=r[0],f=n.match(a.parsePattern);if(!f)return null;let h=a.valueCallback?a.valueCallback(f[0]):f[0];h=l.valueCallback?l.valueCallback(h):h;const m=n.slice(o.length);return{value:h,rest:m}}}const JE=/^(\d+)(th|st|nd|rd)?/i,$E=/\d+/i,WE={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},IE={any:[/^b/i,/^(a|c)/i]},eC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tC={any:[/1/i,/2/i,/3/i,/4/i]},aC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},iC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oC={ordinalNumber:ZE({matchPattern:JE,parsePattern:$E,valueCallback:a=>parseInt(a,10)}),era:ii({matchPatterns:WE,defaultMatchWidth:"wide",parsePatterns:IE,defaultParseWidth:"any"}),quarter:ii({matchPatterns:eC,defaultMatchWidth:"wide",parsePatterns:tC,defaultParseWidth:"any",valueCallback:a=>a+1}),month:ii({matchPatterns:aC,defaultMatchWidth:"wide",parsePatterns:nC,defaultParseWidth:"any"}),day:ii({matchPatterns:sC,defaultMatchWidth:"wide",parsePatterns:lC,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:iC,defaultMatchWidth:"any",parsePatterns:rC,defaultParseWidth:"any"})},cC={code:"en-US",formatDistance:RE,formatLong:VE,formatRelative:LE,localize:QE,match:oC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uC(a,n){const l=ga(a,n==null?void 0:n.in);return TE(l,AE(l))+1}function dC(a,n){const l=ga(a,n==null?void 0:n.in),r=+Co(l)-+EE(l);return Math.round(r/Mb)+1}function Db(a,n){var y,v,w,k;const l=ga(a,n==null?void 0:n.in),r=l.getFullYear(),o=Vo(),f=(n==null?void 0:n.firstWeekContainsDate)??((v=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((k=(w=o.locale)==null?void 0:w.options)==null?void 0:k.firstWeekContainsDate)??1,h=Cn((n==null?void 0:n.in)||a,0);h.setFullYear(r+1,0,f),h.setHours(0,0,0,0);const m=yi(h,n),p=Cn((n==null?void 0:n.in)||a,0);p.setFullYear(r,0,f),p.setHours(0,0,0,0);const g=yi(p,n);return+l>=+m?r+1:+l>=+g?r:r-1}function fC(a,n){var m,p,g,y;const l=Vo(),r=(n==null?void 0:n.firstWeekContainsDate)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??l.firstWeekContainsDate??((y=(g=l.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,o=Db(a,n),f=Cn((n==null?void 0:n.in)||a,0);return f.setFullYear(o,0,r),f.setHours(0,0,0,0),yi(f,n)}function hC(a,n){const l=ga(a,n==null?void 0:n.in),r=+yi(l,n)-+fC(l,n);return Math.round(r/Mb)+1}function He(a,n){const l=a<0?"-":"",r=Math.abs(a).toString().padStart(n,"0");return l+r}const wn={y(a,n){const l=a.getFullYear(),r=l>0?l:1-l;return He(n==="yy"?r%100:r,n.length)},M(a,n){const l=a.getMonth();return n==="M"?String(l+1):He(l+1,2)},d(a,n){return He(a.getDate(),n.length)},a(a,n){const l=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return l.toUpperCase();case"aaa":return l;case"aaaaa":return l[0];case"aaaa":default:return l==="am"?"a.m.":"p.m."}},h(a,n){return He(a.getHours()%12||12,n.length)},H(a,n){return He(a.getHours(),n.length)},m(a,n){return He(a.getMinutes(),n.length)},s(a,n){return He(a.getSeconds(),n.length)},S(a,n){const l=n.length,r=a.getMilliseconds(),o=Math.trunc(r*Math.pow(10,l-3));return He(o,n.length)}},Xs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xx={G:function(a,n,l){const r=a.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return l.era(r,{width:"abbreviated"});case"GGGGG":return l.era(r,{width:"narrow"});case"GGGG":default:return l.era(r,{width:"wide"})}},y:function(a,n,l){if(n==="yo"){const r=a.getFullYear(),o=r>0?r:1-r;return l.ordinalNumber(o,{unit:"year"})}return wn.y(a,n)},Y:function(a,n,l,r){const o=Db(a,r),f=o>0?o:1-o;if(n==="YY"){const h=f%100;return He(h,2)}return n==="Yo"?l.ordinalNumber(f,{unit:"year"}):He(f,n.length)},R:function(a,n){const l=Ab(a);return He(l,n.length)},u:function(a,n){const l=a.getFullYear();return He(l,n.length)},Q:function(a,n,l){const r=Math.ceil((a.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return He(r,2);case"Qo":return l.ordinalNumber(r,{unit:"quarter"});case"QQQ":return l.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return l.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return l.quarter(r,{width:"wide",context:"formatting"})}},q:function(a,n,l){const r=Math.ceil((a.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return He(r,2);case"qo":return l.ordinalNumber(r,{unit:"quarter"});case"qqq":return l.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return l.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return l.quarter(r,{width:"wide",context:"standalone"})}},M:function(a,n,l){const r=a.getMonth();switch(n){case"M":case"MM":return wn.M(a,n);case"Mo":return l.ordinalNumber(r+1,{unit:"month"});case"MMM":return l.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return l.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return l.month(r,{width:"wide",context:"formatting"})}},L:function(a,n,l){const r=a.getMonth();switch(n){case"L":return String(r+1);case"LL":return He(r+1,2);case"Lo":return l.ordinalNumber(r+1,{unit:"month"});case"LLL":return l.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return l.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return l.month(r,{width:"wide",context:"standalone"})}},w:function(a,n,l,r){const o=hC(a,r);return n==="wo"?l.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(a,n,l){const r=dC(a);return n==="Io"?l.ordinalNumber(r,{unit:"week"}):He(r,n.length)},d:function(a,n,l){return n==="do"?l.ordinalNumber(a.getDate(),{unit:"date"}):wn.d(a,n)},D:function(a,n,l){const r=uC(a);return n==="Do"?l.ordinalNumber(r,{unit:"dayOfYear"}):He(r,n.length)},E:function(a,n,l){const r=a.getDay();switch(n){case"E":case"EE":case"EEE":return l.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return l.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return l.day(r,{width:"short",context:"formatting"});case"EEEE":default:return l.day(r,{width:"wide",context:"formatting"})}},e:function(a,n,l,r){const o=a.getDay(),f=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(f);case"ee":return He(f,2);case"eo":return l.ordinalNumber(f,{unit:"day"});case"eee":return l.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return l.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return l.day(o,{width:"short",context:"formatting"});case"eeee":default:return l.day(o,{width:"wide",context:"formatting"})}},c:function(a,n,l,r){const o=a.getDay(),f=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(f);case"cc":return He(f,n.length);case"co":return l.ordinalNumber(f,{unit:"day"});case"ccc":return l.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return l.day(o,{width:"narrow",context:"standalone"});case"cccccc":return l.day(o,{width:"short",context:"standalone"});case"cccc":default:return l.day(o,{width:"wide",context:"standalone"})}},i:function(a,n,l){const r=a.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return He(o,n.length);case"io":return l.ordinalNumber(o,{unit:"day"});case"iii":return l.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return l.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return l.day(r,{width:"short",context:"formatting"});case"iiii":default:return l.day(r,{width:"wide",context:"formatting"})}},a:function(a,n,l){const o=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(a,n,l){const r=a.getHours();let o;switch(r===12?o=Xs.noon:r===0?o=Xs.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(a,n,l){const r=a.getHours();let o;switch(r>=17?o=Xs.evening:r>=12?o=Xs.afternoon:r>=4?o=Xs.morning:o=Xs.night,n){case"B":case"BB":case"BBB":return l.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return l.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return l.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(a,n,l){if(n==="ho"){let r=a.getHours()%12;return r===0&&(r=12),l.ordinalNumber(r,{unit:"hour"})}return wn.h(a,n)},H:function(a,n,l){return n==="Ho"?l.ordinalNumber(a.getHours(),{unit:"hour"}):wn.H(a,n)},K:function(a,n,l){const r=a.getHours()%12;return n==="Ko"?l.ordinalNumber(r,{unit:"hour"}):He(r,n.length)},k:function(a,n,l){let r=a.getHours();return r===0&&(r=24),n==="ko"?l.ordinalNumber(r,{unit:"hour"}):He(r,n.length)},m:function(a,n,l){return n==="mo"?l.ordinalNumber(a.getMinutes(),{unit:"minute"}):wn.m(a,n)},s:function(a,n,l){return n==="so"?l.ordinalNumber(a.getSeconds(),{unit:"second"}):wn.s(a,n)},S:function(a,n){return wn.S(a,n)},X:function(a,n,l){const r=a.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Fx(r);case"XXXX":case"XX":return Wn(r);case"XXXXX":case"XXX":default:return Wn(r,":")}},x:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"x":return Fx(r);case"xxxx":case"xx":return Wn(r);case"xxxxx":case"xxx":default:return Wn(r,":")}},O:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qx(r,":");case"OOOO":default:return"GMT"+Wn(r,":")}},z:function(a,n,l){const r=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qx(r,":");case"zzzz":default:return"GMT"+Wn(r,":")}},t:function(a,n,l){const r=Math.trunc(+a/1e3);return He(r,n.length)},T:function(a,n,l){return He(+a,n.length)}};function Qx(a,n=""){const l=a>0?"-":"+",r=Math.abs(a),o=Math.trunc(r/60),f=r%60;return f===0?l+String(o):l+String(o)+n+He(f,2)}function Fx(a,n){return a%60===0?(a>0?"-":"+")+He(Math.abs(a)/60,2):Wn(a,n)}function Wn(a,n=""){const l=a>0?"-":"+",r=Math.abs(a),o=He(Math.trunc(r/60),2),f=He(r%60,2);return l+o+n+f}const Kx=(a,n)=>{switch(a){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Rb=(a,n)=>{switch(a){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},mC=(a,n)=>{const l=a.match(/(P+)(p+)?/)||[],r=l[1],o=l[2];if(!o)return Kx(a,n);let f;switch(r){case"P":f=n.dateTime({width:"short"});break;case"PP":f=n.dateTime({width:"medium"});break;case"PPP":f=n.dateTime({width:"long"});break;case"PPPP":default:f=n.dateTime({width:"full"});break}return f.replace("{{date}}",Kx(r,n)).replace("{{time}}",Rb(o,n))},pC={p:Rb,P:mC},gC=/^D+$/,xC=/^Y+$/,yC=["D","DD","YY","YYYY"];function vC(a){return gC.test(a)}function bC(a){return xC.test(a)}function wC(a,n,l){const r=SC(a,n,l);if(console.warn(r),yC.includes(a))throw new RangeError(r)}function SC(a,n,l){const r=a[0]==="Y"?"years":"days of the month";return`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${r} to the input \`${l}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const kC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,NC=/^'([^]*?)'?$/,TC=/''/g,EC=/[a-zA-Z]/;function CC(a,n,l){var y,v,w,k;const r=Vo(),o=r.locale??cC,f=r.firstWeekContainsDate??((v=(y=r.locale)==null?void 0:y.options)==null?void 0:v.firstWeekContainsDate)??1,h=r.weekStartsOn??((k=(w=r.locale)==null?void 0:w.options)==null?void 0:k.weekStartsOn)??0,m=ga(a,l==null?void 0:l.in);if(!ME(m))throw new RangeError("Invalid time value");let p=n.match(jC).map(T=>{const E=T[0];if(E==="p"||E==="P"){const M=pC[E];return M(T,o.formatLong)}return T}).join("").match(kC).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const E=T[0];if(E==="'")return{isToken:!1,value:MC(T)};if(Xx[E])return{isToken:!0,value:T};if(E.match(EC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:T}});o.localize.preprocessor&&(p=o.localize.preprocessor(m,p));const g={firstWeekContainsDate:f,weekStartsOn:h,locale:o};return p.map(T=>{if(!T.isToken)return T.value;const E=T.value;(bC(E)||vC(E))&&wC(E,n,String(a));const M=Xx[E[0]];return M(m,E,o.localize,g)}).join("")}function MC(a){const n=a.match(NC);return n?n[1].replace(TC,"'"):a}const Cd=["全部","日报","外勤打卡"],Zx={locationText:"",remark:""},AC={workContent:"",tomorrowPlan:"",sourceType:"manual"};function DC(a){return a?a==="updated"?"已更新":"已打卡":"待打卡"}function RC(a){return a?a==="reviewed"||a==="已点评"?"已点评":"已提交":"待提交"}function OC(){const a=S.useRef(!1),n=S.useRef(null),[l,r]=S.useState(!0),[o,f]=S.useState(!1),[h,m]=S.useState(!1),[p,g]=S.useState(!1),[y,v]=S.useState(!1),[w,k]=S.useState("全部"),[T,E]=S.useState(""),[M,A]=S.useState(!1),[z,O]=S.useState(""),[H,X]=S.useState(""),[ne,F]=S.useState(""),[B,$]=S.useState(""),[ee,re]=S.useState(""),[me,Re]=S.useState([]),[Se,ge]=S.useState(),[_,J]=S.useState(),[W,he]=S.useState([]),[K,N]=S.useState(Zx),[q,R]=S.useState(AC),te=S.useMemo(()=>w==="全部"?me:me.filter(ae=>ae.type===w),[me,w]);S.useEffect(()=>{le()},[]),S.useEffect(()=>{l||a.current||(a.current=!0,se())},[l]);const se=async()=>{X(""),f(!0),A(!1),E("正在获取当前位置...");try{const ae=await _C(),be=Number(ae.coords.latitude.toFixed(6)),Ie=Number(ae.coords.longitude.toFixed(6));try{const nt=await sE(be,Ie);N(ra=>({...ra,locationText:nt||`定位坐标:${be}, ${Ie}`,latitude:be,longitude:Ie})),A(!!nt),E(nt?"定位已刷新并锁定当前位置,如需变更请点击“刷新定位”。":"已获取定位坐标,如需更精确地址可再次刷新定位。")}catch{N(nt=>({...nt,locationText:`定位坐标:${be}, ${Ie}`,latitude:be,longitude:Ie})),A(!1),E("已获取坐标,但地点名称解析失败,你也可以手动补充。")}}catch(ae){A(!1),E(ae instanceof Error?ae.message:"定位获取失败,请手动填写当前位置。")}finally{f(!1)}},ue=()=>{var ae;(ae=n.current)==null||ae.click()},ke=async ae=>{var Ie;const be=(Ie=ae.target.files)==null?void 0:Ie[0];if(be){X(""),$(""),v(!0);try{const nt=await iE(be);he([nt])}catch(nt){X(nt instanceof Error?nt.message:"现场照片上传失败")}finally{v(!1),ae.target.value=""}}},Ue=()=>{he([])},ye=async()=>{var ae;if(!h){X(""),$(""),m(!0);try{if(!W.length)throw new Error("请先拍摄并上传现场照片");await lE({locationText:K.locationText.trim(),remark:((ae=K.remark)==null?void 0:ae.trim())||void 0,longitude:K.longitude,latitude:K.latitude,photoUrls:W}),await le(),N(Zx),he([]),A(!1),$("打卡已记录,本日可继续新增打卡。")}catch(be){X(be instanceof Error?be.message:"打卡提交失败")}finally{m(!1)}}},jt=async()=>{if(!p){F(""),re(""),g(!0);try{await rE({workContent:q.workContent.trim(),tomorrowPlan:q.tomorrowPlan.trim(),sourceType:q.sourceType||"manual"}),await le(),re("日报已保存,今日再次提交会覆盖当天内容。")}catch(ae){F(ae instanceof Error?ae.message:"日报提交失败")}finally{g(!1)}}},gt=()=>{k(ae=>{const be=Cd.indexOf(ae);return Cd[(be+1)%Cd.length]})};async function le(){var ae,be,Ie,nt,ra;r(!0),O("");try{const Nt=await nE();Re(Nt.history??[]),ge((ae=Nt.todayCheckIn)==null?void 0:ae.status),J((be=Nt.todayReport)==null?void 0:be.status),N({locationText:"",remark:"",longitude:void 0,latitude:void 0}),he([]),A(!1),R({workContent:Nt.suggestedWorkContent||((Ie=Nt.todayReport)==null?void 0:Ie.workContent)||"",tomorrowPlan:((nt=Nt.todayReport)==null?void 0:nt.tomorrowPlan)??"",sourceType:((ra=Nt.todayReport)==null?void 0:ra.sourceType)??"manual"})}catch(Nt){O(Nt instanceof Error?Nt.message:"工作台数据加载失败"),Re([]),ge(void 0),J(void 0)}finally{r(!1)}}return d.jsxs("div",{className:"space-y-6",children:[d.jsx("header",{className:"flex items-center justify-between",children:d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"工作台"}),d.jsxs("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-1",children:["今天是 ",CC(new Date,"yyyy年MM月dd日 EEEE")]})]})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[d.jsxs("div",{className:"lg:col-span-7 xl:col-span-8 space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx("div",{className:"h-6 w-1 bg-violet-600 rounded-full"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"今日工作"})]}),d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Rd,{className:"h-5 w-5 text-emerald-500 dark:text-emerald-400"}),d.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"外勤打卡"})]}),d.jsx("span",{className:"text-xs font-medium text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 px-2.5 py-1 rounded-full",children:l?"加载中...":DC(Se)})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"当前位置"}),d.jsxs("button",{onClick:()=>void se(),disabled:o,className:"inline-flex items-center gap-1 rounded-full bg-violet-50 px-2.5 py-1 text-[11px] font-medium text-violet-600 transition-colors hover:bg-violet-100 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-violet-500/10 dark:text-violet-400 dark:hover:bg-violet-500/20",children:[d.jsx(qk,{className:`h-3.5 w-3.5 ${o?"animate-spin":""}`}),o?"刷新中":"刷新定位"]})]}),d.jsx("textarea",{rows:3,value:K.locationText,onChange:ae=>N(be=>({...be,locationText:ae.target.value})),placeholder:"请输入当前位置,手机端可点击“刷新定位”获取具体地点名称...",readOnly:M,className:`w-full rounded-xl border border-slate-200 dark:border-slate-800 p-3 text-sm text-slate-900 dark:text-white outline-none transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500 ${M?"bg-slate-50 dark:bg-slate-800/40 cursor-not-allowed":"bg-white dark:bg-slate-900/50 focus:border-violet-500 focus:ring-1 focus:ring-violet-500"}`}),T?d.jsx("p",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400",children:T}):null]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"备注说明 (选填)"}),d.jsx("textarea",{rows:2,value:K.remark??"",onChange:ae=>N(be=>({...be,remark:ae.target.value})),placeholder:"请输入打卡备注...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]})]}),d.jsxs("div",{className:"space-y-4 flex flex-col",children:[d.jsx("p",{className:"text-sm font-medium text-slate-900 dark:text-white mb-1",children:"现场照片 (必填)"}),d.jsx("input",{ref:n,type:"file",accept:"image/*",capture:"environment",className:"hidden",onChange:ae=>void ke(ae)}),W.length?d.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-slate-200 bg-slate-50 dark:border-slate-700 dark:bg-slate-800/50",children:[d.jsx("img",{src:W[0],alt:"现场照片",className:"h-48 w-full object-cover"}),d.jsx("button",{type:"button",onClick:Ue,className:"absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-full bg-slate-900/70 text-white transition-colors hover:bg-slate-900",children:d.jsx(nl,{className:"h-4 w-4"})})]}):d.jsxs("button",{type:"button",onClick:ue,disabled:y,className:"group flex flex-1 min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-xl border-2 border-dashed border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800/50 transition-all hover:border-violet-400 dark:hover:border-violet-500 hover:bg-violet-50 dark:hover:bg-violet-500/10 disabled:cursor-not-allowed disabled:opacity-60",children:[d.jsx(uk,{className:"mb-2 h-6 w-6 text-slate-400 dark:text-slate-500 group-hover:text-violet-500 transition-colors"}),d.jsx("span",{className:"text-xs text-slate-500 dark:text-slate-400 group-hover:text-violet-600 dark:group-hover:text-violet-400 transition-colors",children:y?"上传中...":"点击拍照"})]}),d.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:"手机端会优先调用后置相机;如相机不可用,也可从相册选择现场照片。"}),H?d.jsx("p",{className:"text-xs text-rose-500",children:H}):null,B?d.jsx("p",{className:"text-xs text-emerald-500",children:B}):null]})]}),d.jsxs("button",{onClick:()=>void ye(),disabled:h||l,className:"mt-6 flex w-full items-center justify-center gap-2 rounded-xl bg-slate-900 dark:bg-white px-4 py-3 text-sm font-semibold text-white dark:text-slate-900 shadow-sm hover:bg-slate-800 dark:hover:bg-slate-100 active:scale-[0.98] transition-all disabled:cursor-not-allowed disabled:opacity-60",children:[d.jsx(yy,{className:"h-4 w-4"}),h?"提交中...":"确认打卡"]})]}),d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 shadow-sm backdrop-blur-sm",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-50 dark:border-slate-800/50 pb-4 mb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(rk,{className:"h-5 w-5 text-violet-600 dark:text-violet-400"}),d.jsx("h3",{className:"text-base font-semibold text-slate-900 dark:text-white",children:"每日表"})]}),d.jsx("span",{className:"text-xs font-medium text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 px-2.5 py-1 rounded-full",children:l?"加载中...":RC(_)})]}),d.jsxs("div",{className:"space-y-5",children:[d.jsxs("div",{children:[d.jsx("div",{className:"mb-2 flex items-center justify-between",children:d.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[d.jsx(xo,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"今日工作内容"]})}),d.jsx("textarea",{rows:4,value:q.workContent,onChange:ae=>R(be=>({...be,workContent:ae.target.value,sourceType:"manual"})),placeholder:"请输入今日拜访客户、沟通进展、遇到的问题等...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"mb-2 flex items-center gap-2 text-sm font-medium text-slate-900 dark:text-white",children:[d.jsx(Dk,{className:"h-4 w-4 text-slate-400 dark:text-slate-500"}),"明日工作计划"]}),d.jsx("textarea",{rows:3,value:q.tomorrowPlan,onChange:ae=>R(be=>({...be,tomorrowPlan:ae.target.value})),placeholder:"1. 上午拜访...\\n2. 下午整理...\\n3. 推进...",className:"w-full rounded-xl border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-3 text-sm text-slate-900 dark:text-white outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder:text-slate-400 dark:placeholder:text-slate-500"})]}),ne?d.jsx("p",{className:"text-xs text-rose-500",children:ne}):null,ee?d.jsx("p",{className:"text-xs text-emerald-500",children:ee}):null,z?d.jsx("p",{className:"text-xs text-rose-500",children:z}):null,d.jsxs("button",{onClick:()=>void jt(),disabled:p||l,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-violet-600 px-4 py-3 text-sm font-semibold text-white shadow-sm hover:bg-violet-700 active:scale-[0.98] transition-all disabled:cursor-not-allowed disabled:opacity-60",children:[d.jsx(Xk,{className:"h-4 w-4"}),p?"提交中...":"提交日报"]})]})]})]}),d.jsxs("div",{className:"lg:col-span-5 xl:col-span-4 space-y-6 lg:sticky lg:top-6",children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"h-6 w-1 bg-slate-300 dark:bg-slate-700 rounded-full"}),d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:"历史记录"})]}),d.jsx("button",{onClick:gt,title:`当前筛选:${w}`,className:"p-2 text-slate-400 hover:text-violet-600 dark:hover:text-violet-400 transition-colors",children:d.jsx(Nk,{className:"h-4 w-4"})})]}),d.jsxs("div",{className:"space-y-4 max-h-[calc(100vh-12rem)] overflow-y-auto pr-2 scrollbar-hide",children:[te.map((ae,be)=>{var Ie;return d.jsxs(We.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:be*.1},className:"group cursor-pointer rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-4 shadow-sm backdrop-blur-sm transition-all hover:shadow-md hover:border-violet-100 dark:hover:border-violet-900/50",children:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-full ${ae.type==="日报"?"bg-blue-50 dark:bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"}`,children:ae.type==="日报"?d.jsx(xo,{className:"h-4 w-4"}):d.jsx(Rd,{className:"h-4 w-4"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-sm font-semibold text-slate-900 dark:text-white",children:ae.type}),d.jsx("p",{className:"text-[10px] text-slate-500 dark:text-slate-400",children:[ae.date,ae.time].filter(Boolean).join(" ")})]})]}),d.jsxs("div",{className:"flex flex-col items-end gap-1",children:[d.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-medium ${ae.status==="已点评"?"bg-violet-50 dark:bg-violet-500/10 text-violet-600 dark:text-violet-400":ae.status==="已阅"||ae.status==="已提交"?"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400":"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"}`,children:ae.status}),ae.score?d.jsxs("span",{className:"text-[10px] font-bold text-rose-600 dark:text-rose-400",children:[ae.score,"分"]}):null]})]}),d.jsxs("div",{className:"pl-11",children:[d.jsx("p",{className:"text-xs text-slate-700 dark:text-slate-300 line-clamp-2 leading-relaxed whitespace-pre-line",children:ae.content}),(Ie=ae.photoUrls)!=null&&Ie.length?d.jsx("div",{className:"mt-3 flex gap-2 overflow-x-auto pb-1",children:ae.photoUrls.map((nt,ra)=>d.jsx("img",{src:nt,alt:`打卡照片${ra+1}`,className:"h-16 w-16 rounded-lg border border-slate-200 object-cover dark:border-slate-700"},`${ae.id}-photo-${ra}`))}):null,ae.comment?d.jsxs("div",{className:"mt-2 rounded-lg bg-slate-50 dark:bg-slate-800/50 p-2.5 border border-slate-100 dark:border-slate-800/50",children:[d.jsx("p",{className:"text-[10px] font-medium text-slate-900 dark:text-white mb-0.5",children:"主管点评:"}),d.jsx("p",{className:"text-[10px] text-slate-600 dark:text-slate-400",children:ae.comment})]}):null]})]},`${ae.type}-${ae.id}-${be}`)}),!l&&te.length===0?d.jsxs("div",{className:"rounded-2xl border border-slate-100 dark:border-slate-800 bg-white dark:bg-slate-900/50 p-6 text-center text-sm text-slate-400 dark:text-slate-500 shadow-sm",children:["当前没有",w==="全部"?"":w,"记录"]}):null]})]})]})]})}function zC(a){if(!window.isSecureContext)return"手机端定位需要通过安全地址访问。请使用 HTTPS,或继续手动填写当前位置。";switch(a.code){case a.PERMISSION_DENIED:return"定位权限被拒绝,请在手机浏览器里允许位置权限后再重试。";case a.POSITION_UNAVAILABLE:return"当前位置暂时不可用,请移动到开阔区域后重试。";case a.TIMEOUT:return"定位超时,已建议切换普通精度重试;你也可以手动填写当前位置。";default:return"定位获取失败,请手动填写当前位置。"}}function Jx(a){return new Promise((n,l)=>{if(!navigator.geolocation){l(new Error("当前浏览器不支持定位,请手动填写当前位置。"));return}navigator.geolocation.getCurrentPosition(n,l,a)})}async function _C(){try{return await Jx({enableHighAccuracy:!0,timeout:12e3,maximumAge:0})}catch(a){if(!(a instanceof GeolocationPositionError))throw a;try{return await Jx({enableHighAccuracy:!1,timeout:15e3,maximumAge:3e5})}catch{throw new Error(zC(a))}}}const VC=[{key:"personal",icon:hi,label:"个人资料",color:"text-blue-500 dark:text-blue-400",bg:"bg-blue-50 dark:bg-blue-500/10"},{key:"notice",icon:$S,label:"消息通知",color:"text-amber-500 dark:text-amber-400",bg:"bg-amber-50 dark:bg-amber-500/10"},{key:"security",icon:Zk,label:"账号安全",color:"text-emerald-500 dark:text-emerald-400",bg:"bg-emerald-50 dark:bg-emerald-500/10"},{key:"help",icon:gk,label:"帮助中心",color:"text-violet-500 dark:text-violet-400",bg:"bg-violet-50 dark:bg-violet-500/10"}],UC={displayName:"",email:"",phone:""},$x={oldPassword:"",newPassword:"",confirmPassword:""};function Pa(a){return a&&a.trim()?a:"无"}function eo(a){return typeof a=="number"&&Number.isFinite(a)?a:0}function Wx({title:a,subtitle:n,onClose:l,children:r,footer:o}){return d.jsxs(d.Fragment,{children:[d.jsx(We.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-40 bg-slate-900/25 backdrop-blur-sm dark:bg-slate-900/70"}),d.jsx(We.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},className:"fixed inset-0 z-50 p-0 sm:p-6",children:d.jsx("div",{className:"mx-auto h-full w-full sm:max-w-3xl",children:d.jsxs("div",{className:"flex h-full flex-col overflow-hidden border border-slate-200 bg-white shadow-2xl dark:border-slate-800 dark:bg-slate-900 sm:rounded-3xl",children:[d.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:a}),n?d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:n}):null]}),d.jsx("button",{onClick:l,className:"rounded-full p-2 text-slate-400 transition-colors hover:bg-slate-100 dark:hover:bg-slate-800",children:d.jsx(nl,{className:"h-5 w-5"})})]}),d.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-5 sm:px-6",children:r}),o?d.jsx("div",{className:"border-t border-slate-100 px-5 py-4 dark:border-slate-800 sm:px-6",children:o}):null]})})})]})}function LC(){const{theme:a,setTheme:n}=qy(),l=bi(),[r,o]=S.useState(null),[f,h]=S.useState(null),[m,p]=S.useState(!1),[g,y]=S.useState(!1),[v,w]=S.useState(UC),[k,T]=S.useState(!1),[E,M]=S.useState(!1),[A,z]=S.useState(""),[O,H]=S.useState($x),[X,ne]=S.useState(!1),[F,B]=S.useState(""),[$,ee]=S.useState(""),[re,me]=S.useState(!1),[Re,Se]=S.useState(!1),[ge,_]=S.useState(!1);S.useEffect(()=>{let le=!1;async function ae(){try{const be=await fo(),Ie=await jd().catch(()=>null);if(le)return;h(be),o(Ie)}catch{if(le)return;o(null),h(null)}}return ae(),()=>{le=!0}},[]);const J=()=>{Eo(),l("/login",{replace:!0})},W=()=>{l("/opportunities")},he=()=>{l("/expansion")},K=async()=>{T(!0),z("");try{const le=f??await fo(),ae=r??await jd().catch(()=>null);h(le),o(ae),w({userId:le.userId,username:le.username,displayName:le.displayName||"",email:le.email||"",phone:le.phone||"",pwdResetRequired:le.pwdResetRequired,isPlatformAdmin:le.isPlatformAdmin,orgId:void 0}),p(!0)}catch(le){z(le instanceof Error?le.message:"获取个人资料失败"),p(!0)}finally{T(!1)}},N=()=>{E||(p(!1),z(""))},q=async()=>{if(!E){M(!0),z("");try{await tE({...v,email:v.email||void 0,phone:v.phone||void 0});const le=await fo(),ae=await jd().catch(()=>r);h(le),o(ae),w({userId:le.userId,username:le.username,displayName:le.displayName||"",email:le.email||"",phone:le.phone||"",pwdResetRequired:le.pwdResetRequired,isPlatformAdmin:le.isPlatformAdmin,orgId:void 0}),sessionStorage.setItem("userProfile",JSON.stringify(le)),p(!1)}catch(le){z(le instanceof Error?le.message:"保存失败")}finally{M(!1)}}},R=()=>{H($x),B(""),ee(""),me(!1),Se(!1),_(!1),y(!0)},te=()=>{X||(y(!1),B(""),ee(""))},se=async()=>{if(!X){if(!O.oldPassword||!O.newPassword||!O.confirmPassword){B("请完整填写旧密码、新密码和确认密码"),ee("");return}if(O.newPassword!==O.confirmPassword){B("两次输入的新密码不一致"),ee("");return}if(O.newPassword.length<6){B("新密码长度不能少于6位"),ee("");return}ne(!0),B(""),ee("");try{await aE({oldPassword:O.oldPassword,newPassword:O.newPassword}),Eo(),l("/login",{replace:!0})}catch(le){B(le instanceof Error?le.message:"密码修改失败")}finally{ne(!1)}}},ue=Pa(r==null?void 0:r.jobTitle),ke=Pa(r==null?void 0:r.deptName),Ue=Pa((f==null?void 0:f.displayName)||(r==null?void 0:r.realName)),ye=Ue==="无"?"无":Ue.slice(0,1),jt=Pa(f==null?void 0:f.email),gt=Pa(f==null?void 0:f.phone);return d.jsxs("div",{className:"space-y-5 sm:space-y-6",children:[d.jsx("header",{className:"flex items-center justify-between",children:d.jsx("h1",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"我的"})}),d.jsxs(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"rounded-2xl border border-slate-100 bg-white p-4 shadow-sm backdrop-blur-sm transition-all dark:border-slate-800 dark:bg-slate-900/50 sm:p-6",children:[d.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-start sm:justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center rounded-full bg-violet-100 text-2xl font-bold text-violet-600 dark:bg-violet-500/20 dark:text-violet-400",children:ye}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("h2",{className:"truncate text-xl font-bold text-slate-900 dark:text-white",children:Ue}),d.jsxs("div",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["部门:",ke]}),d.jsxs("p",{children:["岗位:",ue]})]})]})]}),d.jsx("button",{onClick:()=>void K(),className:"self-end rounded-full bg-slate-50 p-2 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:bg-slate-800 dark:text-slate-500 dark:hover:bg-slate-700 dark:hover:text-slate-300 sm:self-start",children:d.jsx(Fk,{className:"h-5 w-5"})})]}),d.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-3 border-t border-slate-50 pt-6 dark:border-slate-800/50 sm:grid-cols-3 sm:gap-0 sm:divide-x sm:divide-slate-100 dark:sm:divide-slate-800",children:[d.jsxs("button",{type:"button",onClick:W,className:"rounded-2xl bg-slate-50 px-4 py-4 text-center transition-colors hover:bg-slate-100 active:scale-[0.99] dark:bg-slate-800/40 dark:hover:bg-slate-800 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:eo(r==null?void 0:r.monthlyOpportunityCount)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"本月商机"})]}),d.jsxs("button",{type:"button",onClick:he,className:"rounded-2xl bg-slate-50 px-4 py-4 text-center transition-colors hover:bg-slate-100 active:scale-[0.99] dark:bg-slate-800/40 dark:hover:bg-slate-800 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:eo(r==null?void 0:r.monthlyExpansionCount)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"本月拓展"})]}),d.jsxs("div",{className:"rounded-2xl bg-slate-50 px-4 py-4 text-center dark:bg-slate-800/40 sm:rounded-none sm:bg-transparent sm:px-2",children:[d.jsx("p",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:eo(r==null?void 0:r.averageScore)}),d.jsx("p",{className:"mt-1 text-xs text-slate-500 dark:text-slate-400",children:"平均分"})]})]})]}),d.jsx(We.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-sm backdrop-blur-sm transition-all dark:border-slate-800 dark:bg-slate-900/50",children:d.jsxs("ul",{className:"divide-y divide-slate-50 dark:divide-slate-800/50",children:[d.jsx("li",{children:d.jsxs("button",{onClick:()=>n(a==="dark"?"light":"dark"),className:"flex w-full items-center justify-between p-4 transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50 md:hidden",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-slate-100 dark:bg-slate-800",children:a==="dark"?d.jsx(jy,{className:"h-5 w-5 text-amber-500"}):d.jsx(wy,{className:"h-5 w-5 text-indigo-500"})}),d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:a==="dark"?"切换亮色模式":"切换暗色模式"})]}),d.jsx(go,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})}),VC.map(le=>d.jsx("li",{children:d.jsxs("button",{onClick:le.key==="personal"?()=>void K():le.key==="security"?R:void 0,className:"flex w-full items-center justify-between p-4 text-left transition-colors hover:bg-slate-50 dark:hover:bg-slate-800/50",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-xl ${le.bg}`,children:d.jsx(le.icon,{className:`h-5 w-5 ${le.color}`})}),d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:le.label})]}),d.jsx(go,{className:"h-5 w-5 text-slate-300 dark:text-slate-600"})]})},le.key))]})}),d.jsxs(We.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},onClick:J,className:"flex w-full items-center justify-center gap-2 rounded-2xl border border-rose-100 bg-rose-50 p-4 text-sm font-semibold text-rose-600 transition-all hover:bg-rose-100 active:scale-[0.98] dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-400 dark:hover:bg-rose-500/20",children:[d.jsx(Ok,{className:"h-5 w-5"}),"退出登录"]}),d.jsxs(Xa,{children:[m?d.jsx(Wx,{title:"个人资料",onClose:N,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:N,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"取消"}),d.jsx("button",{onClick:()=>void q(),disabled:E||k,className:"rounded-xl bg-violet-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60",children:E?"保存中...":"保存资料"})]}),children:A&&!f?d.jsx("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:A}):d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex flex-col gap-4 rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20 sm:flex-row sm:items-center",children:[d.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-violet-100 text-2xl font-bold text-violet-600 dark:bg-violet-500/20 dark:text-violet-400",children:(v.displayName||(f==null?void 0:f.displayName)||"无").slice(0,1)}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("div",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:Pa(f==null?void 0:f.displayName)}),d.jsxs("div",{className:"mt-1 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["部门:",ke]}),d.jsxs("p",{children:["岗位:",ue]})]}),d.jsxs("div",{className:"mt-2 text-xs text-slate-400 dark:text-slate-500",children:["账号:",Pa(f==null?void 0:f.username)]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"显示名称"}),d.jsx("input",{value:v.displayName||"",onChange:le=>w(ae=>({...ae,displayName:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"用户名"}),d.jsx("div",{className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/40 dark:text-slate-400",children:Pa(f==null?void 0:f.username)})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-slate-700 dark:text-slate-300",children:[d.jsx(no,{className:"h-4 w-4 text-slate-400"}),"手机号"]}),d.jsx("input",{value:v.phone||"",onChange:le=>w(ae=>({...ae,phone:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsxs("span",{className:"flex items-center gap-2 text-sm font-medium text-slate-700 dark:text-slate-300",children:[d.jsx(by,{className:"h-4 w-4 text-slate-400"}),"邮箱"]}),d.jsx("input",{value:v.email||"",onChange:le=>w(ae=>({...ae,email:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/50"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[d.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(IS,{className:"h-4 w-4 text-violet-500"}),"岗位信息"]}),d.jsxs("div",{className:"mt-3 space-y-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["岗位:",ue]}),d.jsxs("p",{children:["状态:",Pa(r==null?void 0:r.accountStatus)]})]})]}),d.jsxs("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-slate-900 dark:text-white",children:[d.jsx(Uk,{className:"h-4 w-4 text-emerald-500"}),"组织信息"]}),d.jsxs("div",{className:"mt-3 space-y-2 text-sm text-slate-500 dark:text-slate-400",children:[d.jsxs("p",{children:["部门:",ke]}),d.jsxs("p",{className:"flex items-center gap-2",children:[d.jsx(yk,{className:"h-4 w-4 text-slate-400"}),"入职天数:",eo(r==null?void 0:r.onboardingDays)]})]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/70 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-400",children:["当前手机号:",gt]}),d.jsxs("div",{className:"rounded-xl border border-slate-100 bg-slate-50/70 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/20 dark:text-slate-400",children:["当前邮箱:",jt]})]}),k?d.jsx("div",{className:"rounded-xl border border-slate-100 bg-slate-50 px-4 py-3 text-sm text-slate-500 dark:border-slate-800 dark:bg-slate-800/40 dark:text-slate-400",children:"正在加载个人资料..."}):null,A?d.jsx("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:A}):null]})}):null,g?d.jsx(Wx,{title:"账号安全",onClose:te,footer:d.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[d.jsx("button",{onClick:te,className:"rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700",children:"关闭"}),d.jsx("button",{onClick:()=>void se(),disabled:X,className:"rounded-xl bg-emerald-600 px-4 py-3 text-sm font-medium text-white shadow-sm transition-colors hover:bg-emerald-700 disabled:cursor-not-allowed disabled:opacity-60",children:X?"提交中...":"更新密码"})]}),children:d.jsxs("div",{className:"space-y-6",children:[d.jsx("div",{className:"rounded-2xl border border-slate-100 bg-slate-50/70 p-4 dark:border-slate-800 dark:bg-slate-800/20",children:d.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-300",children:"为了账号安全,请先输入当前密码,再设置新密码。"})}),d.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"当前密码"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:re?"text":"password",autoComplete:"current-password",value:O.oldPassword,onChange:le=>H(ae=>({...ae,oldPassword:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 pr-12 text-sm outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500 dark:border-slate-800 dark:bg-slate-900/50"}),d.jsx("button",{type:"button",onClick:()=>me(le=>!le),className:"absolute inset-y-0 right-0 flex w-12 items-center justify-center text-slate-400 transition-colors hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300","aria-label":re?"隐藏当前密码":"显示当前密码",children:re?d.jsx(ld,{className:"h-4 w-4"}):d.jsx(id,{className:"h-4 w-4"})})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"新密码"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:Re?"text":"password",autoComplete:"new-password",value:O.newPassword,onChange:le=>H(ae=>({...ae,newPassword:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 pr-12 text-sm outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500 dark:border-slate-800 dark:bg-slate-900/50"}),d.jsx("button",{type:"button",onClick:()=>Se(le=>!le),className:"absolute inset-y-0 right-0 flex w-12 items-center justify-center text-slate-400 transition-colors hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300","aria-label":Re?"隐藏新密码":"显示新密码",children:Re?d.jsx(ld,{className:"h-4 w-4"}):d.jsx(id,{className:"h-4 w-4"})})]})]}),d.jsxs("label",{className:"space-y-2",children:[d.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:"确认新密码"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:ge?"text":"password",autoComplete:"new-password",value:O.confirmPassword,onChange:le=>H(ae=>({...ae,confirmPassword:le.target.value})),className:"w-full rounded-xl border border-slate-200 bg-white px-4 py-3 pr-12 text-sm outline-none focus:border-emerald-500 focus:ring-1 focus:ring-emerald-500 dark:border-slate-800 dark:bg-slate-900/50"}),d.jsx("button",{type:"button",onClick:()=>_(le=>!le),className:"absolute inset-y-0 right-0 flex w-12 items-center justify-center text-slate-400 transition-colors hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300","aria-label":ge?"隐藏确认密码":"显示确认密码",children:ge?d.jsx(ld,{className:"h-4 w-4"}):d.jsx(id,{className:"h-4 w-4"})})]})]})]}),F?d.jsx("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-sm text-rose-600 dark:border-rose-900/50 dark:bg-rose-500/10 dark:text-rose-300",children:F}):null,$?d.jsx("div",{className:"rounded-xl border border-emerald-100 bg-emerald-50 px-4 py-3 text-sm text-emerald-600 dark:border-emerald-900/50 dark:bg-emerald-500/10 dark:text-emerald-300",children:$}):null]})}):null]})]})}const BC={username:"",password:"",tenantCode:"",captchaCode:"",remember:!0};function HC(){const a=bi(),[n,l]=LS(),[r,o]=S.useState(BC),[f,h]=S.useState(null),[m,p]=S.useState(!0),[g,y]=S.useState(null),[v,w]=S.useState(!1),[k,T]=S.useState(!0),[E,M]=S.useState(""),A="紫光汇智CRM系统",z=(g==null?void 0:g.systemDescription)||"聚焦客户拓展、商机推进与销售协同,让团队每天的工作节奏更清晰。",O=S.useMemo(()=>g!=null&&g.loginBgUrl?{backgroundImage:`linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(241, 245, 249, 0.94)), url(${g.loginBgUrl})`}:void 0,[g==null?void 0:g.loginBgUrl]),H=async()=>{if(!m)return;const F=await J3();h(F)};if(S.useEffect(()=>{const F=localStorage.getItem("rememberedUsername");F&&o(B=>({...B,username:F}))},[]),S.useEffect(()=>{(async()=>{try{const[B,$]=await Promise.all([W3("security.captcha.enabled","true").catch(()=>"true"),I3().catch(()=>null)]);y($);const ee=B!=="false";p(ee),ee&&await H()}catch{p(!0);try{await H()}catch{h(null)}}finally{T(!1)}})()},[]),S.useEffect(()=>{if(n.get("timeout")==="1"){M("登录超时,请重新登录");const F=new URLSearchParams(n);F.delete("timeout"),l(F,{replace:!0})}},[n,l]),Cb())return d.jsx(fy,{to:"/",replace:!0});const X=(F,B)=>{o($=>({...$,[F]:B})),M("")},ne=async F=>{if(F.preventDefault(),!v){if(!r.username.trim()||!r.password.trim()){M("请输入用户名和密码");return}if(m&&!r.captchaCode.trim()){M("请输入验证码");return}w(!0),M("");try{const B=await $3({username:r.username.trim(),password:r.password,tenantCode:r.tenantCode.trim()||void 0,captchaId:m?f==null?void 0:f.captchaId:void 0,captchaCode:m?r.captchaCode.trim():void 0});K3(B,r.username.trim()),r.remember?localStorage.setItem("rememberedUsername",r.username.trim()):localStorage.removeItem("rememberedUsername");try{const $=await fo();sessionStorage.setItem("userProfile",JSON.stringify($))}catch{sessionStorage.removeItem("userProfile")}a("/",{replace:!0})}catch(B){if(Eo(),M(B instanceof Error?B.message:"登录失败,请稍后重试"),o($=>({...$,captchaCode:""})),m)try{await H()}catch{h(null)}}finally{w(!1)}}};return d.jsxs("div",{className:"login-page-shell",style:O,children:[d.jsx("div",{className:"login-page-backdrop"}),d.jsxs("div",{className:"login-page-grid",children:[d.jsxs("section",{className:"login-page-brand",children:[d.jsxs("div",{className:"login-brand-lockup",children:[d.jsx("div",{className:"login-brand-mark",children:g!=null&&g.logoUrl?d.jsx("img",{src:g.logoUrl,alt:A}):d.jsx("span",{children:"紫"})}),d.jsxs("div",{children:[d.jsx("p",{className:"login-brand-kicker",children:"智慧销售协同平台"}),d.jsx("h1",{children:A})]})]}),d.jsxs("div",{className:"login-hero-copy",children:[d.jsx("p",{className:"login-hero-tag",children:"Sales Workspace"}),d.jsxs("h2",{children:["统一客户管理",d.jsx("br",{}),"高效推进业务增长"]}),d.jsx("p",{children:z})]}),d.jsxs("div",{className:"login-brand-meta",children:[d.jsx("span",{children:"首页"}),d.jsx("span",{children:"拓展"}),d.jsx("span",{children:"商机"}),d.jsx("span",{children:"工作"}),d.jsx("span",{children:"我的"})]})]}),d.jsx("section",{className:"login-panel",children:d.jsxs("div",{className:"login-panel-card",children:[d.jsxs("div",{className:"login-panel-header",children:[d.jsx("p",{className:"login-panel-eyebrow",children:"欢迎回来"}),d.jsx("h3",{children:"紫光汇智CRM系统"})]}),d.jsxs("form",{className:"login-form",onSubmit:ne,children:[d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"用户名"}),d.jsx("input",{autoComplete:"username",value:r.username,onChange:F=>X("username",F.target.value),placeholder:"请输入用户名"})]}),d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"密码"}),d.jsx("input",{type:"password",autoComplete:"current-password",value:r.password,onChange:F=>X("password",F.target.value),placeholder:"请输入密码"})]}),d.jsxs("label",{className:"login-field",children:[d.jsx("span",{children:"租户编码"}),d.jsx("input",{value:r.tenantCode,onChange:F=>X("tenantCode",F.target.value),placeholder:"可选,不填则按后端默认租户登录"})]}),m?d.jsxs("div",{className:"login-field",children:[d.jsx("span",{children:"验证码"}),d.jsxs("div",{className:"login-captcha-row",children:[d.jsx("input",{value:r.captchaCode,onChange:F=>X("captchaCode",F.target.value),placeholder:"请输入验证码"}),d.jsx("button",{className:"login-captcha-button",type:"button",onClick:()=>void H(),disabled:k,children:f!=null&&f.imageBase64?d.jsx("img",{src:f.imageBase64,alt:"验证码"}):d.jsx("span",{children:k?"加载中...":"刷新验证码"})})]})]}):null,d.jsx("div",{className:"login-form-meta",children:d.jsxs("label",{className:"login-checkbox",children:[d.jsx("input",{type:"checkbox",checked:r.remember,onChange:F=>X("remember",F.target.checked)}),d.jsx("span",{children:"记住用户名"})]})}),E?d.jsx("div",{className:"login-error",children:E}):null,d.jsx("button",{className:"login-submit",type:"submit",disabled:v||k,children:v?"登录中...":"立即登录"})]})]})})]})]})}function YC({children:a}){return Cb()?a:d.jsx(fy,{to:"/login",replace:!0})}function qC(){return d.jsx(Zj,{defaultTheme:"light",storageKey:"crm-theme",children:d.jsx(OS,{children:d.jsxs(oS,{children:[d.jsx(Sn,{path:"/login",element:d.jsx(HC,{})}),d.jsxs(Sn,{path:"/",element:d.jsx(YC,{children:d.jsx(Q3,{})}),children:[d.jsx(Sn,{index:!0,element:d.jsx(vE,{})}),d.jsx(Sn,{path:"expansion",element:d.jsx(bE,{})}),d.jsx(Sn,{path:"opportunities",element:d.jsx(SE,{})}),d.jsx(Sn,{path:"work",element:d.jsx(OC,{})}),d.jsx(Sn,{path:"profile",element:d.jsx(LC,{})})]})]})})})}ow.createRoot(document.getElementById("root")).render(d.jsx(S.StrictMode,{children:d.jsx(qC,{})}));
|