@stackloop/ui 4.0.6 → 4.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const f of m.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(d){if(d.ep)return;d.ep=!0;const m=l(d);fetch(d.href,m)}})();function Wx(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hc={exports:{}},Zs={};var Zp;function $x(){if(Zp)return Zs;Zp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(o,d,m){var f=null;if(m!==void 0&&(f=""+m),d.key!==void 0&&(f=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:a,type:o,key:f,ref:d!==void 0?d:null,props:m}}return Zs.Fragment=i,Zs.jsx=l,Zs.jsxs=l,Zs}var Jp;function Ix(){return Jp||(Jp=1,hc.exports=$x()),hc.exports}var c=Ix(),pc={exports:{}},xe={};var Pp;function e1(){if(Pp)return xe;Pp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function N(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,k={};function D(w,H,$){this.props=w,this.context=H,this.refs=k,this.updater=$||E}D.prototype.isReactComponent={},D.prototype.setState=function(w,H){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,H,"setState")},D.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function q(){}q.prototype=D.prototype;function G(w,H,$){this.props=w,this.context=H,this.refs=k,this.updater=$||E}var W=G.prototype=new q;W.constructor=G,O(W,D.prototype),W.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var X={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function ee(w,H,$){var ae=$.ref;return{$$typeof:a,type:w,key:H,ref:ae!==void 0?ae:null,props:$}}function F(w,H){return ee(w.type,H,w.props)}function ne(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function ce(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function($){return H[$]})}var Ee=/\/+/g;function ye(w,H){return typeof w=="object"&&w!==null&&w.key!=null?ce(""+w.key):H.toString(36)}function te(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(P,P):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,H,$,ae,fe){var le=typeof w;(le==="undefined"||le==="boolean")&&(w=null);var he=!1;if(w===null)he=!0;else switch(le){case"bigint":case"string":case"number":he=!0;break;case"object":switch(w.$$typeof){case a:case i:he=!0;break;case b:return he=w._init,R(he(w._payload),H,$,ae,fe)}}if(he)return fe=fe(w),he=ae===""?"."+ye(w,0):ae,Q(fe)?($="",he!=null&&($=he.replace(Ee,"$&/")+"/"),R(fe,H,$,"",function(Qt){return Qt})):fe!=null&&(ne(fe)&&(fe=F(fe,$+(fe.key==null||w&&w.key===fe.key?"":(""+fe.key).replace(Ee,"$&/")+"/")+he)),H.push(fe)),1;he=0;var Ke=ae===""?".":ae+":";if(Q(w))for(var Oe=0;Oe<w.length;Oe++)ae=w[Oe],le=Ke+ye(ae,Oe),he+=R(ae,H,$,le,fe);else if(Oe=N(w),typeof Oe=="function")for(w=Oe.call(w),Oe=0;!(ae=w.next()).done;)ae=ae.value,le=Ke+ye(ae,Oe++),he+=R(ae,H,$,le,fe);else if(le==="object"){if(typeof w.then=="function")return R(te(w),H,$,ae,fe);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function U(w,H,$){if(w==null)return w;var ae=[],fe=0;return R(w,ae,"","",function(le){return H.call($,le,fe++)}),ae}function A(w){if(w._status===-1){var H=w._result;H=H(),H.then(function($){(w._status===0||w._status===-1)&&(w._status=1,w._result=$)},function($){(w._status===0||w._status===-1)&&(w._status=2,w._result=$)}),w._status===-1&&(w._status=0,w._result=H)}if(w._status===1)return w._result.default;throw w._result}var ie=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},de={map:U,forEach:function(w,H,$){U(w,function(){H.apply(this,arguments)},$)},count:function(w){var H=0;return U(w,function(){H++}),H},toArray:function(w){return U(w,function(H){return H})||[]},only:function(w){if(!ne(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return xe.Activity=x,xe.Children=de,xe.Component=D,xe.Fragment=l,xe.Profiler=d,xe.PureComponent=G,xe.StrictMode=o,xe.Suspense=y,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,xe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return X.H.useMemoCache(w)}},xe.cache=function(w){return function(){return w.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(w,H,$){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ae=O({},w.props),fe=w.key;if(H!=null)for(le in H.key!==void 0&&(fe=""+H.key),H)!z.call(H,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&H.ref===void 0||(ae[le]=H[le]);var le=arguments.length-2;if(le===1)ae.children=$;else if(1<le){for(var he=Array(le),Ke=0;Ke<le;Ke++)he[Ke]=arguments[Ke+2];ae.children=he}return ee(w.type,fe,ae)},xe.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},xe.createElement=function(w,H,$){var ae,fe={},le=null;if(H!=null)for(ae in H.key!==void 0&&(le=""+H.key),H)z.call(H,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(fe[ae]=H[ae]);var he=arguments.length-2;if(he===1)fe.children=$;else if(1<he){for(var Ke=Array(he),Oe=0;Oe<he;Oe++)Ke[Oe]=arguments[Oe+2];fe.children=Ke}if(w&&w.defaultProps)for(ae in he=w.defaultProps,he)fe[ae]===void 0&&(fe[ae]=he[ae]);return ee(w,le,fe)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(w){return{$$typeof:g,render:w}},xe.isValidElement=ne,xe.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:A}},xe.memo=function(w,H){return{$$typeof:p,type:w,compare:H===void 0?null:H}},xe.startTransition=function(w){var H=X.T,$={};X.T=$;try{var ae=w(),fe=X.S;fe!==null&&fe($,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(P,ie)}catch(le){ie(le)}finally{H!==null&&$.types!==null&&(H.types=$.types),X.T=H}},xe.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},xe.use=function(w){return X.H.use(w)},xe.useActionState=function(w,H,$){return X.H.useActionState(w,H,$)},xe.useCallback=function(w,H){return X.H.useCallback(w,H)},xe.useContext=function(w){return X.H.useContext(w)},xe.useDebugValue=function(){},xe.useDeferredValue=function(w,H){return X.H.useDeferredValue(w,H)},xe.useEffect=function(w,H){return X.H.useEffect(w,H)},xe.useEffectEvent=function(w){return X.H.useEffectEvent(w)},xe.useId=function(){return X.H.useId()},xe.useImperativeHandle=function(w,H,$){return X.H.useImperativeHandle(w,H,$)},xe.useInsertionEffect=function(w,H){return X.H.useInsertionEffect(w,H)},xe.useLayoutEffect=function(w,H){return X.H.useLayoutEffect(w,H)},xe.useMemo=function(w,H){return X.H.useMemo(w,H)},xe.useOptimistic=function(w,H){return X.H.useOptimistic(w,H)},xe.useReducer=function(w,H,$){return X.H.useReducer(w,H,$)},xe.useRef=function(w){return X.H.useRef(w)},xe.useState=function(w){return X.H.useState(w)},xe.useSyncExternalStore=function(w,H,$){return X.H.useSyncExternalStore(w,H,$)},xe.useTransition=function(){return X.H.useTransition()},xe.version="19.2.1",xe}var Fp;function fd(){return Fp||(Fp=1,pc.exports=e1()),pc.exports}var T=fd();const md=Wx(T);var yc={exports:{}},Js={},gc={exports:{}},bc={};var Wp;function t1(){return Wp||(Wp=1,(function(a){function i(R,U){var A=R.length;R.push(U);e:for(;0<A;){var ie=A-1>>>1,de=R[ie];if(0<d(de,U))R[ie]=U,R[A]=de,A=ie;else break e}}function l(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var U=R[0],A=R.pop();if(A!==U){R[0]=A;e:for(var ie=0,de=R.length,w=de>>>1;ie<w;){var H=2*(ie+1)-1,$=R[H],ae=H+1,fe=R[ae];if(0>d($,A))ae<de&&0>d(fe,$)?(R[ie]=fe,R[ae]=A,ie=ae):(R[ie]=$,R[H]=A,ie=H);else if(ae<de&&0>d(fe,A))R[ie]=fe,R[ae]=A,ie=ae;else break e}}return U}function d(R,U){var A=R.sortIndex-U.sortIndex;return A!==0?A:R.id-U.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var f=Date,g=f.now();a.unstable_now=function(){return f.now()-g}}var y=[],p=[],b=1,x=null,S=3,N=!1,E=!1,O=!1,k=!1,D=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function W(R){for(var U=l(p);U!==null;){if(U.callback===null)o(p);else if(U.startTime<=R)o(p),U.sortIndex=U.expirationTime,i(y,U);else break;U=l(p)}}function Q(R){if(O=!1,W(R),!E)if(l(y)!==null)E=!0,P||(P=!0,ce());else{var U=l(p);U!==null&&te(Q,U.startTime-R)}}var P=!1,X=-1,z=5,ee=-1;function F(){return k?!0:!(a.unstable_now()-ee<z)}function ne(){if(k=!1,P){var R=a.unstable_now();ee=R;var U=!0;try{e:{E=!1,O&&(O=!1,q(X),X=-1),N=!0;var A=S;try{t:{for(W(R),x=l(y);x!==null&&!(x.expirationTime>R&&F());){var ie=x.callback;if(typeof ie=="function"){x.callback=null,S=x.priorityLevel;var de=ie(x.expirationTime<=R);if(R=a.unstable_now(),typeof de=="function"){x.callback=de,W(R),U=!0;break t}x===l(y)&&o(y),W(R)}else o(y);x=l(y)}if(x!==null)U=!0;else{var w=l(p);w!==null&&te(Q,w.startTime-R),U=!1}}break e}finally{x=null,S=A,N=!1}U=void 0}}finally{U?ce():P=!1}}}var ce;if(typeof G=="function")ce=function(){G(ne)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,ye=Ee.port2;Ee.port1.onmessage=ne,ce=function(){ye.postMessage(null)}}else ce=function(){D(ne,0)};function te(R,U){X=D(function(){R(a.unstable_now())},U)}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(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(R){switch(S){case 1:case 2:case 3:var U=3;break;default:U=S}var A=S;S=U;try{return R()}finally{S=A}},a.unstable_requestPaint=function(){k=!0},a.unstable_runWithPriority=function(R,U){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=S;S=R;try{return U()}finally{S=A}},a.unstable_scheduleCallback=function(R,U,A){var ie=a.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?ie+A:ie):A=ie,R){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=A+de,R={id:b++,callback:U,priorityLevel:R,startTime:A,expirationTime:de,sortIndex:-1},A>ie?(R.sortIndex=A,i(p,R),l(y)===null&&R===l(p)&&(O?(q(X),X=-1):O=!0,te(Q,A-ie))):(R.sortIndex=de,i(y,R),E||N||(E=!0,P||(P=!0,ce()))),R},a.unstable_shouldYield=F,a.unstable_wrapCallback=function(R){var U=S;return function(){var A=S;S=U;try{return R.apply(this,arguments)}finally{S=A}}}})(bc)),bc}var $p;function n1(){return $p||($p=1,gc.exports=t1()),gc.exports}var vc={exports:{}},Ct={};var Ip;function a1(){if(Ip)return Ct;Ip=1;var a=fd();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(y,p,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:y,containerInfo:p,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ct.createPortal=function(y,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return m(y,p,null,b)},Ct.flushSync=function(y){var p=f.T,b=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=p,o.p=b,o.d.f()}},Ct.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(y,p))},Ct.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},Ct.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:N}):b==="script"&&o.d.X(y,{crossOrigin:x,integrity:S,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ct.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(y)},Ct.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,x=g(b,p.crossOrigin);o.d.L(y,b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ct.preloadModule=function(y,p){if(typeof y=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(y)},Ct.requestFormReset=function(y){o.d.r(y)},Ct.unstable_batchedUpdates=function(y,p){return y(p)},Ct.useFormState=function(y,p,b){return f.H.useFormState(y,p,b)},Ct.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ct.version="19.2.1",Ct}var ey;function Ng(){if(ey)return vc.exports;ey=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(i){console.error(i)}}return a(),vc.exports=a1(),vc.exports}var ty;function i1(){if(ty)return Js;ty=1;var a=n1(),i=fd(),l=Ng();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function f(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 g(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 y(e){if(m(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return y(r),e;if(u===s)return y(r),t;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=r,s=u;else{for(var h=!1,v=r.child;v;){if(v===n){h=!0,n=r,s=u;break}if(v===s){h=!0,s=r,n=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===n){h=!0,n=u,s=r;break}if(v===s){h=!0,s=u,n=r;break}v=v.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case k:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case G:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var te=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},ie=[],de=-1;function w(e){return{current:e}}function H(e){0>de||(e.current=ie[de],ie[de]=null,de--)}function $(e,t){de++,ie[de]=e.current,e.current=t}var ae=w(null),fe=w(null),le=w(null),he=w(null);function Ke(e,t){switch($(le,t),$(fe,e),$(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=yp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ae),$(ae,e)}function Oe(){H(ae),H(fe),H(le)}function Qt(e){e.memoizedState!==null&&$(he,e);var t=ae.current,n=gp(t,e.type);t!==n&&($(fe,e),$(ae,n))}function un(e){fe.current===e&&(H(ae),H(fe)),he.current===e&&(H(he),qs._currentValue=A)}var st,jn;function gn(e){if(st===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);st=t&&t[1]||"",jn=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+st+e+jn}var es=!1;function Ia(e,t){if(!e||es)return"";es=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(L){var B=L}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(L){B=L}e.call(Z.prototype)}}else{try{throw Error()}catch(L){B=L}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(L){if(L&&B&&typeof L.stack=="string")return[L.stack,B.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var C=h.split(`
4
+ `),_=v.split(`
5
+ `);for(r=s=0;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;for(;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;if(s===C.length||r===_.length)for(s=C.length-1,r=_.length-1;1<=s&&0<=r&&C[s]!==_[r];)r--;for(;1<=s&&0<=r;s--,r--)if(C[s]!==_[r]){if(s!==1||r!==1)do if(s--,r--,0>r||C[s]!==_[r]){var Y=`
6
+ `+C[s].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=s&&0<=r);break}}}finally{es=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gn(n):""}function fl(e,t){switch(e.tag){case 26:case 27:case 5:return gn(e.type);case 16:return gn("Lazy");case 13:return e.child!==t&&t!==null?gn("Suspense Fallback"):gn("Suspense");case 19:return gn("SuspenseList");case 0:case 15:return Ia(e.type,!1);case 11:return Ia(e.type.render,!1);case 1:return Ia(e.type,!0);case 31:return gn("Activity");default:return""}}function ei(e){try{var t="",n=null;do t+=fl(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
7
+ Error generating stack: `+s.message+`
8
+ `+s.stack}}var I=Object.prototype.hasOwnProperty,be=a.unstable_scheduleCallback,Ne=a.unstable_cancelCallback,cn=a.unstable_shouldYield,jt=a.unstable_requestPaint,Tt=a.unstable_now,tr=a.unstable_getCurrentPriorityLevel,ti=a.unstable_ImmediatePriority,Tn=a.unstable_UserBlockingPriority,ml=a.unstable_NormalPriority,zb=a.unstable_LowPriority,Pd=a.unstable_IdlePriority,Ob=a.log,Vb=a.unstable_setDisableYieldValue,ts=null,kt=null;function Pn(e){if(typeof Ob=="function"&&Vb(e),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(ts,e)}catch{}}var Bt=Math.clz32?Math.clz32:Bb,_b=Math.log,kb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(_b(e)/kb|0)|0}var hl=256,pl=262144,yl=4194304;function Na(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 gl(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var r=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=s&134217727;return v!==0?(s=v&~u,s!==0?r=Na(s):(h&=v,h!==0?r=Na(h):n||(n=v&~e,n!==0&&(r=Na(n))))):(v=s&~u,v!==0?r=Na(v):h!==0?r=Na(h):n||(n=s&~e,n!==0&&(r=Na(n)))),r===0?0:t!==0&&t!==r&&(t&u)===0&&(u=r&-r,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:r}function ns(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Lb(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 Fd(){var e=yl;return yl<<=1,(yl&62914560)===0&&(yl=4194304),e}function nr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function as(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ub(e,t,n,s,r,u){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,C=e.expirationTimes,_=e.hiddenUpdates;for(n=h&~n;0<n;){var Y=31-Bt(n),Z=1<<Y;v[Y]=0,C[Y]=-1;var B=_[Y];if(B!==null)for(_[Y]=null,Y=0;Y<B.length;Y++){var L=B[Y];L!==null&&(L.lane&=-536870913)}n&=~Z}s!==0&&Wd(e,s,0),u!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Wd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Bt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function $d(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Bt(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}function Id(e,t){var n=t&-t;return n=(n&42)!==0?1:ar(n),(n&(e.suspendedLanes|t))!==0?0:n}function ar(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 ir(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ef(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:Hp(e.type))}function tf(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}var Fn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Fn,Mt="__reactProps$"+Fn,ni="__reactContainer$"+Fn,sr="__reactEvents$"+Fn,Hb="__reactListeners$"+Fn,Gb="__reactHandles$"+Fn,nf="__reactResources$"+Fn,is="__reactMarker$"+Fn;function lr(e){delete e[dt],delete e[Mt],delete e[sr],delete e[Hb],delete e[Gb]}function ai(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ni]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jp(e);e!==null;){if(n=e[dt])return n;e=jp(e)}return t}e=n,n=e.parentNode}return null}function ii(e){if(e=e[dt]||e[ni]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ss(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function si(e){var t=e[nf];return t||(t=e[nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[is]=!0}var af=new Set,sf={};function Aa(e,t){li(e,t),li(e+"Capture",t)}function li(e,t){for(sf[e]=t,e=0;e<t.length;e++)af.add(t[e])}var Yb=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]*$"),lf={},of={};function qb(e){return I.call(of,e)?!0:I.call(lf,e)?!1:Yb.test(e)?of[e]=!0:(lf[e]=!0,!1)}function bl(e,t,n){if(qb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vl(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Nn(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xb(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function or(e){if(!e._valueTracker){var t=rf(e)?"checked":"value";e._valueTracker=Xb(e,t,""+e[t])}}function uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=rf(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function xl(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 Kb=/[\n"\\]/g;function Jt(e){return e.replace(Kb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rr(e,t,n,s,r,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ur(e,h,Zt(t)):n!=null?ur(e,h,Zt(n)):s!=null&&e.removeAttribute("value"),r==null&&u!=null&&(e.defaultChecked=!!u),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Zt(v):e.removeAttribute("name")}function cf(e,t,n,s,r,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){or(e);return}n=n!=null?""+Zt(n):"",t=t!=null?""+Zt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=v?e.checked:!!s,e.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),or(e)}function ur(e,t,n){t==="number"&&xl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function oi(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Zt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function df(e,t,n){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Zt(n):""}function ff(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(o(92));if(te(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Zt(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),or(e)}function ri(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qb=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 mf(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||Qb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hf(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var r in t)s=t[r],t.hasOwnProperty(r)&&n[r]!==s&&mf(e,r,s)}else for(var u in t)t.hasOwnProperty(u)&&mf(e,u,t[u])}function cr(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 Sl(e){return Jb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function An(){}var dr=null;function fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,ci=null;function pf(e){var t=ii(e);if(t&&(e=t.stateNode)){var n=e[Mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(rr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=s[Mt]||null;if(!r)throw Error(o(90));rr(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&uf(s)}break e;case"textarea":df(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&oi(e,!!n.multiple,t,!1)}}}var mr=!1;function yf(e,t,n){if(mr)return e(t,n);mr=!0;try{var s=e(t);return s}finally{if(mr=!1,(ui!==null||ci!==null)&&(ro(),ui&&(t=ui,e=ci,ci=ui=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function ls(e,t){var n=e.stateNode;if(n===null)return null;var s=n[Mt]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hr=!1;if(Mn)try{var os={};Object.defineProperty(os,"passive",{get:function(){hr=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{hr=!1}var Wn=null,pr=null,Cl=null;function gf(){if(Cl)return Cl;var e,t=pr,n=t.length,s,r="value"in Wn?Wn.value:Wn.textContent,u=r.length;for(e=0;e<n&&t[e]===r[e];e++);var h=n-e;for(s=1;s<=h&&t[n-s]===r[u-s];s++);return Cl=r.slice(e,1<s?1-s:void 0)}function wl(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 jl(){return!0}function bf(){return!1}function Et(e){function t(n,s,r,u,h){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?jl:bf,this.isPropagationStopped=bf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tl=Et(Ma),rs=x({},Ma,{view:0,detail:0}),Pb=Et(rs),yr,gr,us,Nl=x({},rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vr,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!==us&&(us&&e.type==="mousemove"?(yr=e.screenX-us.screenX,gr=e.screenY-us.screenY):gr=yr=0,us=e),yr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),vf=Et(Nl),Fb=x({},Nl,{dataTransfer:0}),Wb=Et(Fb),$b=x({},rs,{relatedTarget:0}),br=Et($b),Ib=x({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=Et(Ib),tv=x({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nv=Et(tv),av=x({},Ma,{data:0}),xf=Et(av),iv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},lv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ov(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lv[e])?!!t[e]:!1}function vr(){return ov}var rv=x({},rs,{key:function(e){if(e.key){var t=iv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vr,charCode:function(e){return e.type==="keypress"?wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uv=Et(rv),cv=x({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=Et(cv),dv=x({},rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vr}),fv=Et(dv),mv=x({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),hv=Et(mv),pv=x({},Nl,{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}),yv=Et(pv),gv=x({},Ma,{newState:0,oldState:0}),bv=Et(gv),vv=[9,13,27,32],xr=Mn&&"CompositionEvent"in window,cs=null;Mn&&"documentMode"in document&&(cs=document.documentMode);var xv=Mn&&"TextEvent"in window&&!cs,Cf=Mn&&(!xr||cs&&8<cs&&11>=cs),wf=" ",jf=!1;function Tf(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function Sv(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(jf=!0,wf);case"textInput":return e=t.data,e===wf&&jf?null:e;default:return null}}function Cv(e,t){if(di)return e==="compositionend"||!xr&&Tf(e,t)?(e=gf(),Cl=pr=Wn=null,di=!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 Cf&&t.locale!=="ko"?null:t.data;default:return null}}var wv={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 Af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wv[e.type]:t==="textarea"}function Mf(e,t,n,s){ui?ci?ci.push(s):ci=[s]:ui=s,t=yo(t,"onChange"),0<t.length&&(n=new Tl("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ds=null,fs=null;function jv(e){cp(e,0)}function Al(e){var t=ss(e);if(uf(t))return e}function Ef(e,t){if(e==="change")return t}var Df=!1;if(Mn){var Sr;if(Mn){var Cr="oninput"in document;if(!Cr){var Rf=document.createElement("div");Rf.setAttribute("oninput","return;"),Cr=typeof Rf.oninput=="function"}Sr=Cr}else Sr=!1;Df=Sr&&(!document.documentMode||9<document.documentMode)}function zf(){ds&&(ds.detachEvent("onpropertychange",Of),fs=ds=null)}function Of(e){if(e.propertyName==="value"&&Al(fs)){var t=[];Mf(t,fs,e,fr(e)),yf(jv,t)}}function Tv(e,t,n){e==="focusin"?(zf(),ds=t,fs=n,ds.attachEvent("onpropertychange",Of)):e==="focusout"&&zf()}function Nv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Al(fs)}function Av(e,t){if(e==="click")return Al(t)}function Mv(e,t){if(e==="input"||e==="change")return Al(t)}function Ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Ev;function ms(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!I.call(t,r)||!Lt(e[r],t[r]))return!1}return!0}function Vf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _f(e,t){var n=Vf(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vf(n)}}function kf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xl(e.document)}return t}function wr(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 Dv=Mn&&"documentMode"in document&&11>=document.documentMode,fi=null,jr=null,hs=null,Tr=!1;function Lf(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||fi==null||fi!==xl(s)||(s=fi,"selectionStart"in s&&wr(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hs&&ms(hs,s)||(hs=s,s=yo(jr,"onSelect"),0<s.length&&(t=new Tl("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=fi)))}function Ea(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mi={animationend:Ea("Animation","AnimationEnd"),animationiteration:Ea("Animation","AnimationIteration"),animationstart:Ea("Animation","AnimationStart"),transitionrun:Ea("Transition","TransitionRun"),transitionstart:Ea("Transition","TransitionStart"),transitioncancel:Ea("Transition","TransitionCancel"),transitionend:Ea("Transition","TransitionEnd")},Nr={},Uf={};Mn&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function Da(e){if(Nr[e])return Nr[e];if(!mi[e])return e;var t=mi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Uf)return Nr[e]=t[n];return e}var Hf=Da("animationend"),Gf=Da("animationiteration"),Yf=Da("animationstart"),Rv=Da("transitionrun"),zv=Da("transitionstart"),Ov=Da("transitioncancel"),qf=Da("transitionend"),Xf=new Map,Ar="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(" ");Ar.push("scrollEnd");function dn(e,t){Xf.set(e,t),Aa(t,[e])}var Ml=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)},Pt=[],hi=0,Mr=0;function El(){for(var e=hi,t=Mr=hi=0;t<e;){var n=Pt[t];Pt[t++]=null;var s=Pt[t];Pt[t++]=null;var r=Pt[t];Pt[t++]=null;var u=Pt[t];if(Pt[t++]=null,s!==null&&r!==null){var h=s.pending;h===null?r.next=r:(r.next=h.next,h.next=r),s.pending=r}u!==0&&Kf(n,r,u)}}function Dl(e,t,n,s){Pt[hi++]=e,Pt[hi++]=t,Pt[hi++]=n,Pt[hi++]=s,Mr|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Er(e,t,n,s){return Dl(e,t,n,s),Rl(e)}function Ra(e,t){return Dl(e,null,null,t),Rl(e)}function Kf(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var r=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(r=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,r&&t!==null&&(r=31-Bt(n),e=u.hiddenUpdates,s=e[r],s===null?e[r]=[t]:s.push(t),t.lane=n|536870912),u):null}function Rl(e){if(50<ks)throw ks=0,Lu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pi={};function Vv(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,s){return new Vv(e,t,n,s)}function Dr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zl(e,t,n,s,r,u){var h=0;if(s=e,typeof e=="function")Dr(e)&&(h=1);else if(typeof e=="string")h=Ux(e,n,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Ut(31,n,t,r),e.elementType=ee,e.lanes=u,e;case O:return za(n.children,r,u,t);case k:h=8,r|=24;break;case D:return e=Ut(12,n,t,r|2),e.elementType=D,e.lanes=u,e;case Q:return e=Ut(13,n,t,r),e.elementType=Q,e.lanes=u,e;case P:return e=Ut(19,n,t,r),e.elementType=P,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:h=10;break e;case q:h=9;break e;case W:h=11;break e;case X:h=14;break e;case z:h=16,s=null;break e}h=29,n=Error(o(130,e===null?"null":typeof e,"")),s=null}return t=Ut(h,n,t,r),t.elementType=e,t.type=s,t.lanes=u,t}function za(e,t,n,s){return e=Ut(7,e,s,t),e.lanes=n,e}function Rr(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Zf(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function zr(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jf=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var n=Jf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ei(t)},Jf.set(e,t),t)}return{value:e,source:t,stack:ei(t)}}var yi=[],gi=0,Ol=null,ps=0,Wt=[],$t=0,$n=null,bn=1,vn="";function Dn(e,t){yi[gi++]=ps,yi[gi++]=Ol,Ol=e,ps=t}function Pf(e,t,n){Wt[$t++]=bn,Wt[$t++]=vn,Wt[$t++]=$n,$n=e;var s=bn;e=vn;var r=32-Bt(s)-1;s&=~(1<<r),n+=1;var u=32-Bt(t)+r;if(30<u){var h=r-r%5;u=(s&(1<<h)-1).toString(32),s>>=h,r-=h,bn=1<<32-Bt(t)+r|n<<r|s,vn=u+e}else bn=1<<u|n<<r|s,vn=e}function Or(e){e.return!==null&&(Dn(e,1),Pf(e,1,0))}function Vr(e){for(;e===Ol;)Ol=yi[--gi],yi[gi]=null,ps=yi[--gi],yi[gi]=null;for(;e===$n;)$n=Wt[--$t],Wt[$t]=null,vn=Wt[--$t],Wt[$t]=null,bn=Wt[--$t],Wt[$t]=null}function Ff(e,t){Wt[$t++]=bn,Wt[$t++]=vn,Wt[$t++]=$n,bn=t.id,vn=t.overflow,$n=e}var ft=null,qe=null,De=!1,In=null,It=!1,_r=Error(o(519));function ea(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ys(Ft(t,e)),_r}function Wf(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[dt]=e,t[Mt]=s,n){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(n=0;n<Ls.length;n++)Te(Ls[n],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),cf(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),ff(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||hp(t.textContent,n)?(s.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),s.onScroll!=null&&Te("scroll",t),s.onScrollEnd!=null&&Te("scrollend",t),s.onClick!=null&&(t.onclick=An),t=!0):t=!1,t||ea(e,!0)}function $f(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 31:case 13:It=!1;return;case 27:case 3:It=!0;return;default:ft=ft.return}}function bi(e){if(e!==ft)return!1;if(!De)return $f(e),De=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Iu(e.type,e.memoizedProps)),n=!n),n&&qe&&ea(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=wp(e)}else t===27?(t=qe,ha(e.type)?(e=ic,ic=null,qe=e):qe=t):qe=ft?tn(e.stateNode.nextSibling):null;return!0}function Oa(){qe=ft=null,De=!1}function kr(){var e=In;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),In=null),e}function ys(e){In===null?In=[e]:In.push(e)}var Br=w(null),Va=null,Rn=null;function ta(e,t,n){$(Br,t._currentValue),t._currentValue=n}function zn(e){e._currentValue=Br.current,H(Br)}function Lr(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Ur(e,t,n,s){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=r;for(var C=0;C<t.length;C++)if(v.context===t[C]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),Lr(u.return,n,e),s||(h=null);break e}u=v.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Lr(h,n,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function vi(e,t,n,s){e=null;for(var r=t,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var v=r.type;Lt(r.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(r===he.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}r=r.return}e!==null&&Ur(t,e,n,s),t.flags|=262144}function Vl(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Va=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return If(Va,e)}function _l(e,t){return Va===null&&_a(e),If(e,t)}function If(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Rn===null){if(e===null)throw Error(o(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return n}var _v=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},kv=a.unstable_scheduleCallback,Bv=a.unstable_NormalPriority,et={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hr(){return{controller:new _v,data:new Map,refCount:0}}function gs(e){e.refCount--,e.refCount===0&&kv(Bv,function(){e.controller.abort()})}var bs=null,Gr=0,xi=0,Si=null;function Lv(e,t){if(bs===null){var n=bs=[];Gr=0,xi=Xu(),Si={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Gr++,t.then(em,em),t}function em(){if(--Gr===0&&bs!==null){Si!==null&&(Si.status="fulfilled");var e=bs;bs=null,xi=0,Si=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Uv(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}var tm=R.S;R.S=function(e,t){Lh=Tt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lv(e,t),tm!==null&&tm(e,t)};var ka=w(null);function Yr(){var e=ka.current;return e!==null?e:Ge.pooledCache}function kl(e,t){t===null?$(ka,ka.current):$(ka,t.pool)}function nm(){var e=Yr();return e===null?null:{parent:et._currentValue,pool:e}}var Ci=Error(o(460)),qr=Error(o(474)),Bl=Error(o(542)),Ll={then:function(){}};function am(e){return e=e.status,e==="fulfilled"||e==="rejected"}function im(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(An,An),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e;default:if(typeof t.status=="string")t.then(An,An);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=s}},function(s){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lm(e),e}throw La=t,Ci}}function Ba(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(La=n,Ci):n}}var La=null;function sm(){if(La===null)throw Error(o(459));var e=La;return La=null,e}function lm(e){if(e===Ci||e===Bl)throw Error(o(483))}var wi=null,vs=0;function Ul(e){var t=vs;return vs+=1,wi===null&&(wi=[]),im(wi,e,t)}function xs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hl(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function om(e){function t(M,j){if(e){var V=M.deletions;V===null?(M.deletions=[j],M.flags|=16):V.push(j)}}function n(M,j){if(!e)return null;for(;j!==null;)t(M,j),j=j.sibling;return null}function s(M){for(var j=new Map;M!==null;)M.key!==null?j.set(M.key,M):j.set(M.index,M),M=M.sibling;return j}function r(M,j){return M=En(M,j),M.index=0,M.sibling=null,M}function u(M,j,V){return M.index=V,e?(V=M.alternate,V!==null?(V=V.index,V<j?(M.flags|=67108866,j):V):(M.flags|=67108866,j)):(M.flags|=1048576,j)}function h(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,j,V,K){return j===null||j.tag!==6?(j=Rr(V,M.mode,K),j.return=M,j):(j=r(j,V),j.return=M,j)}function C(M,j,V,K){var pe=V.type;return pe===O?Y(M,j,V.props.children,K,V.key):j!==null&&(j.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===z&&Ba(pe)===j.type)?(j=r(j,V.props),xs(j,V),j.return=M,j):(j=zl(V.type,V.key,V.props,null,M.mode,K),xs(j,V),j.return=M,j)}function _(M,j,V,K){return j===null||j.tag!==4||j.stateNode.containerInfo!==V.containerInfo||j.stateNode.implementation!==V.implementation?(j=zr(V,M.mode,K),j.return=M,j):(j=r(j,V.children||[]),j.return=M,j)}function Y(M,j,V,K,pe){return j===null||j.tag!==7?(j=za(V,M.mode,K,pe),j.return=M,j):(j=r(j,V),j.return=M,j)}function Z(M,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Rr(""+j,M.mode,V),j.return=M,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return V=zl(j.type,j.key,j.props,null,M.mode,V),xs(V,j),V.return=M,V;case E:return j=zr(j,M.mode,V),j.return=M,j;case z:return j=Ba(j),Z(M,j,V)}if(te(j)||ce(j))return j=za(j,M.mode,V,null),j.return=M,j;if(typeof j.then=="function")return Z(M,Ul(j),V);if(j.$$typeof===G)return Z(M,_l(M,j),V);Hl(M,j)}return null}function B(M,j,V,K){var pe=j!==null?j.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return pe!==null?null:v(M,j,""+V,K);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return V.key===pe?C(M,j,V,K):null;case E:return V.key===pe?_(M,j,V,K):null;case z:return V=Ba(V),B(M,j,V,K)}if(te(V)||ce(V))return pe!==null?null:Y(M,j,V,K,null);if(typeof V.then=="function")return B(M,j,Ul(V),K);if(V.$$typeof===G)return B(M,j,_l(M,V),K);Hl(M,V)}return null}function L(M,j,V,K,pe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return M=M.get(V)||null,v(j,M,""+K,pe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case N:return M=M.get(K.key===null?V:K.key)||null,C(j,M,K,pe);case E:return M=M.get(K.key===null?V:K.key)||null,_(j,M,K,pe);case z:return K=Ba(K),L(M,j,V,K,pe)}if(te(K)||ce(K))return M=M.get(V)||null,Y(j,M,K,pe,null);if(typeof K.then=="function")return L(M,j,V,Ul(K),pe);if(K.$$typeof===G)return L(M,j,V,_l(j,K),pe);Hl(j,K)}return null}function se(M,j,V,K){for(var pe=null,Re=null,ue=j,Ce=j=0,Me=null;ue!==null&&Ce<V.length;Ce++){ue.index>Ce?(Me=ue,ue=null):Me=ue.sibling;var ze=B(M,ue,V[Ce],K);if(ze===null){ue===null&&(ue=Me);break}e&&ue&&ze.alternate===null&&t(M,ue),j=u(ze,j,Ce),Re===null?pe=ze:Re.sibling=ze,Re=ze,ue=Me}if(Ce===V.length)return n(M,ue),De&&Dn(M,Ce),pe;if(ue===null){for(;Ce<V.length;Ce++)ue=Z(M,V[Ce],K),ue!==null&&(j=u(ue,j,Ce),Re===null?pe=ue:Re.sibling=ue,Re=ue);return De&&Dn(M,Ce),pe}for(ue=s(ue);Ce<V.length;Ce++)Me=L(ue,M,Ce,V[Ce],K),Me!==null&&(e&&Me.alternate!==null&&ue.delete(Me.key===null?Ce:Me.key),j=u(Me,j,Ce),Re===null?pe=Me:Re.sibling=Me,Re=Me);return e&&ue.forEach(function(va){return t(M,va)}),De&&Dn(M,Ce),pe}function ge(M,j,V,K){if(V==null)throw Error(o(151));for(var pe=null,Re=null,ue=j,Ce=j=0,Me=null,ze=V.next();ue!==null&&!ze.done;Ce++,ze=V.next()){ue.index>Ce?(Me=ue,ue=null):Me=ue.sibling;var va=B(M,ue,ze.value,K);if(va===null){ue===null&&(ue=Me);break}e&&ue&&va.alternate===null&&t(M,ue),j=u(va,j,Ce),Re===null?pe=va:Re.sibling=va,Re=va,ue=Me}if(ze.done)return n(M,ue),De&&Dn(M,Ce),pe;if(ue===null){for(;!ze.done;Ce++,ze=V.next())ze=Z(M,ze.value,K),ze!==null&&(j=u(ze,j,Ce),Re===null?pe=ze:Re.sibling=ze,Re=ze);return De&&Dn(M,Ce),pe}for(ue=s(ue);!ze.done;Ce++,ze=V.next())ze=L(ue,M,Ce,ze.value,K),ze!==null&&(e&&ze.alternate!==null&&ue.delete(ze.key===null?Ce:ze.key),j=u(ze,j,Ce),Re===null?pe=ze:Re.sibling=ze,Re=ze);return e&&ue.forEach(function(Fx){return t(M,Fx)}),De&&Dn(M,Ce),pe}function He(M,j,V,K){if(typeof V=="object"&&V!==null&&V.type===O&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case N:e:{for(var pe=V.key;j!==null;){if(j.key===pe){if(pe=V.type,pe===O){if(j.tag===7){n(M,j.sibling),K=r(j,V.props.children),K.return=M,M=K;break e}}else if(j.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===z&&Ba(pe)===j.type){n(M,j.sibling),K=r(j,V.props),xs(K,V),K.return=M,M=K;break e}n(M,j);break}else t(M,j);j=j.sibling}V.type===O?(K=za(V.props.children,M.mode,K,V.key),K.return=M,M=K):(K=zl(V.type,V.key,V.props,null,M.mode,K),xs(K,V),K.return=M,M=K)}return h(M);case E:e:{for(pe=V.key;j!==null;){if(j.key===pe)if(j.tag===4&&j.stateNode.containerInfo===V.containerInfo&&j.stateNode.implementation===V.implementation){n(M,j.sibling),K=r(j,V.children||[]),K.return=M,M=K;break e}else{n(M,j);break}else t(M,j);j=j.sibling}K=zr(V,M.mode,K),K.return=M,M=K}return h(M);case z:return V=Ba(V),He(M,j,V,K)}if(te(V))return se(M,j,V,K);if(ce(V)){if(pe=ce(V),typeof pe!="function")throw Error(o(150));return V=pe.call(V),ge(M,j,V,K)}if(typeof V.then=="function")return He(M,j,Ul(V),K);if(V.$$typeof===G)return He(M,j,_l(M,V),K);Hl(M,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,j!==null&&j.tag===6?(n(M,j.sibling),K=r(j,V),K.return=M,M=K):(n(M,j),K=Rr(V,M.mode,K),K.return=M,M=K),h(M)):n(M,j)}return function(M,j,V,K){try{vs=0;var pe=He(M,j,V,K);return wi=null,pe}catch(ue){if(ue===Ci||ue===Bl)throw ue;var Re=Ut(29,ue,null,M.mode);return Re.lanes=K,Re.return=M,Re}finally{}}}var Ua=om(!0),rm=om(!1),na=!1;function Xr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kr(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 aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ve&2)!==0){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,t=Rl(e),Kf(e,null,n),t}return Dl(e,s,t,n),Rl(e)}function Ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,$d(e,n)}}function Qr(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=t:u=u.next=t}else r=u=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Zr=!1;function Cs(){if(Zr){var e=Si;if(e!==null)throw e}}function ws(e,t,n,s){Zr=!1;var r=e.updateQueue;na=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var C=v,_=C.next;C.next=null,h===null?u=_:h.next=_,h=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,v=Y.lastBaseUpdate,v!==h&&(v===null?Y.firstBaseUpdate=_:v.next=_,Y.lastBaseUpdate=C))}if(u!==null){var Z=r.baseState;h=0,Y=_=C=null,v=u;do{var B=v.lane&-536870913,L=B!==v.lane;if(L?(Ae&B)===B:(s&B)===B){B!==0&&B===xi&&(Zr=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var se=e,ge=v;B=t;var He=n;switch(ge.tag){case 1:if(se=ge.payload,typeof se=="function"){Z=se.call(He,Z,B);break e}Z=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ge.payload,B=typeof se=="function"?se.call(He,Z,B):se,B==null)break e;Z=x({},Z,B);break e;case 2:na=!0}}B=v.callback,B!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[B]:L.push(B))}else L={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(_=Y=L,C=Z):Y=Y.next=L,h|=B;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;L=v,v=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);Y===null&&(C=Z),r.baseState=C,r.firstBaseUpdate=_,r.lastBaseUpdate=Y,u===null&&(r.shared.lanes=0),ua|=h,e.lanes=h,e.memoizedState=Z}}function um(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function cm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)um(n[e],t)}var ji=w(null),Gl=w(0);function dm(e,t){e=Gn,$(Gl,e),$(ji,t),Gn=e|t.baseLanes}function Jr(){$(Gl,Gn),$(ji,ji.current)}function Pr(){Gn=Gl.current,H(ji),H(Gl)}var Ht=w(null),en=null;function sa(e){var t=e.alternate;$($e,$e.current&1),$(Ht,e),en===null&&(t===null||ji.current!==null||t.memoizedState!==null)&&(en=e)}function Fr(e){$($e,$e.current),$(Ht,e),en===null&&(en=e)}function fm(e){e.tag===22?($($e,$e.current),$(Ht,e),en===null&&(en=e)):la()}function la(){$($e,$e.current),$(Ht,Ht.current)}function Gt(e){H(Ht),en===e&&(en=null),H($e)}var $e=w(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||nc(n)||ac(n)))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 On=0,Se=null,Le=null,tt=null,ql=!1,Ti=!1,Ha=!1,Xl=0,js=0,Ni=null,Hv=0;function Pe(){throw Error(o(321))}function Wr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function $r(e,t,n,s,r,u){return On=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Pm:mu,Ha=!1,u=n(s,r),Ha=!1,Ti&&(u=hm(t,n,s,r)),mm(e),u}function mm(e){R.H=As;var t=Le!==null&&Le.next!==null;if(On=0,tt=Le=Se=null,ql=!1,js=0,Ni=null,t)throw Error(o(300));e===null||nt||(e=e.dependencies,e!==null&&Vl(e)&&(nt=!0))}function hm(e,t,n,s){Se=e;var r=0;do{if(Ti&&(Ni=null),js=0,Ti=!1,25<=r)throw Error(o(301));if(r+=1,tt=Le=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Fm,u=t(n,s)}while(Ti);return u}function Gv(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?Ts(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Se.flags|=1024),t}function Ir(){var e=Xl!==0;return Xl=0,e}function eu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tu(e){if(ql){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ql=!1}On=0,tt=Le=Se=null,Ti=!1,js=Xl=0,Ni=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?Se.memoizedState=tt=e:tt=tt.next=e,tt}function Ie(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=tt===null?Se.memoizedState:tt.next;if(t!==null)tt=t,Le=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},tt===null?Se.memoizedState=tt=e:tt=tt.next=e}return tt}function Kl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ts(e){var t=js;return js+=1,Ni===null&&(Ni=[]),e=im(Ni,e,t),t=Se,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Pm:mu),e}function Ql(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ts(e);if(e.$$typeof===G)return mt(e)}throw Error(o(438,String(e)))}function nu(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Se.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kl(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=F;return t.index++,n}function Vn(e,t){return typeof t=="function"?t(e):t}function Zl(e){var t=Ie();return au(t,Le,e)}function au(e,t,n){var s=e.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var r=e.baseQueue,u=s.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}t.baseQueue=r=u,s.pending=null}if(u=e.baseState,r===null)e.memoizedState=u;else{t=r.next;var v=h=null,C=null,_=t,Y=!1;do{var Z=_.lane&-536870913;if(Z!==_.lane?(Ae&Z)===Z:(On&Z)===Z){var B=_.revertLane;if(B===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),Z===xi&&(Y=!0);else if((On&B)===B){_=_.next,B===xi&&(Y=!0);continue}else Z={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},C===null?(v=C=Z,h=u):C=C.next=Z,Se.lanes|=B,ua|=B;Z=_.action,Ha&&n(u,Z),u=_.hasEagerState?_.eagerState:n(u,Z)}else B={lane:Z,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},C===null?(v=C=B,h=u):C=C.next=B,Se.lanes|=Z,ua|=Z;_=_.next}while(_!==null&&_!==t);if(C===null?h=u:C.next=v,!Lt(u,e.memoizedState)&&(nt=!0,Y&&(n=Si,n!==null)))throw n;e.memoizedState=u,e.baseState=h,e.baseQueue=C,s.lastRenderedState=u}return r===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function iu(e){var t=Ie(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var s=n.dispatch,r=n.pending,u=t.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=e(u,h.action),h=h.next;while(h!==r);Lt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function pm(e,t,n){var s=Se,r=Ie(),u=De;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var h=!Lt((Le||r).memoizedState,n);if(h&&(r.memoizedState=n,nt=!0),r=r.queue,ou(bm.bind(null,s,r,e),[e]),r.getSnapshot!==t||h||tt!==null&&tt.memoizedState.tag&1){if(s.flags|=2048,Ai(9,{destroy:void 0},gm.bind(null,s,r,n,t),null),Ge===null)throw Error(o(349));u||(On&127)!==0||ym(s,t,n)}return n}function ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Kl(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gm(e,t,n,s){t.value=n,t.getSnapshot=s,vm(t)&&xm(e)}function bm(e,t,n){return n(function(){vm(t)&&xm(e)})}function vm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function xm(e){var t=Ra(e,2);t!==null&&Vt(t,e,2)}function su(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),Ha){Pn(!0);try{n()}finally{Pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function Sm(e,t,n,s){return e.baseState=n,au(e,Le,typeof s=="function"?s:Vn)}function Yv(e,t,n,s,r){if(Fl(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};R.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,Cm(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Cm(e,t){var n=t.action,s=t.payload,r=e.state;if(t.isTransition){var u=R.T,h={};R.T=h;try{var v=n(r,s),C=R.S;C!==null&&C(h,v),wm(e,t,v)}catch(_){lu(e,t,_)}finally{u!==null&&h.types!==null&&(u.types=h.types),R.T=u}}else try{u=n(r,s),wm(e,t,u)}catch(_){lu(e,t,_)}}function wm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){jm(e,t,s)},function(s){return lu(e,t,s)}):jm(e,t,n)}function jm(e,t,n){t.status="fulfilled",t.value=n,Tm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cm(e,n)))}function lu(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Tm(t),t=t.next;while(t!==s)}e.action=null}function Tm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nm(e,t){return t}function Am(e,t){if(De){var n=Ge.formState;if(n!==null){e:{var s=Se;if(De){if(qe){t:{for(var r=qe,u=It;r.nodeType!==8;){if(!u){r=null;break t}if(r=tn(r.nextSibling),r===null){r=null;break t}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){qe=tn(r.nextSibling),s=r.data==="F!";break e}}ea(s)}s=!1}s&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nm,lastRenderedState:t},n.queue=s,n=Qm.bind(null,Se,s),s.dispatch=n,s=su(!1),u=fu.bind(null,Se,!1,s.queue),s=Nt(),r={state:t,dispatch:null,action:e,pending:null},s.queue=r,n=Yv.bind(null,Se,r,u,n),r.dispatch=n,s.memoizedState=e,[t,n,!1]}function Mm(e){var t=Ie();return Em(t,Le,e)}function Em(e,t,n){if(t=au(e,t,Nm)[0],e=Zl(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Ts(t)}catch(h){throw h===Ci?Bl:h}else s=t;t=Ie();var r=t.queue,u=r.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,Ai(9,{destroy:void 0},qv.bind(null,r,n),null)),[s,u,e]}function qv(e,t){e.action=t}function Dm(e){var t=Ie(),n=Le;if(n!==null)return Em(t,n,e);Ie(),t=t.memoizedState,n=Ie();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Ai(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Kl(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Rm(){return Ie().memoizedState}function Jl(e,t,n,s){var r=Nt();Se.flags|=e,r.memoizedState=Ai(1|t,{destroy:void 0},n,s===void 0?null:s)}function Pl(e,t,n,s){var r=Ie();s=s===void 0?null:s;var u=r.memoizedState.inst;Le!==null&&s!==null&&Wr(s,Le.memoizedState.deps)?r.memoizedState=Ai(t,u,n,s):(Se.flags|=e,r.memoizedState=Ai(1|t,u,n,s))}function zm(e,t){Jl(8390656,8,e,t)}function ou(e,t){Pl(2048,8,e,t)}function Xv(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Kl(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Om(e){var t=Ie().memoizedState;return Xv({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Vm(e,t){return Pl(4,2,e,t)}function _m(e,t){return Pl(4,4,e,t)}function km(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Bm(e,t,n){n=n!=null?n.concat([e]):null,Pl(4,4,km.bind(null,t,e),n)}function ru(){}function Lm(e,t){var n=Ie();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Wr(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Um(e,t){var n=Ie();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Wr(t,s[1]))return s[0];if(s=e(),Ha){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[s,t],s}function uu(e,t,n){return n===void 0||(On&1073741824)!==0&&(Ae&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Hh(),Se.lanes|=e,ua|=e,n)}function Hm(e,t,n,s){return Lt(n,t)?n:ji.current!==null?(e=uu(e,n,s),Lt(e,t)||(nt=!0),e):(On&42)===0||(On&1073741824)!==0&&(Ae&261930)===0?(nt=!0,e.memoizedState=n):(e=Hh(),Se.lanes|=e,ua|=e,t)}function Gm(e,t,n,s,r){var u=U.p;U.p=u!==0&&8>u?u:8;var h=R.T,v={};R.T=v,fu(e,!1,t,n);try{var C=r(),_=R.S;if(_!==null&&_(v,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=Uv(C,s);Ns(e,t,Y,Xt(e))}else Ns(e,t,s,Xt(e))}catch(Z){Ns(e,t,{then:function(){},status:"rejected",reason:Z},Xt())}finally{U.p=u,h!==null&&v.types!==null&&(h.types=v.types),R.T=h}}function Kv(){}function cu(e,t,n,s){if(e.tag!==5)throw Error(o(476));var r=Ym(e).queue;Gm(e,r,t,A,n===null?Kv:function(){return qm(e),n(s)})}function Ym(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:A},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:n},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),Ns(e,t.next.queue,{},Xt())}function du(){return mt(qs)}function Xm(){return Ie().memoizedState}function Km(){return Ie().memoizedState}function Qv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=aa(n);var s=ia(t,e,n);s!==null&&(Vt(s,t,n),Ss(s,t,n)),t={cache:Hr()},e.payload=t;return}t=t.return}}function Zv(e,t,n){var s=Xt();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fl(e)?Zm(t,n):(n=Er(e,t,n,s),n!==null&&(Vt(n,e,s),Jm(n,t,s)))}function Qm(e,t,n){var s=Xt();Ns(e,t,n,s)}function Ns(e,t,n,s){var r={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fl(e))Zm(t,r);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,n);if(r.hasEagerState=!0,r.eagerState=v,Lt(v,h))return Dl(e,t,r,0),Ge===null&&El(),!1}catch{}finally{}if(n=Er(e,t,r,s),n!==null)return Vt(n,e,s),Jm(n,t,s),!0}return!1}function fu(e,t,n,s){if(s={lane:2,revertLane:Xu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Fl(e)){if(t)throw Error(o(479))}else t=Er(e,n,s,2),t!==null&&Vt(t,e,2)}function Fl(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Zm(e,t){Ti=ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jm(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,$d(e,n)}}var As={readContext:mt,use:Ql,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};As.useEffectEvent=Pe;var Pm={readContext:mt,use:Ql,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:zm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Jl(4194308,4,km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jl(4194308,4,e,t)},useInsertionEffect:function(e,t){Jl(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var s=e();if(Ha){Pn(!0);try{e()}finally{Pn(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Nt();if(n!==void 0){var r=n(t);if(Ha){Pn(!0);try{n(t)}finally{Pn(!1)}}}else r=t;return s.memoizedState=s.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=Zv.bind(null,Se,e),[s.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=su(e);var t=e.queue,n=Qm.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ru,useDeferredValue:function(e,t){var n=Nt();return uu(n,e,t)},useTransition:function(){var e=su(!1);return e=Gm.bind(null,Se,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=Se,r=Nt();if(De){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ge===null)throw Error(o(349));(Ae&127)!==0||ym(s,t,n)}r.memoizedState=n;var u={value:n,getSnapshot:t};return r.queue=u,zm(bm.bind(null,s,u,e),[e]),s.flags|=2048,Ai(9,{destroy:void 0},gm.bind(null,s,u,n,t),null),n},useId:function(){var e=Nt(),t=Ge.identifierPrefix;if(De){var n=vn,s=bn;n=(s&~(1<<32-Bt(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Hv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:du,useFormState:Am,useActionState:Am,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fu.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:nu,useCacheRefresh:function(){return Nt().memoizedState=Qv.bind(null,Se)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((Ve&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},mu={readContext:mt,use:Ql,useCallback:Lm,useContext:mt,useEffect:ou,useImperativeHandle:Bm,useInsertionEffect:Vm,useLayoutEffect:_m,useMemo:Um,useReducer:Zl,useRef:Rm,useState:function(){return Zl(Vn)},useDebugValue:ru,useDeferredValue:function(e,t){var n=Ie();return Hm(n,Le.memoizedState,e,t)},useTransition:function(){var e=Zl(Vn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Ts(e),t]},useSyncExternalStore:pm,useId:Xm,useHostTransitionStatus:du,useFormState:Mm,useActionState:Mm,useOptimistic:function(e,t){var n=Ie();return Sm(n,Le,e,t)},useMemoCache:nu,useCacheRefresh:Km};mu.useEffectEvent=Om;var Fm={readContext:mt,use:Ql,useCallback:Lm,useContext:mt,useEffect:ou,useImperativeHandle:Bm,useInsertionEffect:Vm,useLayoutEffect:_m,useMemo:Um,useReducer:iu,useRef:Rm,useState:function(){return iu(Vn)},useDebugValue:ru,useDeferredValue:function(e,t){var n=Ie();return Le===null?uu(n,e,t):Hm(n,Le.memoizedState,e,t)},useTransition:function(){var e=iu(Vn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Ts(e),t]},useSyncExternalStore:pm,useId:Xm,useHostTransitionStatus:du,useFormState:Dm,useActionState:Dm,useOptimistic:function(e,t){var n=Ie();return Le!==null?Sm(n,Le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:nu,useCacheRefresh:Km};Fm.useEffectEvent=Om;function hu(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pu={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Xt(),r=aa(s);r.payload=t,n!=null&&(r.callback=n),t=ia(e,r,s),t!==null&&(Vt(t,e,s),Ss(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Xt(),r=aa(s);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ia(e,r,s),t!==null&&(Vt(t,e,s),Ss(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),s=aa(n);s.tag=2,t!=null&&(s.callback=t),t=ia(e,s,n),t!==null&&(Vt(t,e,n),Ss(t,e,n))}};function Wm(e,t,n,s,r,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,h):t.prototype&&t.prototype.isPureReactComponent?!ms(n,s)||!ms(r,u):!0}function $m(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&pu.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function Im(e){Ml(e)}function eh(e){console.error(e)}function th(e){Ml(e)}function Wl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function nh(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function yu(e,t,n){return n=aa(n),n.tag=3,n.payload={element:null},n.callback=function(){Wl(e,t)},n}function ah(e){return e=aa(e),e.tag=3,e}function ih(e,t,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=s.value;e.payload=function(){return r(u)},e.callback=function(){nh(t,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){nh(t,n,s),typeof r!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}function Jv(e,t,n,s,r){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&vi(t,n,r,!0),n=Ht.current,n!==null){switch(n.tag){case 31:case 13:return en===null?uo():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=r,s===Ll?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Gu(e,s,r)),!1;case 22:return n.flags|=65536,s===Ll?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Gu(e,s,r)),!1}throw Error(o(435,n.tag))}return Gu(e,s,r),uo(),!1}if(De)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,s!==_r&&(e=Error(o(422),{cause:s}),ys(Ft(e,n)))):(s!==_r&&(t=Error(o(423),{cause:s}),ys(Ft(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,s=Ft(s,n),r=yu(e.stateNode,s,r),Qr(e,r),Fe!==4&&(Fe=2)),!1;var u=Error(o(520),{cause:s});if(u=Ft(u,n),_s===null?_s=[u]:_s.push(u),Fe!==4&&(Fe=2),t===null)return!0;s=Ft(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=yu(n.stateNode,s,e),Qr(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ca===null||!ca.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=ah(r),ih(r,e,n,s),Qr(n,r),!1}n=n.return}while(n!==null);return!1}var gu=Error(o(461)),nt=!1;function ht(e,t,n,s){t.child=e===null?rm(t,null,n,s):Ua(t,e.child,n,s)}function sh(e,t,n,s,r){n=n.render;var u=t.ref;if("ref"in s){var h={};for(var v in s)v!=="ref"&&(h[v]=s[v])}else h=s;return _a(t),s=$r(e,t,n,h,u,r),v=Ir(),e!==null&&!nt?(eu(e,t,r),_n(e,t,r)):(De&&v&&Or(t),t.flags|=1,ht(e,t,s,r),t.child)}function lh(e,t,n,s,r){if(e===null){var u=n.type;return typeof u=="function"&&!Dr(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,oh(e,t,u,s,r)):(e=zl(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Tu(e,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:ms,n(h,s)&&e.ref===t.ref)return _n(e,t,r)}return t.flags|=1,e=En(u,s),e.ref=t.ref,e.return=t,t.child=e}function oh(e,t,n,s,r){if(e!==null){var u=e.memoizedProps;if(ms(u,s)&&e.ref===t.ref)if(nt=!1,t.pendingProps=s=u,Tu(e,r))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,_n(e,t,r)}return bu(e,t,n,s,r)}function rh(e,t,n,s){var r=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~u}else s=0,t.child=null;return uh(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kl(t,u!==null?u.cachePool:null),u!==null?dm(t,u):Jr(),fm(t);else return s=t.lanes=536870912,uh(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(kl(t,u.cachePool),dm(t,u),la(),t.memoizedState=null):(e!==null&&kl(t,null),Jr(),la());return ht(e,t,r,n),t.child}function Ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uh(e,t,n,s,r){var u=Yr();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&kl(t,null),Jr(),fm(t),e!==null&&vi(e,t,s,!0),t.childLanes=r,null}function $l(e,t){return t=eo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ch(e,t,n){return Ua(t,e.child,null,n),e=$l(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Pv(e,t,n){var s=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(s.mode==="hidden")return e=$l(t,s),t.lanes=536870912,Ms(null,e);if(Fr(t),(e=qe)?(e=Cp(e,It),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:bn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw ea(t);return t.lanes=536870912,null}return $l(t,s)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Fr(t),r)if(t.flags&256)t.flags&=-257,t=ch(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(nt||vi(e,t,n,!1),r=(n&e.childLanes)!==0,nt||r){if(s=Ge,s!==null&&(h=Id(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ra(e,h),Vt(s,e,h),gu;uo(),t=ch(e,t,n)}else e=u.treeContext,qe=tn(h.nextSibling),ft=t,De=!0,In=null,It=!1,e!==null&&Ff(t,e),t=$l(t,s),t.flags|=4096;return t}return e=En(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Il(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bu(e,t,n,s,r){return _a(t),n=$r(e,t,n,s,void 0,r),s=Ir(),e!==null&&!nt?(eu(e,t,r),_n(e,t,r)):(De&&s&&Or(t),t.flags|=1,ht(e,t,n,r),t.child)}function dh(e,t,n,s,r,u){return _a(t),t.updateQueue=null,n=hm(t,s,n,r),mm(e),s=Ir(),e!==null&&!nt?(eu(e,t,u),_n(e,t,u)):(De&&s&&Or(t),t.flags|=1,ht(e,t,n,u),t.child)}function fh(e,t,n,s,r){if(_a(t),t.stateNode===null){var u=pi,h=n.contextType;typeof h=="object"&&h!==null&&(u=mt(h)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=pu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},Xr(t),h=n.contextType,u.context=typeof h=="object"&&h!==null?mt(h):pi,u.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(hu(t,n,h,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&pu.enqueueReplaceState(u,u.state,null),ws(t,s,u,r),Cs(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,C=Ga(n,v);u.props=C;var _=u.context,Y=n.contextType;h=pi,typeof Y=="object"&&Y!==null&&(h=mt(Y));var Z=n.getDerivedStateFromProps;Y=typeof Z=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||_!==h)&&$m(t,u,s,h),na=!1;var B=t.memoizedState;u.state=B,ws(t,s,u,r),Cs(),_=t.memoizedState,v||B!==_||na?(typeof Z=="function"&&(hu(t,n,Z,s),_=t.memoizedState),(C=na||Wm(t,n,C,s,B,_,h))?(Y||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=s,t.memoizedState=_),u.props=s,u.state=_,u.context=h,s=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Kr(e,t),h=t.memoizedProps,Y=Ga(n,h),u.props=Y,Z=t.pendingProps,B=u.context,_=n.contextType,C=pi,typeof _=="object"&&_!==null&&(C=mt(_)),v=n.getDerivedStateFromProps,(_=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==Z||B!==C)&&$m(t,u,s,C),na=!1,B=t.memoizedState,u.state=B,ws(t,s,u,r),Cs();var L=t.memoizedState;h!==Z||B!==L||na||e!==null&&e.dependencies!==null&&Vl(e.dependencies)?(typeof v=="function"&&(hu(t,n,v,s),L=t.memoizedState),(Y=na||Wm(t,n,Y,s,B,L,C)||e!==null&&e.dependencies!==null&&Vl(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,L,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,L,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),u.props=s,u.state=L,u.context=C,s=Y):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,Il(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=Ua(t,e.child,null,r),t.child=Ua(t,null,n,r)):ht(e,t,n,r),t.memoizedState=u.state,e=t.child):e=_n(e,t,r),e}function mh(e,t,n,s){return Oa(),t.flags|=256,ht(e,t,n,s),t.child}var vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xu(e){return{baseLanes:e,cachePool:nm()}}function Su(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qt),e}function hh(e,t,n){var s=t.pendingProps,r=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(r?sa(t):la(),(e=qe)?(e=Cp(e,It),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:bn,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},n=Zf(e),n.return=t,t.child=n,ft=t,qe=null)):e=null,e===null)throw ea(t);return ac(e)?t.lanes=32:t.lanes=536870912,null}var v=s.children;return s=s.fallback,r?(la(),r=t.mode,v=eo({mode:"hidden",children:v},r),s=za(s,r,n,null),v.return=t,s.return=t,v.sibling=s,t.child=v,s=t.child,s.memoizedState=xu(n),s.childLanes=Su(e,h,n),t.memoizedState=vu,Ms(null,s)):(sa(t),Cu(t,v))}var C=e.memoizedState;if(C!==null&&(v=C.dehydrated,v!==null)){if(u)t.flags&256?(sa(t),t.flags&=-257,t=wu(e,t,n)):t.memoizedState!==null?(la(),t.child=e.child,t.flags|=128,t=null):(la(),v=s.fallback,r=t.mode,s=eo({mode:"visible",children:s.children},r),v=za(v,r,n,null),v.flags|=2,s.return=t,v.return=t,s.sibling=v,t.child=s,Ua(t,e.child,null,n),s=t.child,s.memoizedState=xu(n),s.childLanes=Su(e,h,n),t.memoizedState=vu,t=Ms(null,s));else if(sa(t),ac(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var _=h.dgst;h=_,s=Error(o(419)),s.stack="",s.digest=h,ys({value:s,source:null,stack:null}),t=wu(e,t,n)}else if(nt||vi(e,t,n,!1),h=(n&e.childLanes)!==0,nt||h){if(h=Ge,h!==null&&(s=Id(h,n),s!==0&&s!==C.retryLane))throw C.retryLane=s,Ra(e,s),Vt(h,e,s),gu;nc(v)||uo(),t=wu(e,t,n)}else nc(v)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,qe=tn(v.nextSibling),ft=t,De=!0,In=null,It=!1,e!==null&&Ff(t,e),t=Cu(t,s.children),t.flags|=4096);return t}return r?(la(),v=s.fallback,r=t.mode,C=e.child,_=C.sibling,s=En(C,{mode:"hidden",children:s.children}),s.subtreeFlags=C.subtreeFlags&65011712,_!==null?v=En(_,v):(v=za(v,r,n,null),v.flags|=2),v.return=t,s.return=t,s.sibling=v,t.child=s,Ms(null,s),s=t.child,v=e.child.memoizedState,v===null?v=xu(n):(r=v.cachePool,r!==null?(C=et._currentValue,r=r.parent!==C?{parent:C,pool:C}:r):r=nm(),v={baseLanes:v.baseLanes|n,cachePool:r}),s.memoizedState=v,s.childLanes=Su(e,h,n),t.memoizedState=vu,Ms(e.child,s)):(sa(t),n=e.child,e=n.sibling,n=En(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Cu(e,t){return t=eo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eo(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function wu(e,t,n){return Ua(t,e.child,null,n),e=Cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ph(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Lr(e.return,t,n)}function ju(e,t,n,s,r,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=s,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function yh(e,t,n){var s=t.pendingProps,r=s.revealOrder,u=s.tail;s=s.children;var h=$e.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,$($e,h),ht(e,t,s,n),s=De?ps:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ph(e,n,t);else if(e.tag===19)ph(e,n,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(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Yl(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ju(t,!1,r,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Yl(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ju(t,!0,n,null,u,s);break;case"together":ju(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function _n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ua|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(vi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vl(e)))}function Fv(e,t,n){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),ta(t,et,e.memoizedState.cache),Oa();break;case 27:case 5:Qt(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fr(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(sa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hh(e,t,n):(sa(t),e=_n(e,t,n),e!==null?e.sibling:null);sa(t);break;case 19:var r=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(vi(e,t,n,!1),s=(n&t.childLanes)!==0),r){if(s)return yh(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),$($e,$e.current),s)break;return null;case 22:return t.lanes=0,rh(e,t,n,t.pendingProps);case 24:ta(t,et,e.memoizedState.cache)}return _n(e,t,n)}function gh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Tu(e,n)&&(t.flags&128)===0)return nt=!1,Fv(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,De&&(t.flags&1048576)!==0&&Pf(t,ps,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Ba(t.elementType),t.type=e,typeof e=="function")Dr(e)?(s=Ga(e,s),t.tag=1,t=fh(null,t,e,s,n)):(t.tag=0,t=bu(null,t,e,s,n));else{if(e!=null){var r=e.$$typeof;if(r===W){t.tag=11,t=sh(null,t,e,s,n);break e}else if(r===X){t.tag=14,t=lh(null,t,e,s,n);break e}}throw t=ye(e)||e,Error(o(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,r=Ga(s,t.pendingProps),fh(e,t,s,r,n);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(o(387));s=t.pendingProps;var u=t.memoizedState;r=u.element,Kr(e,t),ws(t,s,null,n);var h=t.memoizedState;if(s=h.cache,ta(t,et,s),s!==u.cache&&Ur(t,[et],n,!0),Cs(),s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=mh(e,t,s,n);break e}else if(s!==r){r=Ft(Error(o(424)),t),ys(r),t=mh(e,t,s,n);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=tn(e.firstChild),ft=t,De=!0,In=null,It=!0,n=rm(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Oa(),s===r){t=_n(e,t,n);break e}ht(e,t,s,n)}t=t.child}return t;case 26:return Il(e,t),e===null?(n=Mp(t.type,null,t.pendingProps,null))?t.memoizedState=n:De||(n=t.type,e=t.pendingProps,s=go(le.current).createElement(n),s[dt]=t,s[Mt]=e,pt(s,n,e),ut(s),t.stateNode=s):t.memoizedState=Mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qt(t),e===null&&De&&(s=t.stateNode=Tp(t.type,t.pendingProps,le.current),ft=t,It=!0,r=qe,ha(t.type)?(ic=r,qe=tn(s.firstChild)):qe=r),ht(e,t,t.pendingProps.children,n),Il(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((r=s=qe)&&(s=Nx(s,t.type,t.pendingProps,It),s!==null?(t.stateNode=s,ft=t,qe=tn(s.firstChild),It=!1,r=!0):r=!1),r||ea(t)),Qt(t),r=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,s=u.children,Iu(r,u)?s=null:h!==null&&Iu(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=$r(e,t,Gv,null,null,n),qs._currentValue=r),Il(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&De&&((e=n=qe)&&(n=Ax(n,t.pendingProps,It),n!==null?(t.stateNode=n,ft=t,qe=null,e=!0):e=!1),e||ea(t)),null;case 13:return hh(e,t,n);case 4:return Ke(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ua(t,null,s,n):ht(e,t,s,n),t.child;case 11:return sh(e,t,t.type,t.pendingProps,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,ta(t,t.type,s.value),ht(e,t,s.children,n),t.child;case 9:return r=t.type._context,s=t.pendingProps.children,_a(t),r=mt(r),s=s(r),t.flags|=1,ht(e,t,s,n),t.child;case 14:return lh(e,t,t.type,t.pendingProps,n);case 15:return oh(e,t,t.type,t.pendingProps,n);case 19:return yh(e,t,n);case 31:return Pv(e,t,n);case 22:return rh(e,t,n,t.pendingProps);case 24:return _a(t),s=mt(et),e===null?(r=Yr(),r===null&&(r=Ge,u=Hr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),t.memoizedState={parent:s,cache:r},Xr(t),ta(t,et,r)):((e.lanes&n)!==0&&(Kr(e,t),ws(t,null,null,n),Cs()),r=e.memoizedState,u=t.memoizedState,r.parent!==s?(r={parent:s,cache:s},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),ta(t,et,s)):(s=u.cache,ta(t,et,s),s!==r.cache&&Ur(t,[et],n,!0))),ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function kn(e){e.flags|=4}function Nu(e,t,n,s,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Xh())e.flags|=8192;else throw La=Ll,qr}else e.flags&=-16777217}function bh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Op(t))if(Xh())e.flags|=8192;else throw La=Ll,qr}function to(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Fd():536870912,e.lanes|=t,Ri|=t)}function Es(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Wv(e,t,n){var s=t.pendingProps;switch(Vr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),zn(et),Oe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(bi(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kr())),Xe(t),null;case 26:var r=t.type,u=t.memoizedState;return e===null?(kn(t),u!==null?(Xe(t),bh(t,u)):(Xe(t),Nu(t,r,null,s,n))):u?u!==e.memoizedState?(kn(t),Xe(t),bh(t,u)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&kn(t),Xe(t),Nu(t,r,e,s,n)),null;case 27:if(un(t),n=le.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&kn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Xe(t),null}e=ae.current,bi(t)?Wf(t):(e=Tp(r,s,n),t.stateNode=e,kn(t))}return Xe(t),null;case 5:if(un(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&kn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Xe(t),null}if(u=ae.current,bi(t))Wf(t);else{var h=go(le.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?h.createElement(r,{is:s.is}):h.createElement(r)}}u[dt]=t,u[Mt]=s;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(pt(u,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&kn(t)}}return Xe(t),Nu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&kn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=le.current,bi(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,r=ft,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||hp(e.nodeValue,n)),e||ea(t,!0)}else e=go(e).createTextNode(s),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=bi(t),n!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[dt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Xe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=bi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[dt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),r=!1}else r=kr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==r&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),to(t,t.updateQueue),Xe(t),null);case 4:return Oe(),e===null&&Ju(t.stateNode.containerInfo),Xe(t),null;case 10:return zn(t.type),Xe(t),null;case 19:if(H($e),s=t.memoizedState,s===null)return Xe(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)Es(s,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Yl(e),u!==null){for(t.flags|=128,Es(s,!1),e=u.updateQueue,t.updateQueue=e,to(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qf(n,e),n=n.sibling;return $($e,$e.current&1|2),De&&Dn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Tt()>lo&&(t.flags|=128,r=!0,Es(s,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(u),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,to(t,e),Es(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!De)return Xe(t),null}else 2*Tt()-s.renderingStartTime>lo&&n!==536870912&&(t.flags|=128,r=!0,Es(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Tt(),e.sibling=null,n=$e.current,$($e,r?n&1|2:n&1),De&&Dn(t,s.treeForkCount),e):(Xe(t),null);case 22:case 23:return Gt(t),Pr(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&to(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&H(ka),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zn(et),Xe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function $v(e,t){switch(Vr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(et),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return un(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(o(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H($e),null;case 4:return Oe(),null;case 10:return zn(t.type),null;case 22:case 23:return Gt(t),Pr(),e!==null&&H(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(et),null;case 25:return null;default:return null}}function vh(e,t){switch(Vr(t),t.tag){case 3:zn(et),Oe();break;case 26:case 27:case 5:un(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:H($e);break;case 10:zn(t.type);break;case 22:case 23:Gt(t),Pr(),e!==null&&H(ka);break;case 24:zn(et)}}function Ds(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&e)===e){s=void 0;var u=n.create,h=n.inst;s=u(),h.destroy=s}n=n.next}while(n!==r)}}catch(v){Be(t,t.return,v)}}function oa(e,t,n){try{var s=t.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&e)===e){var h=s.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,r=t;var C=n,_=v;try{_()}catch(Y){Be(r,C,Y)}}}s=s.next}while(s!==u)}}catch(Y){Be(t,t.return,Y)}}function xh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{cm(t,n)}catch(s){Be(e,e.return,s)}}}function Sh(e,t,n){n.props=Ga(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Be(e,t,s)}}function Rs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(r){Be(e,t,r)}}function xn(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(r){Be(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Be(e,t,r)}else n.current=null}function Ch(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(r){Be(e,e.return,r)}}function Au(e,t,n){try{var s=e.stateNode;xx(s,e.type,n,t),s[Mt]=t}catch(r){Be(e,e.return,r)}}function wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ha(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wh(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&&ha(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 Eu(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=An));else if(s!==4&&(s===27&&ha(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Eu(e,t,n),e=e.sibling;e!==null;)Eu(e,t,n),e=e.sibling}function no(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&ha(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(no(e,t,n),e=e.sibling;e!==null;)no(e,t,n),e=e.sibling}function jh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);pt(t,s,n),t[dt]=e,t[Mt]=n}catch(u){Be(e,e.return,u)}}var Bn=!1,at=!1,Du=!1,Th=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Iv(e,t){if(e=e.containerInfo,Wu=jo,e=Bf(e),wr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,v=-1,C=-1,_=0,Y=0,Z=e,B=null;t:for(;;){for(var L;Z!==n||r!==0&&Z.nodeType!==3||(v=h+r),Z!==u||s!==0&&Z.nodeType!==3||(C=h+s),Z.nodeType===3&&(h+=Z.nodeValue.length),(L=Z.firstChild)!==null;)B=Z,Z=L;for(;;){if(Z===e)break t;if(B===n&&++_===r&&(v=h),B===u&&++Y===s&&(C=h),(L=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=L}n=v===-1||C===-1?null:{start:v,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},jo=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,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(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,r=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var se=Ga(n.type,r);e=s.getSnapshotBeforeUpdate(se,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Be(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":tc(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function Nh(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),s&4&&Ds(5,n);break;case 1:if(Un(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Be(n,n.return,h)}else{var r=Ga(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Be(n,n.return,h)}}s&64&&xh(n),s&512&&Rs(n,n.return);break;case 3:if(Un(e,n),s&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{cm(e,t)}catch(h){Be(n,n.return,h)}}break;case 27:t===null&&s&4&&jh(n);case 26:case 5:Un(e,n),t===null&&s&4&&Ch(n),s&512&&Rs(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),s&4&&Eh(e,n);break;case 13:Un(e,n),s&4&&Dh(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=rx.bind(null,n),Mx(e,n))));break;case 22:if(s=n.memoizedState!==null||Bn,!s){t=t!==null&&t.memoizedState!==null||at,r=Bn;var u=at;Bn=s,(at=t)&&!u?Hn(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Bn=r,at=u}break;case 30:break;default:Un(e,n)}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lr(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 Qe=null,Dt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)Mh(e,t,n),n=n.sibling}function Mh(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(ts,n)}catch{}switch(n.tag){case 26:at||xn(n,t),Ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||xn(n,t);var s=Qe,r=Dt;ha(n.type)&&(Qe=n.stateNode,Dt=!1),Ln(e,t,n),Hs(n.stateNode),Qe=s,Dt=r;break;case 5:at||xn(n,t);case 6:if(s=Qe,r=Dt,Qe=null,Ln(e,t,n),Qe=s,Dt=r,Qe!==null)if(Dt)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode)}catch(u){Be(n,t,u)}else try{Qe.removeChild(n.stateNode)}catch(u){Be(n,t,u)}break;case 18:Qe!==null&&(Dt?(e=Qe,xp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ui(e)):xp(Qe,n.stateNode));break;case 4:s=Qe,r=Dt,Qe=n.stateNode.containerInfo,Dt=!0,Ln(e,t,n),Qe=s,Dt=r;break;case 0:case 11:case 14:case 15:oa(2,n,t),at||oa(4,n,t),Ln(e,t,n);break;case 1:at||(xn(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Sh(n,t,s)),Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:at=(s=at)||n.memoizedState!==null,Ln(e,t,n),at=s;break;default:Ln(e,t,n)}}function Eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ui(e)}catch(n){Be(t,t.return,n)}}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ui(e)}catch(n){Be(t,t.return,n)}}function ex(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Th),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Th),t;default:throw Error(o(435,e.tag))}}function ao(e,t){var n=ex(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var r=ux.bind(null,e,s);s.then(r,r)}})}function Rt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=n[s],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ha(v.type)){Qe=v.stateNode,Dt=!1;break e}break;case 5:Qe=v.stateNode,Dt=!1;break e;case 3:case 4:Qe=v.stateNode.containerInfo,Dt=!0;break e}v=v.return}if(Qe===null)throw Error(o(160));Mh(u,h,r),Qe=null,Dt=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rh(t,e),t=t.sibling}var fn=null;function Rh(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rt(t,e),zt(e),s&4&&(oa(3,e,e.return),Ds(3,e),oa(5,e,e.return));break;case 1:Rt(t,e),zt(e),s&512&&(at||n===null||xn(n,n.return)),s&64&&Bn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=fn;if(Rt(t,e),zt(e),s&512&&(at||n===null||xn(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(s){case"title":u=r.getElementsByTagName("title")[0],(!u||u[is]||u[dt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(s),r.head.insertBefore(u,r.querySelector("head > title"))),pt(u,s,n),u[dt]=e,ut(u),s=u;break e;case"link":var h=Rp("link","href",r).get(s+(n.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(v,1);break t}}u=r.createElement(s),pt(u,s,n),r.head.appendChild(u);break;case"meta":if(h=Rp("meta","content",r).get(s+(n.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(v,1);break t}}u=r.createElement(s),pt(u,s,n),r.head.appendChild(u);break;default:throw Error(o(468,s))}u[dt]=e,ut(u),s=u}e.stateNode=s}else zp(r,e.type,e.stateNode);else e.stateNode=Dp(r,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?zp(r,e.type,e.stateNode):Dp(r,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Au(e,e.memoizedProps,n.memoizedProps)}break;case 27:Rt(t,e),zt(e),s&512&&(at||n===null||xn(n,n.return)),n!==null&&s&4&&Au(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Rt(t,e),zt(e),s&512&&(at||n===null||xn(n,n.return)),e.flags&32){r=e.stateNode;try{ri(r,"")}catch(se){Be(e,e.return,se)}}s&4&&e.stateNode!=null&&(r=e.memoizedProps,Au(e,r,n!==null?n.memoizedProps:r)),s&1024&&(Du=!0);break;case 6:if(Rt(t,e),zt(e),s&4){if(e.stateNode===null)throw Error(o(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(se){Be(e,e.return,se)}}break;case 3:if(xo=null,r=fn,fn=bo(t.containerInfo),Rt(t,e),fn=r,zt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ui(t.containerInfo)}catch(se){Be(e,e.return,se)}Du&&(Du=!1,zh(e));break;case 4:s=fn,fn=bo(e.stateNode.containerInfo),Rt(t,e),zt(e),fn=s;break;case 12:Rt(t,e),zt(e);break;case 31:Rt(t,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ao(e,s)));break;case 13:Rt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(so=Tt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ao(e,s)));break;case 22:r=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,_=Bn,Y=at;if(Bn=_||r,at=Y||C,Rt(t,e),at=Y,Bn=_,zt(e),s&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||C||Bn||at||Ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=C.stateNode;var Z=C.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(se){Be(C,C.return,se)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=r?"":C.memoizedProps}catch(se){Be(C,C.return,se)}}}else if(t.tag===18){if(n===null){C=t;try{var L=C.stateNode;r?Sp(L,!0):Sp(C.stateNode,!1)}catch(se){Be(C,C.return,se)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,ao(e,n))));break;case 19:Rt(t,e),zt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ao(e,s)));break;case 30:break;case 21:break;default:Rt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(wh(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Mu(e);no(e,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(ri(h,""),n.flags&=-33);var v=Mu(e);no(e,v,h);break;case 3:case 4:var C=n.stateNode.containerInfo,_=Mu(e);Eu(e,_,C);break;default:throw Error(o(161))}}catch(Y){Be(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nh(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:oa(4,t,t.return),Ya(t);break;case 1:xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Sh(t,t.return,n),Ya(t);break;case 27:Hs(t.stateNode);case 26:case 5:xn(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Hn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,r=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Hn(r,u,n),Ds(4,u);break;case 1:if(Hn(r,u,n),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(_){Be(s,s.return,_)}if(s=u,r=s.updateQueue,r!==null){var v=s.stateNode;try{var C=r.shared.hiddenCallbacks;if(C!==null)for(r.shared.hiddenCallbacks=null,r=0;r<C.length;r++)um(C[r],v)}catch(_){Be(s,s.return,_)}}n&&h&64&&xh(u),Rs(u,u.return);break;case 27:jh(u);case 26:case 5:Hn(r,u,n),n&&s===null&&h&4&&Ch(u),Rs(u,u.return);break;case 12:Hn(r,u,n);break;case 31:Hn(r,u,n),n&&h&4&&Eh(r,u);break;case 13:Hn(r,u,n),n&&h&4&&Dh(r,u);break;case 22:u.memoizedState===null&&Hn(r,u,n),Rs(u,u.return);break;case 30:break;default:Hn(r,u,n)}t=t.sibling}}function Ru(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&gs(n))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e))}function mn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Oh(e,t,n,s),t=t.sibling}function Oh(e,t,n,s){var r=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,n,s),r&2048&&Ds(9,t);break;case 1:mn(e,t,n,s);break;case 3:mn(e,t,n,s),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gs(e)));break;case 12:if(r&2048){mn(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Be(t,t.return,C)}}else mn(e,t,n,s);break;case 31:mn(e,t,n,s);break;case 13:mn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?mn(e,t,n,s):zs(e,t):u._visibility&2?mn(e,t,n,s):(u._visibility|=2,Mi(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Ru(h,t);break;case 24:mn(e,t,n,s),r&2048&&zu(t.alternate,t);break;default:mn(e,t,n,s)}}function Mi(e,t,n,s,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=n,C=s,_=h.flags;switch(h.tag){case 0:case 11:case 15:Mi(u,h,v,C,r),Ds(8,h);break;case 23:break;case 22:var Y=h.stateNode;h.memoizedState!==null?Y._visibility&2?Mi(u,h,v,C,r):zs(u,h):(Y._visibility|=2,Mi(u,h,v,C,r)),r&&_&2048&&Ru(h.alternate,h);break;case 24:Mi(u,h,v,C,r),r&&_&2048&&zu(h.alternate,h);break;default:Mi(u,h,v,C,r)}t=t.sibling}}function zs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,r=s.flags;switch(s.tag){case 22:zs(n,s),r&2048&&Ru(s.alternate,s);break;case 24:zs(n,s),r&2048&&zu(s.alternate,s);break;default:zs(n,s)}t=t.sibling}}var Os=8192;function Ei(e,t,n){if(e.subtreeFlags&Os)for(e=e.child;e!==null;)Vh(e,t,n),e=e.sibling}function Vh(e,t,n){switch(e.tag){case 26:Ei(e,t,n),e.flags&Os&&e.memoizedState!==null&&Hx(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Ei(e,t,n);break;case 3:case 4:var s=fn;fn=bo(e.stateNode.containerInfo),Ei(e,t,n),fn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Os,Os=16777216,Ei(e,t,n),Os=s):Ei(e,t,n));break;default:Ei(e,t,n)}}function _h(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 Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];ct=s,Bh(s,e)}_h(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kh(e),e=e.sibling}function kh(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&oa(9,e,e.return);break;case 3:Vs(e);break;case 12:Vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,io(e)):Vs(e);break;default:Vs(e)}}function io(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];ct=s,Bh(s,e)}_h(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:oa(8,t,t.return),io(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,io(t));break;default:io(t)}e=e.sibling}}function Bh(e,t){for(;ct!==null;){var n=ct;switch(n.tag){case 0:case 11:case 15:oa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:gs(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,ct=s;else e:for(n=e;ct!==null;){s=ct;var r=s.sibling,u=s.return;if(Ah(s),s===n){ct=null;break e}if(r!==null){r.return=u,ct=r;break e}ct=u}}}var tx={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},nx=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Ge=null,je=null,Ae=0,ke=0,Yt=null,ra=!1,Di=!1,Ou=!1,Gn=0,Fe=0,ua=0,qa=0,Vu=0,qt=0,Ri=0,_s=null,Ot=null,_u=!1,so=0,Lh=0,lo=1/0,oo=null,ca=null,lt=0,da=null,zi=null,Yn=0,ku=0,Bu=null,Uh=null,ks=0,Lu=null;function Xt(){return(Ve&2)!==0&&Ae!==0?Ae&-Ae:R.T!==null?Xu():ef()}function Hh(){if(qt===0)if((Ae&536870912)===0||De){var e=pl;pl<<=1,(pl&3932160)===0&&(pl=262144),qt=e}else qt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),qt}function Vt(e,t,n){(e===Ge&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Oi(e,0),fa(e,Ae,qt,!1)),as(e,n),((Ve&2)===0||e!==Ge)&&(e===Ge&&((Ve&2)===0&&(qa|=n),Fe===4&&fa(e,Ae,qt,!1)),Sn(e))}function Gh(e,t,n){if((Ve&6)!==0)throw Error(o(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ns(e,t),r=s?sx(e,t):Hu(e,t,!0),u=s;do{if(r===0){Di&&!s&&fa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!ax(n)){r=Hu(e,t,!1),u=!1;continue}if(r===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;r=_s;var C=v.current.memoizedState.isDehydrated;if(C&&(Oi(v,h).flags|=256),h=Hu(v,h,!1),h!==2){if(Ou&&!C){v.errorRecoveryDisabledLanes|=u,qa|=u,r=4;break e}u=Ot,Ot=r,u!==null&&(Ot===null?Ot=u:Ot.push.apply(Ot,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){Oi(e,0),fa(e,t,0,!0);break}e:{switch(s=e,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:fa(s,t,qt,!ra);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=so+300-Tt(),10<r)){if(fa(s,t,qt,!ra),gl(s,0,!0)!==0)break e;Yn=t,s.timeoutHandle=bp(Yh.bind(null,s,n,Ot,oo,_u,t,qt,qa,Ri,ra,u,"Throttled",-0,0),r);break e}Yh(s,n,Ot,oo,_u,t,qt,qa,Ri,ra,u,null,-0,0)}}break}while(!0);Sn(e)}function Yh(e,t,n,s,r,u,h,v,C,_,Y,Z,B,L){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:An},Vh(t,u,Z);var se=(u&62914560)===u?so-Tt():(u&4194048)===u?Lh-Tt():0;if(se=Gx(Z,se),se!==null){Yn=u,e.cancelPendingCommit=se(Fh.bind(null,e,t,u,n,s,r,h,v,C,Y,Z,null,B,L)),fa(e,u,h,!_);return}}Fh(e,t,u,n,s,r,h,v,C)}function ax(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],u=r.getSnapshot;r=r.value;try{if(!Lt(u(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fa(e,t,n,s){t&=~Vu,t&=~qa,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var r=t;0<r;){var u=31-Bt(r),h=1<<u;s[u]=-1,r&=~h}n!==0&&Wd(e,n,t)}function ro(){return(Ve&6)===0?(Bs(0),!1):!0}function Uu(){if(je!==null){if(ke===0)var e=je.return;else e=je,Rn=Va=null,tu(e),wi=null,vs=0,e=je;for(;e!==null;)vh(e.alternate,e),e=e.return;je=null}}function Oi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,wx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,Uu(),Ge=e,je=n=En(e.current,null),Ae=t,ke=0,Yt=null,ra=!1,Di=ns(e,t),Ou=!1,Ri=qt=Vu=qa=ua=Fe=0,Ot=_s=null,_u=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var r=31-Bt(s),u=1<<r;t|=e[r],s&=~u}return Gn=t,El(),n}function qh(e,t){Se=null,R.H=As,t===Ci||t===Bl?(t=sm(),ke=3):t===qr?(t=sm(),ke=4):ke=t===gu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,je===null&&(Fe=1,Wl(e,Ft(t,e.current)))}function Xh(){var e=Ht.current;return e===null?!0:(Ae&4194048)===Ae?en===null:(Ae&62914560)===Ae||(Ae&536870912)!==0?e===en:!1}function Kh(){var e=R.H;return R.H=As,e===null?As:e}function Qh(){var e=R.A;return R.A=tx,e}function uo(){Fe=4,ra||(Ae&4194048)!==Ae&&Ht.current!==null||(Di=!0),(ua&134217727)===0&&(qa&134217727)===0||Ge===null||fa(Ge,Ae,qt,!1)}function Hu(e,t,n){var s=Ve;Ve|=2;var r=Kh(),u=Qh();(Ge!==e||Ae!==t)&&(oo=null,Oi(e,t)),t=!1;var h=Fe;e:do try{if(ke!==0&&je!==null){var v=je,C=Yt;switch(ke){case 8:Uu(),h=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var _=ke;if(ke=0,Yt=null,Vi(e,v,C,_),n&&Di){h=0;break e}break;default:_=ke,ke=0,Yt=null,Vi(e,v,C,_)}}ix(),h=Fe;break}catch(Y){qh(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Rn=Va=null,Ve=s,R.H=r,R.A=u,je===null&&(Ge=null,Ae=0,El()),h}function ix(){for(;je!==null;)Zh(je)}function sx(e,t){var n=Ve;Ve|=2;var s=Kh(),r=Qh();Ge!==e||Ae!==t?(oo=null,lo=Tt()+500,Oi(e,t)):Di=ns(e,t);e:do try{if(ke!==0&&je!==null){t=je;var u=Yt;t:switch(ke){case 1:ke=0,Yt=null,Vi(e,t,u,1);break;case 2:case 9:if(am(u)){ke=0,Yt=null,Jh(t);break}t=function(){ke!==2&&ke!==9||Ge!==e||(ke=7),Sn(e)},u.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:am(u)?(ke=0,Yt=null,Jh(t)):(ke=0,Yt=null,Vi(e,t,u,7));break;case 5:var h=null;switch(je.tag){case 26:h=je.memoizedState;case 5:case 27:var v=je;if(h?Op(h):v.stateNode.complete){ke=0,Yt=null;var C=v.sibling;if(C!==null)je=C;else{var _=v.return;_!==null?(je=_,co(_)):je=null}break t}}ke=0,Yt=null,Vi(e,t,u,5);break;case 6:ke=0,Yt=null,Vi(e,t,u,6);break;case 8:Uu(),Fe=6;break e;default:throw Error(o(462))}}lx();break}catch(Y){qh(e,Y)}while(!0);return Rn=Va=null,R.H=s,R.A=r,Ve=n,je!==null?0:(Ge=null,Ae=0,El(),Fe)}function lx(){for(;je!==null&&!cn();)Zh(je)}function Zh(e){var t=gh(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?co(e):je=t}function Jh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dh(n,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=dh(n,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:tu(t);default:vh(n,t),t=je=Qf(t,Gn),t=gh(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?co(e):je=t}function Vi(e,t,n,s){Rn=Va=null,tu(t),wi=null,vs=0;var r=t.return;try{if(Jv(e,r,t,n,Ae)){Fe=1,Wl(e,Ft(n,e.current)),je=null;return}}catch(u){if(r!==null)throw je=r,u;Fe=1,Wl(e,Ft(n,e.current)),je=null;return}t.flags&32768?(De||s===1?e=!0:Di||(Ae&536870912)!==0?e=!1:(ra=e=!0,(s===2||s===9||s===3||s===6)&&(s=Ht.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ph(t,e)):co(t)}function co(e){var t=e;do{if((t.flags&32768)!==0){Ph(t,ra);return}e=t.return;var n=Wv(t.alternate,t,Gn);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Fe===0&&(Fe=5)}function Ph(e,t){do{var n=$v(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);Fe=6,je=null}function Fh(e,t,n,s,r,u,h,v,C){e.cancelPendingCommit=null;do fo();while(lt!==0);if((Ve&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Mr,Ub(e,n,u,h,v,C),e===Ge&&(je=Ge=null,Ae=0),zi=t,da=e,Yn=n,ku=u,Bu=r,Uh=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cx(ml,function(){return tp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=R.T,R.T=null,r=U.p,U.p=2,h=Ve,Ve|=4;try{Iv(e,t,n)}finally{Ve=h,U.p=r,R.T=s}}lt=1,Wh(),$h(),Ih()}}function Wh(){if(lt===1){lt=0;var e=da,t=zi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var s=U.p;U.p=2;var r=Ve;Ve|=4;try{Rh(t,e);var u=$u,h=Bf(e.containerInfo),v=u.focusedElem,C=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&kf(v.ownerDocument.documentElement,v)){if(C!==null&&wr(v)){var _=C.start,Y=C.end;if(Y===void 0&&(Y=_),"selectionStart"in v)v.selectionStart=_,v.selectionEnd=Math.min(Y,v.value.length);else{var Z=v.ownerDocument||document,B=Z&&Z.defaultView||window;if(B.getSelection){var L=B.getSelection(),se=v.textContent.length,ge=Math.min(C.start,se),He=C.end===void 0?ge:Math.min(C.end,se);!L.extend&&ge>He&&(h=He,He=ge,ge=h);var M=_f(v,ge),j=_f(v,He);if(M&&j&&(L.rangeCount!==1||L.anchorNode!==M.node||L.anchorOffset!==M.offset||L.focusNode!==j.node||L.focusOffset!==j.offset)){var V=Z.createRange();V.setStart(M.node,M.offset),L.removeAllRanges(),ge>He?(L.addRange(V),L.extend(j.node,j.offset)):(V.setEnd(j.node,j.offset),L.addRange(V))}}}}for(Z=[],L=v;L=L.parentNode;)L.nodeType===1&&Z.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Z.length;v++){var K=Z[v];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}jo=!!Wu,$u=Wu=null}finally{Ve=r,U.p=s,R.T=n}}e.current=t,lt=2}}function $h(){if(lt===2){lt=0;var e=da,t=zi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var s=U.p;U.p=2;var r=Ve;Ve|=4;try{Nh(e,t.alternate,t)}finally{Ve=r,U.p=s,R.T=n}}lt=3}}function Ih(){if(lt===4||lt===3){lt=0,jt();var e=da,t=zi,n=Yn,s=Uh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,zi=da=null,ep(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ca=null),ir(n),t=t.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(ts,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=R.T,r=U.p,U.p=2,R.T=null;try{for(var u=e.onRecoverableError,h=0;h<s.length;h++){var v=s[h];u(v.value,{componentStack:v.stack})}}finally{R.T=t,U.p=r}}(Yn&3)!==0&&fo(),Sn(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Lu?ks++:(ks=0,Lu=e):ks=0,Bs(0)}}function ep(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gs(t)))}function fo(){return Wh(),$h(),Ih(),tp()}function tp(){if(lt!==5)return!1;var e=da,t=ku;ku=0;var n=ir(Yn),s=R.T,r=U.p;try{U.p=32>n?32:n,R.T=null,n=Bu,Bu=null;var u=da,h=Yn;if(lt=0,zi=da=null,Yn=0,(Ve&6)!==0)throw Error(o(331));var v=Ve;if(Ve|=4,kh(u.current),Oh(u,u.current,h,n),Ve=v,Bs(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(ts,u)}catch{}return!0}finally{U.p=r,R.T=s,ep(e,t)}}function np(e,t,n){t=Ft(n,t),t=yu(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(as(e,2),Sn(e))}function Be(e,t,n){if(e.tag===3)np(e,e,n);else for(;t!==null;){if(t.tag===3){np(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ca===null||!ca.has(s))){e=Ft(n,e),n=ah(2),s=ia(t,n,2),s!==null&&(ih(n,s,t,e),as(s,2),Sn(s));break}}t=t.return}}function Gu(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new nx;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(n)||(Ou=!0,r.add(n),e=ox.bind(null,e,t,n),t.then(e,e))}function ox(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ge===e&&(Ae&n)===n&&(Fe===4||Fe===3&&(Ae&62914560)===Ae&&300>Tt()-so?(Ve&2)===0&&Oi(e,0):Vu|=n,Ri===Ae&&(Ri=0)),Sn(e)}function ap(e,t){t===0&&(t=Fd()),e=Ra(e,t),e!==null&&(as(e,t),Sn(e))}function rx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ap(e,n)}function ux(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),ap(e,n)}function cx(e,t){return be(e,t)}var mo=null,_i=null,Yu=!1,ho=!1,qu=!1,ma=0;function Sn(e){e!==_i&&e.next===null&&(_i===null?mo=_i=e:_i=_i.next=e),ho=!0,Yu||(Yu=!0,fx())}function Bs(e,t){if(!qu&&ho){qu=!0;do for(var n=!1,s=mo;s!==null;){if(e!==0){var r=s.pendingLanes;if(r===0)var u=0;else{var h=s.suspendedLanes,v=s.pingedLanes;u=(1<<31-Bt(42|e)+1)-1,u&=r&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,op(s,u))}else u=Ae,u=gl(s,s===Ge?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||ns(s,u)||(n=!0,op(s,u));s=s.next}while(n);qu=!1}}function dx(){ip()}function ip(){ho=Yu=!1;var e=0;ma!==0&&Cx()&&(e=ma);for(var t=Tt(),n=null,s=mo;s!==null;){var r=s.next,u=sp(s,t);u===0?(s.next=null,n===null?mo=r:n.next=r,r===null&&(_i=n)):(n=s,(e!==0||(u&3)!==0)&&(ho=!0)),s=r}lt!==0&&lt!==5||Bs(e),ma!==0&&(ma=0)}function sp(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Bt(u),v=1<<h,C=r[h];C===-1?((v&n)===0||(v&s)!==0)&&(r[h]=Lb(v,t)):C<=t&&(e.expiredLanes|=v),u&=~v}if(t=Ge,n=Ae,n=gl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ne(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ns(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Ne(s),ir(n)){case 2:case 8:n=Tn;break;case 32:n=ml;break;case 268435456:n=Pd;break;default:n=ml}return s=lp.bind(null,e),n=be(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Ne(s),e.callbackPriority=2,e.callbackNode=null,2}function lp(e,t){if(lt!==0&&lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fo()&&e.callbackNode!==n)return null;var s=Ae;return s=gl(e,e===Ge?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Gh(e,s,t),sp(e,Tt()),e.callbackNode!=null&&e.callbackNode===n?lp.bind(null,e):null)}function op(e,t){if(fo())return null;Gh(e,t,!0)}function fx(){jx(function(){(Ve&6)!==0?be(ti,dx):ip()})}function Xu(){if(ma===0){var e=xi;e===0&&(e=hl,hl<<=1,(hl&261888)===0&&(hl=256)),ma=e}return ma}function rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sl(""+e)}function up(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function mx(e,t,n,s,r){if(t==="submit"&&n&&n.stateNode===r){var u=rp((r[Mt]||null).action),h=s.submitter;h&&(t=(t=h[Mt]||null)?rp(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new Tl("action","action",null,s,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ma!==0){var C=h?up(r,h):new FormData(r);cu(n,{pending:!0,data:C,method:r.method,action:u},null,C)}}else typeof u=="function"&&(v.preventDefault(),C=h?up(r,h):new FormData(r),cu(n,{pending:!0,data:C,method:r.method,action:u},u,C))},currentTarget:r}]})}}for(var Ku=0;Ku<Ar.length;Ku++){var Qu=Ar[Ku],hx=Qu.toLowerCase(),px=Qu[0].toUpperCase()+Qu.slice(1);dn(hx,"on"+px)}dn(Hf,"onAnimationEnd"),dn(Gf,"onAnimationIteration"),dn(Yf,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(Rv,"onTransitionRun"),dn(zv,"onTransitionStart"),dn(Ov,"onTransitionCancel"),dn(qf,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),yx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ls));function cp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],r=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var h=s.length-1;0<=h;h--){var v=s[h],C=v.instance,_=v.currentTarget;if(v=v.listener,C!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=_;try{u(r)}catch(Y){Ml(Y)}r.currentTarget=null,u=C}else for(h=0;h<s.length;h++){if(v=s[h],C=v.instance,_=v.currentTarget,v=v.listener,C!==u&&r.isPropagationStopped())break e;u=v,r.currentTarget=_;try{u(r)}catch(Y){Ml(Y)}r.currentTarget=null,u=C}}}}function Te(e,t){var n=t[sr];n===void 0&&(n=t[sr]=new Set);var s=e+"__bubble";n.has(s)||(dp(t,e,2,!1),n.add(s))}function Zu(e,t,n){var s=0;t&&(s|=4),dp(n,e,s,t)}var po="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[po]){e[po]=!0,af.forEach(function(n){n!=="selectionchange"&&(yx.has(n)||Zu(n,!1,e),Zu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[po]||(t[po]=!0,Zu("selectionchange",!1,t))}}function dp(e,t,n,s){switch(Hp(t)){case 2:var r=Xx;break;case 8:r=Kx;break;default:r=uc}n=r.bind(null,t,n,e),r=void 0,!hr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Pu(e,t,n,s,r){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var v=s.stateNode.containerInfo;if(v===r)break;if(h===4)for(h=s.return;h!==null;){var C=h.tag;if((C===3||C===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;v!==null;){if(h=ai(v),h===null)return;if(C=h.tag,C===5||C===6||C===26||C===27){s=u=h;continue e}v=v.parentNode}}s=s.return}yf(function(){var _=u,Y=fr(n),Z=[];e:{var B=Xf.get(e);if(B!==void 0){var L=Tl,se=e;switch(e){case"keypress":if(wl(n)===0)break e;case"keydown":case"keyup":L=uv;break;case"focusin":se="focus",L=br;break;case"focusout":se="blur",L=br;break;case"beforeblur":case"afterblur":L=br;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Wb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=fv;break;case Hf:case Gf:case Yf:L=ev;break;case qf:L=hv;break;case"scroll":case"scrollend":L=Pb;break;case"wheel":L=yv;break;case"copy":case"cut":case"paste":L=nv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Sf;break;case"toggle":case"beforetoggle":L=bv}var ge=(t&4)!==0,He=!ge&&(e==="scroll"||e==="scrollend"),M=ge?B!==null?B+"Capture":null:B;ge=[];for(var j=_,V;j!==null;){var K=j;if(V=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||V===null||M===null||(K=ls(j,M),K!=null&&ge.push(Us(j,K,V))),He)break;j=j.return}0<ge.length&&(B=new L(B,se,null,n,Y),Z.push({event:B,listeners:ge}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",B&&n!==dr&&(se=n.relatedTarget||n.fromElement)&&(ai(se)||se[ni]))break e;if((L||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,L?(se=n.relatedTarget||n.toElement,L=_,se=se?ai(se):null,se!==null&&(He=m(se),ge=se.tag,se!==He||ge!==5&&ge!==27&&ge!==6)&&(se=null)):(L=null,se=_),L!==se)){if(ge=vf,K="onMouseLeave",M="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Sf,K="onPointerLeave",M="onPointerEnter",j="pointer"),He=L==null?B:ss(L),V=se==null?B:ss(se),B=new ge(K,j+"leave",L,n,Y),B.target=He,B.relatedTarget=V,K=null,ai(Y)===_&&(ge=new ge(M,j+"enter",se,n,Y),ge.target=V,ge.relatedTarget=He,K=ge),He=K,L&&se)t:{for(ge=gx,M=L,j=se,V=0,K=M;K;K=ge(K))V++;K=0;for(var pe=j;pe;pe=ge(pe))K++;for(;0<V-K;)M=ge(M),V--;for(;0<K-V;)j=ge(j),K--;for(;V--;){if(M===j||j!==null&&M===j.alternate){ge=M;break t}M=ge(M),j=ge(j)}ge=null}else ge=null;L!==null&&fp(Z,B,L,ge,!1),se!==null&&He!==null&&fp(Z,He,se,ge,!0)}}e:{if(B=_?ss(_):window,L=B.nodeName&&B.nodeName.toLowerCase(),L==="select"||L==="input"&&B.type==="file")var Re=Ef;else if(Af(B))if(Df)Re=Mv;else{Re=Nv;var ue=Tv}else L=B.nodeName,!L||L.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?_&&cr(_.elementType)&&(Re=Ef):Re=Av;if(Re&&(Re=Re(e,_))){Mf(Z,Re,n,Y);break e}ue&&ue(e,B,_),e==="focusout"&&_&&B.type==="number"&&_.memoizedProps.value!=null&&ur(B,"number",B.value)}switch(ue=_?ss(_):window,e){case"focusin":(Af(ue)||ue.contentEditable==="true")&&(fi=ue,jr=_,hs=null);break;case"focusout":hs=jr=fi=null;break;case"mousedown":Tr=!0;break;case"contextmenu":case"mouseup":case"dragend":Tr=!1,Lf(Z,n,Y);break;case"selectionchange":if(Dv)break;case"keydown":case"keyup":Lf(Z,n,Y)}var Ce;if(xr)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else di?Tf(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Cf&&n.locale!=="ko"&&(di||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&di&&(Ce=gf()):(Wn=Y,pr="value"in Wn?Wn.value:Wn.textContent,di=!0)),ue=yo(_,Me),0<ue.length&&(Me=new xf(Me,e,null,n,Y),Z.push({event:Me,listeners:ue}),Ce?Me.data=Ce:(Ce=Nf(n),Ce!==null&&(Me.data=Ce)))),(Ce=xv?Sv(e,n):Cv(e,n))&&(Me=yo(_,"onBeforeInput"),0<Me.length&&(ue=new xf("onBeforeInput","beforeinput",null,n,Y),Z.push({event:ue,listeners:Me}),ue.data=Ce)),mx(Z,e,_,n,Y)}cp(Z,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yo(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=ls(e,n),r!=null&&s.unshift(Us(e,r,u)),r=ls(e,t),r!=null&&s.push(Us(e,r,u))),e.tag===3)return s;e=e.return}return[]}function gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fp(e,t,n,s,r){for(var u=t._reactName,h=[];n!==null&&n!==s;){var v=n,C=v.alternate,_=v.stateNode;if(v=v.tag,C!==null&&C===s)break;v!==5&&v!==26&&v!==27||_===null||(C=_,r?(_=ls(n,u),_!=null&&h.unshift(Us(n,_,C))):r||(_=ls(n,u),_!=null&&h.push(Us(n,_,C)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var bx=/\r\n?/g,vx=/\u0000|\uFFFD/g;function mp(e){return(typeof e=="string"?e:""+e).replace(bx,`
9
+ `).replace(vx,"")}function hp(e,t){return t=mp(t),mp(e)===t}function Ue(e,t,n,s,r,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ri(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ri(e,""+s);break;case"className":vl(e,"class",s);break;case"tabIndex":vl(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(e,n,s);break;case"style":hf(e,s,u);break;case"data":if(t!=="object"){vl(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Sl(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",r.name,r,null),Ue(e,t,"formEncType",r.formEncType,r,null),Ue(e,t,"formMethod",r.formMethod,r,null),Ue(e,t,"formTarget",r.formTarget,r,null)):(Ue(e,t,"encType",r.encType,r,null),Ue(e,t,"method",r.method,r,null),Ue(e,t,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Sl(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=An);break;case"onScroll":s!=null&&Te("scroll",e);break;case"onScrollEnd":s!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=Sl(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Te("beforetoggle",e),Te("toggle",e),bl(e,"popover",s);break;case"xlinkActuate":Nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Nn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Nn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Nn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Nn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":bl(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Zb.get(n)||n,bl(e,n,s))}}function Fu(e,t,n,s,r,u){switch(n){case"style":hf(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof s=="string"?ri(e,s):(typeof s=="number"||typeof s=="bigint")&&ri(e,""+s);break;case"onScroll":s!=null&&Te("scroll",e);break;case"onScrollEnd":s!=null&&Te("scrollend",e);break;case"onClick":s!=null&&(e.onclick=An);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),u=e[Mt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,r),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,r);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):bl(e,n,s)}}}function pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var s=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ue(e,t,u,h,n,null)}}r&&Ue(e,t,"srcSet",n.srcSet,n,null),s&&Ue(e,t,"src",n.src,n,null);return;case"input":Te("invalid",e);var v=u=h=r=null,C=null,_=null;for(s in n)if(n.hasOwnProperty(s)){var Y=n[s];if(Y!=null)switch(s){case"name":r=Y;break;case"type":h=Y;break;case"checked":C=Y;break;case"defaultChecked":_=Y;break;case"value":u=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o(137,t));break;default:Ue(e,t,s,Y,n,null)}}cf(e,u,v,C,_,h,r,!1);return;case"select":Te("invalid",e),s=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(v=n[r],v!=null))switch(r){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":s=v;default:Ue(e,t,r,v,n,null)}t=u,n=h,e.multiple=!!s,t!=null?oi(e,!!s,t,!1):n!=null&&oi(e,!!s,n,!0);return;case"textarea":Te("invalid",e),u=r=s=null;for(h in n)if(n.hasOwnProperty(h)&&(v=n[h],v!=null))switch(h){case"value":s=v;break;case"defaultValue":r=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ue(e,t,h,v,n,null)}ff(e,s,r,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(s=n[C],s!=null))switch(C){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ue(e,t,C,s,n,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(s=0;s<Ls.length;s++)Te(Ls[s],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(_ in n)if(n.hasOwnProperty(_)&&(s=n[_],s!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ue(e,t,_,s,n,null)}return;default:if(cr(t)){for(Y in n)n.hasOwnProperty(Y)&&(s=n[Y],s!==void 0&&Fu(e,t,Y,s,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(s=n[v],s!=null&&Ue(e,t,v,s,n,null))}function xx(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,v=null,C=null,_=null,Y=null;for(L in n){var Z=n[L];if(n.hasOwnProperty(L)&&Z!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":C=Z;default:s.hasOwnProperty(L)||Ue(e,t,L,null,s,Z)}}for(var B in s){var L=s[B];if(Z=n[B],s.hasOwnProperty(B)&&(L!=null||Z!=null))switch(B){case"type":u=L;break;case"name":r=L;break;case"checked":_=L;break;case"defaultChecked":Y=L;break;case"value":h=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==Z&&Ue(e,t,B,L,s,Z)}}rr(e,h,v,C,_,Y,u,r);return;case"select":L=h=v=B=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":L=C;default:s.hasOwnProperty(u)||Ue(e,t,u,null,s,C)}for(r in s)if(u=s[r],C=n[r],s.hasOwnProperty(r)&&(u!=null||C!=null))switch(r){case"value":B=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==C&&Ue(e,t,r,u,s,C)}t=v,n=h,s=L,B!=null?oi(e,!!n,B,!1):!!s!=!!n&&(t!=null?oi(e,!!n,t,!0):oi(e,!!n,n?[]:"",!1));return;case"textarea":L=B=null;for(v in n)if(r=n[v],n.hasOwnProperty(v)&&r!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,s,r)}for(h in s)if(r=s[h],u=n[h],s.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":B=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&Ue(e,t,h,r,s,u)}df(e,B,L);return;case"option":for(var se in n)if(B=n[se],n.hasOwnProperty(se)&&B!=null&&!s.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Ue(e,t,se,null,s,B)}for(C in s)if(B=s[C],L=n[C],s.hasOwnProperty(C)&&B!==L&&(B!=null||L!=null))switch(C){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,C,B,s,L)}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 ge in n)B=n[ge],n.hasOwnProperty(ge)&&B!=null&&!s.hasOwnProperty(ge)&&Ue(e,t,ge,null,s,B);for(_ in s)if(B=s[_],L=n[_],s.hasOwnProperty(_)&&B!==L&&(B!=null||L!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:Ue(e,t,_,B,s,L)}return;default:if(cr(t)){for(var He in n)B=n[He],n.hasOwnProperty(He)&&B!==void 0&&!s.hasOwnProperty(He)&&Fu(e,t,He,void 0,s,B);for(Y in s)B=s[Y],L=n[Y],!s.hasOwnProperty(Y)||B===L||B===void 0&&L===void 0||Fu(e,t,Y,B,s,L);return}}for(var M in n)B=n[M],n.hasOwnProperty(M)&&B!=null&&!s.hasOwnProperty(M)&&Ue(e,t,M,null,s,B);for(Z in s)B=s[Z],L=n[Z],!s.hasOwnProperty(Z)||B===L||B==null&&L==null||Ue(e,t,Z,B,s,L)}function pp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var r=n[s],u=r.transferSize,h=r.initiatorType,v=r.duration;if(u&&v&&pp(h)){for(h=0,v=r.responseEnd,s+=1;s<n.length;s++){var C=n[s],_=C.startTime;if(_>v)break;var Y=C.transferSize,Z=C.initiatorType;Y&&pp(Z)&&(C=C.responseEnd,h+=Y*(C<v?1:(v-_)/(C-_)))}if(--s,t+=8*(u+h)/(r.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 Wu=null,$u=null;function go(e){return e.nodeType===9?e:e.ownerDocument}function yp(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 Iu(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 ec=null;function Cx(){var e=window.event;return e&&e.type==="popstate"?e===ec?!1:(ec=e,!0):(ec=null,!1)}var bp=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,jx=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(e){return vp.resolve(null).then(e).catch(Tx)}:bp;function Tx(e){setTimeout(function(){throw e})}function ha(e){return e==="head"}function xp(e,t){var n=t,s=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(r),Ui(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Hs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Hs(n);for(var u=n.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[is]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Hs(e.ownerDocument.body);n=r}while(n);Ui(t)}function Sp(e,t){var n=e;e=0;do{var s=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function tc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":tc(n),lr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Nx(e,t,n,s){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[is])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!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function Ax(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=tn(e.nextSibling),e===null))return null;return e}function Cp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function nc(e){return e.data==="$?"||e.data==="$~"}function ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ic=null;function wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Tp(e,t,n){switch(t=go(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Hs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lr(e)}var nn=new Map,Np=new Set;function bo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qn=U.d;U.d={f:Ex,r:Dx,D:Rx,C:zx,L:Ox,m:Vx,X:kx,S:_x,M:Bx};function Ex(){var e=qn.f(),t=ro();return e||t}function Dx(e){var t=ii(e);t!==null&&t.tag===5&&t.type==="form"?qm(t):qn.r(e)}var ki=typeof document>"u"?null:document;function Ap(e,t,n){var s=ki;if(s&&typeof t=="string"&&t){var r=Jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Np.has(r)||(Np.add(r),e={rel:e,crossOrigin:n,href:t},s.querySelector(r)===null&&(t=s.createElement("link"),pt(t,"link",e),ut(t),s.head.appendChild(t)))}}function Rx(e){qn.D(e),Ap("dns-prefetch",e,null)}function zx(e,t){qn.C(e,t),Ap("preconnect",e,t)}function Ox(e,t,n){qn.L(e,t,n);var s=ki;if(s&&e&&t){var r='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Jt(n.imageSizes)+'"]')):r+='[href="'+Jt(e)+'"]';var u=r;switch(t){case"style":u=Bi(e);break;case"script":u=Li(e)}nn.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),nn.set(u,e),s.querySelector(r)!==null||t==="style"&&s.querySelector(Gs(u))||t==="script"&&s.querySelector(Ys(u))||(t=s.createElement("link"),pt(t,"link",e),ut(t),s.head.appendChild(t)))}}function Vx(e,t){qn.m(e,t);var n=ki;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Jt(s)+'"][href="'+Jt(e)+'"]',u=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Li(e)}if(!nn.has(u)&&(e=x({rel:"modulepreload",href:e},t),nn.set(u,e),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ys(u)))return}s=n.createElement("link"),pt(s,"link",e),ut(s),n.head.appendChild(s)}}}function _x(e,t,n){qn.S(e,t,n);var s=ki;if(s&&e){var r=si(s).hoistableStyles,u=Bi(e);t=t||"default";var h=r.get(u);if(!h){var v={loading:0,preload:null};if(h=s.querySelector(Gs(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=nn.get(u))&&sc(e,n);var C=h=s.createElement("link");ut(C),pt(C,"link",e),C._p=new Promise(function(_,Y){C.onload=_,C.onerror=Y}),C.addEventListener("load",function(){v.loading|=1}),C.addEventListener("error",function(){v.loading|=2}),v.loading|=4,vo(h,t,s)}h={type:"stylesheet",instance:h,count:1,state:v},r.set(u,h)}}}function kx(e,t){qn.X(e,t);var n=ki;if(n&&e){var s=si(n).hoistableScripts,r=Li(e),u=s.get(r);u||(u=n.querySelector(Ys(r)),u||(e=x({src:e,async:!0},t),(t=nn.get(r))&&lc(e,t),u=n.createElement("script"),ut(u),pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function Bx(e,t){qn.M(e,t);var n=ki;if(n&&e){var s=si(n).hoistableScripts,r=Li(e),u=s.get(r);u||(u=n.querySelector(Ys(r)),u||(e=x({src:e,async:!0,type:"module"},t),(t=nn.get(r))&&lc(e,t),u=n.createElement("script"),ut(u),pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function Mp(e,t,n,s){var r=(r=le.current)?bo(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Bi(n.href),n=si(r).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Bi(n.href);var u=si(r).hoistableStyles,h=u.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=r.querySelector(Gs(e)))&&!u._p&&(h.instance=u,h.state.loading=5),nn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(e,n),u||Lx(r,e,n,h.state))),t&&s===null)throw Error(o(528,""));return h}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Li(n),n=si(r).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Bi(e){return'href="'+Jt(e)+'"'}function Gs(e){return'link[rel="stylesheet"]['+e+"]"}function Ep(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Lx(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),pt(t,"link",n),ut(t),e.head.appendChild(t))}function Li(e){return'[src="'+Jt(e)+'"]'}function Ys(e){return"script[async]"+e}function Dp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Jt(n.href)+'"]');if(s)return t.instance=s,ut(s),s;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),ut(s),pt(s,"style",r),vo(s,n.precedence,e),t.instance=s;case"stylesheet":r=Bi(n.href);var u=e.querySelector(Gs(r));if(u)return t.state.loading|=4,t.instance=u,ut(u),u;s=Ep(n),(r=nn.get(r))&&sc(s,r),u=(e.ownerDocument||e).createElement("link"),ut(u);var h=u;return h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),pt(u,"link",s),t.state.loading|=4,vo(u,n.precedence,e),t.instance=u;case"script":return u=Li(n.src),(r=e.querySelector(Ys(u)))?(t.instance=r,ut(r),r):(s=n,(r=nn.get(u))&&(s=x({},n),lc(s,r)),e=e.ownerDocument||e,r=e.createElement("script"),ut(r),pt(r,"link",s),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,vo(s,n.precedence,e));return t.instance}function vo(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,u=r,h=0;h<s.length;h++){var v=s[h];if(v.dataset.precedence===t)u=v;else if(u!==r)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xo=null;function Rp(e,t,n){if(xo===null){var s=new Map,r=xo=new Map;r.set(n,s)}else r=xo,s=r.get(n),s||(s=new Map,r.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var u=n[r];if(!(u[is]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=s.get(h);v?v.push(u):s.set(h,[u])}}return s}function zp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ux(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Hx(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Bi(s.href),u=t.querySelector(Gs(r));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=So.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,ut(u);return}u=t.ownerDocument||t,s=Ep(s),(r=nn.get(r))&&sc(s,r),u=u.createElement("link"),ut(u);var h=u;h._p=new Promise(function(v,C){h.onload=v,h.onerror=C}),pt(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=So.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var oc=0;function Gx(e,t){return e.stylesheets&&e.count===0&&wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&wo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&oc===0&&(oc=62500*Sx());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>oc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function So(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Co=null;function wo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Co=new Map,t.forEach(Yx,e),Co=null,So.call(e))}function Yx(e,t){if(!(t.state.loading&4)){var n=Co.get(e);if(n)var s=n.get(null);else{n=new Map,Co.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),s=h)}s&&n.set(null,s)}r=t.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||s,u===s&&n.set(null,r),n.set(h,r),this.count++,s=So.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),u?u.parentNode.insertBefore(r,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var qs={$$typeof:G,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function qx(e,t,n,s,r,u,h,v,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.hiddenUpdates=nr(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Vp(e,t,n,s,r,u,h,v,C,_,Y,Z){return e=new qx(e,t,n,h,C,_,Y,Z,v),t=1,u===!0&&(t|=24),u=Ut(3,null,null,t),e.current=u,u.stateNode=e,t=Hr(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},Xr(u),e}function _p(e){return e?(e=pi,e):pi}function kp(e,t,n,s,r,u){r=_p(r),s.context===null?s.context=r:s.pendingContext=r,s=aa(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=ia(e,s,t),n!==null&&(Vt(n,e,t),Ss(n,e,t))}function Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rc(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function Lp(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&Vt(t,e,67108864),rc(e,67108864)}}function Up(e){if(e.tag===13||e.tag===31){var t=Xt();t=ar(t);var n=Ra(e,t);n!==null&&Vt(n,e,t),rc(e,t)}}var jo=!0;function Xx(e,t,n,s){var r=R.T;R.T=null;var u=U.p;try{U.p=2,uc(e,t,n,s)}finally{U.p=u,R.T=r}}function Kx(e,t,n,s){var r=R.T;R.T=null;var u=U.p;try{U.p=8,uc(e,t,n,s)}finally{U.p=u,R.T=r}}function uc(e,t,n,s){if(jo){var r=cc(s);if(r===null)Pu(e,t,s,To,n),Gp(e,s);else if(Zx(r,e,t,n,s))s.stopPropagation();else if(Gp(e,s),t&4&&-1<Qx.indexOf(e)){for(;r!==null;){var u=ii(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Na(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var C=1<<31-Bt(h);v.entanglements[1]|=C,h&=~C}Sn(u),(Ve&6)===0&&(lo=Tt()+500,Bs(0))}}break;case 31:case 13:v=Ra(u,2),v!==null&&Vt(v,u,2),ro(),rc(u,2)}if(u=cc(s),u===null&&Pu(e,t,s,To,n),u===r)break;r=u}r!==null&&s.stopPropagation()}else Pu(e,t,s,null,n)}}function cc(e){return e=fr(e),dc(e)}var To=null;function dc(e){if(To=null,e=ai(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=f(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return To=e,null}function Hp(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(tr()){case ti:return 2;case Tn:return 8;case ml:case zb:return 32;case Pd:return 268435456;default:return 32}default:return 32}}var fc=!1,pa=null,ya=null,ga=null,Xs=new Map,Ks=new Map,ba=[],Qx="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 Gp(e,t){switch(e){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":ya=null;break;case"mouseover":case"mouseout":ga=null;break;case"pointerover":case"pointerout":Xs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ks.delete(t.pointerId)}}function Qs(e,t,n,s,r,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[r]},t!==null&&(t=ii(t),t!==null&&Lp(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Zx(e,t,n,s,r){switch(t){case"focusin":return pa=Qs(pa,e,t,n,s,r),!0;case"dragenter":return ya=Qs(ya,e,t,n,s,r),!0;case"mouseover":return ga=Qs(ga,e,t,n,s,r),!0;case"pointerover":var u=r.pointerId;return Xs.set(u,Qs(Xs.get(u)||null,e,t,n,s,r)),!0;case"gotpointercapture":return u=r.pointerId,Ks.set(u,Qs(Ks.get(u)||null,e,t,n,s,r)),!0}return!1}function Yp(e){var t=ai(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=f(n),t!==null){e.blockedOn=t,tf(e.priority,function(){Up(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,tf(e.priority,function(){Up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function No(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cc(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);dr=s,n.target.dispatchEvent(s),dr=null}else return t=ii(n),t!==null&&Lp(t),e.blockedOn=n,!1;t.shift()}return!0}function qp(e,t,n){No(e)&&n.delete(t)}function Jx(){fc=!1,pa!==null&&No(pa)&&(pa=null),ya!==null&&No(ya)&&(ya=null),ga!==null&&No(ga)&&(ga=null),Xs.forEach(qp),Ks.forEach(qp)}function Ao(e,t){e.blockedOn===t&&(e.blockedOn=null,fc||(fc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Jx)))}var Mo=null;function Xp(e){Mo!==e&&(Mo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Mo===e&&(Mo=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],r=e[t+2];if(typeof s!="function"){if(dc(s||n)===null)continue;break}var u=ii(n);u!==null&&(e.splice(t,3),t-=3,cu(u,{pending:!0,data:r,method:n.method,action:s},s,r))}}))}function Ui(e){function t(C){return Ao(C,e)}pa!==null&&Ao(pa,e),ya!==null&&Ao(ya,e),ga!==null&&Ao(ga,e),Xs.forEach(t),Ks.forEach(t);for(var n=0;n<ba.length;n++){var s=ba[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ba.length&&(n=ba[0],n.blockedOn===null);)Yp(n),n.blockedOn===null&&ba.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var r=n[s],u=n[s+1],h=r[Mt]||null;if(typeof u=="function")h||Xp(n);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[Mt]||null)v=h.formAction;else if(dc(r)!==null)continue}else v=h.action;typeof v=="function"?n[s+1]=v:(n.splice(s,3),s-=3),Xp(n)}}}function Kp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),s||setTimeout(n,20)}function n(){if(!s&&!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 s=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function mc(e){this._internalRoot=e}Eo.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,s=Xt();kp(n,s,e,t,null,null)},Eo.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kp(e.current,2,null,e,null,null),ro(),t[ni]=null}};function Eo(e){this._internalRoot=e}Eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ef();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ba.length&&t!==0&&t<ba[n].priority;n++);ba.splice(n,0,e),n===0&&Yp(e)}};var Qp=i.version;if(Qp!=="19.2.1")throw Error(o(527,Qp,"19.2.1"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Px={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{ts=Do.inject(Px),kt=Do}catch{}}return Js.createRoot=function(e,t){if(!d(e))throw Error(o(299));var n=!1,s="",r=Im,u=eh,h=th;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Vp(e,1,!1,null,null,n,s,null,r,u,h,Kp),e[ni]=t.current,Ju(e),new mc(t)},Js.hydrateRoot=function(e,t,n){if(!d(e))throw Error(o(299));var s=!1,r="",u=Im,h=eh,v=th,C=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Vp(e,1,!0,t,n??null,s,r,C,u,h,v,Kp),t.context=_p(null),n=t.current,s=Xt(),s=ar(s),r=aa(s),r.callback=null,ia(n,r,s),n=s,t.current.lanes=n,as(t,n),Sn(t),e[ni]=t.current,Ju(e),new Eo(t)},Js.version="19.2.1",Js}var ny;function s1(){if(ny)return yc.exports;ny=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(i){console.error(i)}}return a(),yc.exports=i1(),yc.exports}var l1=s1();const hd=T.createContext({});function pd(a){const i=T.useRef(null);return i.current===null&&(i.current=a()),i.current}const yd=typeof window<"u",Ag=yd?T.useLayoutEffect:T.useEffect,Wo=T.createContext(null);function gd(a,i){a.indexOf(i)===-1&&a.push(i)}function bd(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const Zn=(a,i,l)=>l>i?i:l<a?a:l;let vd=()=>{};const Jn={},Mg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function Eg(a){return typeof a=="object"&&a!==null}const Dg=a=>/^0[^.\s]+$/u.test(a);function xd(a){let i;return()=>(i===void 0&&(i=a()),i)}const ln=a=>a,o1=(a,i)=>l=>i(a(l)),rl=(...a)=>a.reduce(o1),al=(a,i,l)=>{const o=i-a;return o===0?1:(l-a)/o};class Sd{constructor(){this.subscriptions=[]}add(i){return gd(this.subscriptions,i),()=>bd(this.subscriptions,i)}notify(i,l,o){const d=this.subscriptions.length;if(d)if(d===1)this.subscriptions[0](i,l,o);else for(let m=0;m<d;m++){const f=this.subscriptions[m];f&&f(i,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cn=a=>a*1e3,sn=a=>a/1e3;function Rg(a,i){return i?a*(1e3/i):0}const zg=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,r1=1e-7,u1=12;function c1(a,i,l,o,d){let m,f,g=0;do f=i+(l-i)/2,m=zg(f,o,d)-a,m>0?l=f:i=f;while(Math.abs(m)>r1&&++g<u1);return f}function ul(a,i,l,o){if(a===i&&l===o)return ln;const d=m=>c1(m,0,1,a,l);return m=>m===0||m===1?m:zg(d(m),i,o)}const Og=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,Vg=a=>i=>1-a(1-i),_g=ul(.33,1.53,.69,.99),Cd=Vg(_g),kg=Og(Cd),Bg=a=>(a*=2)<1?.5*Cd(a):.5*(2-Math.pow(2,-10*(a-1))),wd=a=>1-Math.sin(Math.acos(a)),Lg=Vg(wd),Ug=Og(wd),d1=ul(.42,0,1,1),f1=ul(0,0,.58,1),Hg=ul(.42,0,.58,1),m1=a=>Array.isArray(a)&&typeof a[0]!="number",Gg=a=>Array.isArray(a)&&typeof a[0]=="number",h1={linear:ln,easeIn:d1,easeInOut:Hg,easeOut:f1,circIn:wd,circInOut:Ug,circOut:Lg,backIn:Cd,backInOut:kg,backOut:_g,anticipate:Bg},p1=a=>typeof a=="string",ay=a=>{if(Gg(a)){vd(a.length===4);const[i,l,o,d]=a;return ul(i,l,o,d)}else if(p1(a))return h1[a];return a},Ro=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function y1(a,i){let l=new Set,o=new Set,d=!1,m=!1;const f=new WeakSet;let g={delta:0,timestamp:0,isProcessing:!1};function y(b){f.has(b)&&(p.schedule(b),a()),b(g)}const p={schedule:(b,x=!1,S=!1)=>{const E=S&&d?l:o;return x&&f.add(b),E.has(b)||E.add(b),b},cancel:b=>{o.delete(b),f.delete(b)},process:b=>{if(g=b,d){m=!0;return}d=!0,[l,o]=[o,l],l.forEach(y),l.clear(),d=!1,m&&(m=!1,p.process(b))}};return p}const g1=40;function Yg(a,i){let l=!1,o=!0;const d={delta:0,timestamp:0,isProcessing:!1},m=()=>l=!0,f=Ro.reduce((G,W)=>(G[W]=y1(m),G),{}),{setup:g,read:y,resolveKeyframes:p,preUpdate:b,update:x,preRender:S,render:N,postRender:E}=f,O=()=>{const G=Jn.useManualTiming?d.timestamp:performance.now();l=!1,Jn.useManualTiming||(d.delta=o?1e3/60:Math.max(Math.min(G-d.timestamp,g1),1)),d.timestamp=G,d.isProcessing=!0,g.process(d),y.process(d),p.process(d),b.process(d),x.process(d),S.process(d),N.process(d),E.process(d),d.isProcessing=!1,l&&i&&(o=!1,a(O))},k=()=>{l=!0,o=!0,d.isProcessing||a(O)};return{schedule:Ro.reduce((G,W)=>{const Q=f[W];return G[W]=(P,X=!1,z=!1)=>(l||k(),Q.schedule(P,X,z)),G},{}),cancel:G=>{for(let W=0;W<Ro.length;W++)f[Ro[W]].cancel(G)},state:d,steps:f}}const{schedule:Ze,cancel:wa,state:St,steps:xc}=Yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:ln,!0);let Lo;function b1(){Lo=void 0}const _t={now:()=>(Lo===void 0&&_t.set(St.isProcessing||Jn.useManualTiming?St.timestamp:performance.now()),Lo),set:a=>{Lo=a,queueMicrotask(b1)}},qg=a=>i=>typeof i=="string"&&i.startsWith(a),Xg=qg("--"),v1=qg("var(--"),jd=a=>v1(a)?x1.test(a.split("/*")[0].trim()):!1,x1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},il={...Pi,transform:a=>Zn(0,1,a)},zo={...Pi,default:1},Is=a=>Math.round(a*1e5)/1e5,Td=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S1(a){return a==null}const C1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nd=(a,i)=>l=>!!(typeof l=="string"&&C1.test(l)&&l.startsWith(a)||i&&!S1(l)&&Object.prototype.hasOwnProperty.call(l,i)),Kg=(a,i,l)=>o=>{if(typeof o!="string")return o;const[d,m,f,g]=o.match(Td);return{[a]:parseFloat(d),[i]:parseFloat(m),[l]:parseFloat(f),alpha:g!==void 0?parseFloat(g):1}},w1=a=>Zn(0,255,a),Sc={...Pi,transform:a=>Math.round(w1(a))},Pa={test:Nd("rgb","red"),parse:Kg("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:o=1})=>"rgba("+Sc.transform(a)+", "+Sc.transform(i)+", "+Sc.transform(l)+", "+Is(il.transform(o))+")"};function j1(a){let i="",l="",o="",d="";return a.length>5?(i=a.substring(1,3),l=a.substring(3,5),o=a.substring(5,7),d=a.substring(7,9)):(i=a.substring(1,2),l=a.substring(2,3),o=a.substring(3,4),d=a.substring(4,5),i+=i,l+=l,o+=o,d+=d),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:d?parseInt(d,16)/255:1}}const Uc={test:Nd("#"),parse:j1,transform:Pa.transform},cl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Sa=cl("deg"),wn=cl("%"),ve=cl("px"),T1=cl("vh"),N1=cl("vw"),iy={...wn,parse:a=>wn.parse(a)/100,transform:a=>wn.transform(a*100)},Gi={test:Nd("hsl","hue"),parse:Kg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+wn.transform(Is(i))+", "+wn.transform(Is(l))+", "+Is(il.transform(o))+")"},it={test:a=>Pa.test(a)||Uc.test(a)||Gi.test(a),parse:a=>Pa.test(a)?Pa.parse(a):Gi.test(a)?Gi.parse(a):Uc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Pa.transform(a):Gi.transform(a),getAnimatableNone:a=>{const i=it.parse(a);return i.alpha=0,it.transform(i)}},A1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function M1(a){return isNaN(a)&&typeof a=="string"&&(a.match(Td)?.length||0)+(a.match(A1)?.length||0)>0}const Qg="number",Zg="color",E1="var",D1="var(",sy="${}",R1=/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 sl(a){const i=a.toString(),l=[],o={color:[],number:[],var:[]},d=[];let m=0;const g=i.replace(R1,y=>(it.test(y)?(o.color.push(m),d.push(Zg),l.push(it.parse(y))):y.startsWith(D1)?(o.var.push(m),d.push(E1),l.push(y)):(o.number.push(m),d.push(Qg),l.push(parseFloat(y))),++m,sy)).split(sy);return{values:l,split:g,indexes:o,types:d}}function Jg(a){return sl(a).values}function Pg(a){const{split:i,types:l}=sl(a),o=i.length;return d=>{let m="";for(let f=0;f<o;f++)if(m+=i[f],d[f]!==void 0){const g=l[f];g===Qg?m+=Is(d[f]):g===Zg?m+=it.transform(d[f]):m+=d[f]}return m}}const z1=a=>typeof a=="number"?0:it.test(a)?it.getAnimatableNone(a):a;function O1(a){const i=Jg(a);return Pg(a)(i.map(z1))}const ja={test:M1,parse:Jg,createTransformer:Pg,getAnimatableNone:O1};function Cc(a,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(i-a)*6*l:l<1/2?i:l<2/3?a+(i-a)*(2/3-l)*6:a}function V1({hue:a,saturation:i,lightness:l,alpha:o}){a/=360,i/=100,l/=100;let d=0,m=0,f=0;if(!i)d=m=f=l;else{const g=l<.5?l*(1+i):l+i-l*i,y=2*l-g;d=Cc(y,g,a+1/3),m=Cc(y,g,a),f=Cc(y,g,a-1/3)}return{red:Math.round(d*255),green:Math.round(m*255),blue:Math.round(f*255),alpha:o}}function qo(a,i){return l=>l>0?i:a}const Je=(a,i,l)=>a+(i-a)*l,wc=(a,i,l)=>{const o=a*a,d=l*(i*i-o)+o;return d<0?0:Math.sqrt(d)},_1=[Uc,Pa,Gi],k1=a=>_1.find(i=>i.test(a));function ly(a){const i=k1(a);if(!i)return!1;let l=i.parse(a);return i===Gi&&(l=V1(l)),l}const oy=(a,i)=>{const l=ly(a),o=ly(i);if(!l||!o)return qo(a,i);const d={...l};return m=>(d.red=wc(l.red,o.red,m),d.green=wc(l.green,o.green,m),d.blue=wc(l.blue,o.blue,m),d.alpha=Je(l.alpha,o.alpha,m),Pa.transform(d))},Hc=new Set(["none","hidden"]);function B1(a,i){return Hc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function L1(a,i){return l=>Je(a,i,l)}function Ad(a){return typeof a=="number"?L1:typeof a=="string"?jd(a)?qo:it.test(a)?oy:G1:Array.isArray(a)?Fg:typeof a=="object"?it.test(a)?oy:U1:qo}function Fg(a,i){const l=[...a],o=l.length,d=a.map((m,f)=>Ad(m)(m,i[f]));return m=>{for(let f=0;f<o;f++)l[f]=d[f](m);return l}}function U1(a,i){const l={...a,...i},o={};for(const d in l)a[d]!==void 0&&i[d]!==void 0&&(o[d]=Ad(a[d])(a[d],i[d]));return d=>{for(const m in o)l[m]=o[m](d);return l}}function H1(a,i){const l=[],o={color:0,var:0,number:0};for(let d=0;d<i.values.length;d++){const m=i.types[d],f=a.indexes[m][o[m]],g=a.values[f]??0;l[d]=g,o[m]++}return l}const G1=(a,i)=>{const l=ja.createTransformer(i),o=sl(a),d=sl(i);return o.indexes.var.length===d.indexes.var.length&&o.indexes.color.length===d.indexes.color.length&&o.indexes.number.length>=d.indexes.number.length?Hc.has(a)&&!d.values.length||Hc.has(i)&&!o.values.length?B1(a,i):rl(Fg(H1(o,d),d.values),l):qo(a,i)};function Wg(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?Je(a,i,l):Ad(a)(a,i)}const Y1=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>Ze.update(i,l),stop:()=>wa(i),now:()=>St.isProcessing?St.timestamp:_t.now()}},$g=(a,i,l=10)=>{let o="";const d=Math.max(Math.round(i/l),2);for(let m=0;m<d;m++)o+=Math.round(a(m/(d-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Xo=2e4;function Md(a){let i=0;const l=50;let o=a.next(i);for(;!o.done&&i<Xo;)i+=l,o=a.next(i);return i>=Xo?1/0:i}function q1(a,i=100,l){const o=l({...a,keyframes:[0,i]}),d=Math.min(Md(o),Xo);return{type:"keyframes",ease:m=>o.next(d*m).value/i,duration:sn(d)}}const X1=5;function Ig(a,i,l){const o=Math.max(i-X1,0);return Rg(l-a(o),i-o)}const We={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},jc=.001;function K1({duration:a=We.duration,bounce:i=We.bounce,velocity:l=We.velocity,mass:o=We.mass}){let d,m,f=1-i;f=Zn(We.minDamping,We.maxDamping,f),a=Zn(We.minDuration,We.maxDuration,sn(a)),f<1?(d=p=>{const b=p*f,x=b*a,S=b-l,N=Gc(p,f),E=Math.exp(-x);return jc-S/N*E},m=p=>{const x=p*f*a,S=x*l+l,N=Math.pow(f,2)*Math.pow(p,2)*a,E=Math.exp(-x),O=Gc(Math.pow(p,2),f);return(-d(p)+jc>0?-1:1)*((S-N)*E)/O}):(d=p=>{const b=Math.exp(-p*a),x=(p-l)*a+1;return-jc+b*x},m=p=>{const b=Math.exp(-p*a),x=(l-p)*(a*a);return b*x});const g=5/a,y=Z1(d,m,g);if(a=Cn(a),isNaN(y))return{stiffness:We.stiffness,damping:We.damping,duration:a};{const p=Math.pow(y,2)*o;return{stiffness:p,damping:f*2*Math.sqrt(o*p),duration:a}}}const Q1=12;function Z1(a,i,l){let o=l;for(let d=1;d<Q1;d++)o=o-a(o)/i(o);return o}function Gc(a,i){return a*Math.sqrt(1-i*i)}const J1=["duration","bounce"],P1=["stiffness","damping","mass"];function ry(a,i){return i.some(l=>a[l]!==void 0)}function F1(a){let i={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...a};if(!ry(a,P1)&&ry(a,J1))if(a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),d=o*o,m=2*Zn(.05,1,1-(a.bounce||0))*Math.sqrt(d);i={...i,mass:We.mass,stiffness:d,damping:m}}else{const l=K1(a);i={...i,...l,mass:We.mass},i.isResolvedFromDuration=!0}return i}function Ko(a=We.visualDuration,i=We.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:d}=l;const m=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],g={done:!1,value:m},{stiffness:y,damping:p,mass:b,duration:x,velocity:S,isResolvedFromDuration:N}=F1({...l,velocity:-sn(l.velocity||0)}),E=S||0,O=p/(2*Math.sqrt(y*b)),k=f-m,D=sn(Math.sqrt(y/b)),q=Math.abs(k)<5;o||(o=q?We.restSpeed.granular:We.restSpeed.default),d||(d=q?We.restDelta.granular:We.restDelta.default);let G;if(O<1){const Q=Gc(D,O);G=P=>{const X=Math.exp(-O*D*P);return f-X*((E+O*D*k)/Q*Math.sin(Q*P)+k*Math.cos(Q*P))}}else if(O===1)G=Q=>f-Math.exp(-D*Q)*(k+(E+D*k)*Q);else{const Q=D*Math.sqrt(O*O-1);G=P=>{const X=Math.exp(-O*D*P),z=Math.min(Q*P,300);return f-X*((E+O*D*k)*Math.sinh(z)+Q*k*Math.cosh(z))/Q}}const W={calculatedDuration:N&&x||null,next:Q=>{const P=G(Q);if(N)g.done=Q>=x;else{let X=Q===0?E:0;O<1&&(X=Q===0?Cn(E):Ig(G,Q,P));const z=Math.abs(X)<=o,ee=Math.abs(f-P)<=d;g.done=z&&ee}return g.value=g.done?f:P,g},toString:()=>{const Q=Math.min(Md(W),Xo),P=$g(X=>W.next(Q*X).value,Q,30);return Q+"ms "+P},toTransition:()=>{}};return W}Ko.applyToOptions=a=>{const i=q1(a,100,Ko);return a.ease=i.ease,a.duration=Cn(i.duration),a.type="keyframes",a};function Yc({keyframes:a,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:d=10,bounceStiffness:m=500,modifyTarget:f,min:g,max:y,restDelta:p=.5,restSpeed:b}){const x=a[0],S={done:!1,value:x},N=z=>g!==void 0&&z<g||y!==void 0&&z>y,E=z=>g===void 0?y:y===void 0||Math.abs(g-z)<Math.abs(y-z)?g:y;let O=l*i;const k=x+O,D=f===void 0?k:f(k);D!==k&&(O=D-x);const q=z=>-O*Math.exp(-z/o),G=z=>D+q(z),W=z=>{const ee=q(z),F=G(z);S.done=Math.abs(ee)<=p,S.value=S.done?D:F};let Q,P;const X=z=>{N(S.value)&&(Q=z,P=Ko({keyframes:[S.value,E(S.value)],velocity:Ig(G,z,S.value),damping:d,stiffness:m,restDelta:p,restSpeed:b}))};return X(0),{calculatedDuration:null,next:z=>{let ee=!1;return!P&&Q===void 0&&(ee=!0,W(z),X(z)),Q!==void 0&&z>=Q?P.next(z-Q):(!ee&&W(z),S)}}}function W1(a,i,l){const o=[],d=l||Jn.mix||Wg,m=a.length-1;for(let f=0;f<m;f++){let g=d(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||ln:i;g=rl(y,g)}o.push(g)}return o}function $1(a,i,{clamp:l=!0,ease:o,mixer:d}={}){const m=a.length;if(vd(m===i.length),m===1)return()=>i[0];if(m===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[m-1]&&(a=[...a].reverse(),i=[...i].reverse());const g=W1(i,o,d),y=g.length,p=b=>{if(f&&b<a[0])return i[0];let x=0;if(y>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const S=al(a[x],a[x+1],b);return g[x](S)};return l?b=>p(Zn(a[0],a[m-1],b)):p}function I1(a,i){const l=a[a.length-1];for(let o=1;o<=i;o++){const d=al(0,i,o);a.push(Je(l,1,d))}}function e2(a){const i=[0];return I1(i,a.length-1),i}function t2(a,i){return a.map(l=>l*i)}function n2(a,i){return a.map(()=>i||Hg).splice(0,a.length-1)}function el({duration:a=300,keyframes:i,times:l,ease:o="easeInOut"}){const d=m1(o)?o.map(ay):ay(o),m={done:!1,value:i[0]},f=t2(l&&l.length===i.length?l:e2(i),a),g=$1(f,i,{ease:Array.isArray(d)?d:n2(i,d)});return{calculatedDuration:a,next:y=>(m.value=g(y),m.done=y>=a,m)}}const a2=a=>a!==null;function Ed(a,{repeat:i,repeatType:l="loop"},o,d=1){const m=a.filter(a2),g=d<0||i&&l!=="loop"&&i%2===1?0:m.length-1;return!g||o===void 0?m[g]:o}const i2={decay:Yc,inertia:Yc,tween:el,keyframes:el,spring:Ko};function e0(a){typeof a.type=="string"&&(a.type=i2[a.type])}class Dd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const s2=a=>a/100;class Rd extends Dd{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==_t.now()&&this.tick(_t.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;e0(i);const{type:l=el,repeat:o=0,repeatDelay:d=0,repeatType:m,velocity:f=0}=i;let{keyframes:g}=i;const y=l||el;y!==el&&typeof g[0]!="number"&&(this.mixKeyframes=rl(s2,Wg(g[0],g[1])),g=[0,100]);const p=y({...i,keyframes:g});m==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...g].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=Md(p));const{calculatedDuration:b}=p;this.calculatedDuration=b,this.resolvedDuration=b+d,this.totalDuration=this.resolvedDuration*(o+1)-d,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:o,totalDuration:d,mixKeyframes:m,mirroredGenerator:f,resolvedDuration:g,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:b,repeat:x,repeatType:S,repeatDelay:N,type:E,onUpdate:O,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-d/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const D=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?D<0:D>d;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let G=this.currentTime,W=o;if(x){const z=Math.min(this.currentTime,d)/g;let ee=Math.floor(z),F=z%1;!F&&z>=1&&(F=1),F===1&&ee--,ee=Math.min(ee,x+1),!!(ee%2)&&(S==="reverse"?(F=1-F,N&&(F-=N/g)):S==="mirror"&&(W=f)),G=Zn(0,1,F)*g}const Q=q?{done:!1,value:b[0]}:W.next(G);m&&(Q.value=m(Q.value));let{done:P}=Q;!q&&y!==null&&(P=this.playbackSpeed>=0?this.currentTime>=d:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return X&&E!==Yc&&(Q.value=Ed(b,this.options,k,this.speed)),O&&O(Q.value),X&&this.finish(),Q}then(i,l){return this.finished.then(i,l)}get duration(){return sn(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+sn(i)}get time(){return sn(this.currentTime)}set time(i){i=Cn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(_t.now());const l=this.playbackSpeed!==i;this.playbackSpeed=i,l&&(this.time=sn(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=Y1,startTime:l}=this.options;this.driver||(this.driver=i(d=>this.tick(d))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_t.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function l2(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Fa=a=>a*180/Math.PI,qc=a=>{const i=Fa(Math.atan2(a[1],a[0]));return Xc(i)},o2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:qc,rotateZ:qc,skewX:a=>Fa(Math.atan(a[1])),skewY:a=>Fa(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Xc=a=>(a=a%360,a<0&&(a+=360),a),uy=qc,cy=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),dy=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),r2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cy,scaleY:dy,scale:a=>(cy(a)+dy(a))/2,rotateX:a=>Xc(Fa(Math.atan2(a[6],a[5]))),rotateY:a=>Xc(Fa(Math.atan2(-a[2],a[0]))),rotateZ:uy,rotate:uy,skewX:a=>Fa(Math.atan(a[4])),skewY:a=>Fa(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function Kc(a){return a.includes("scale")?1:0}function Qc(a,i){if(!a||a==="none")return Kc(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,d;if(l)o=r2,d=l;else{const g=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=o2,d=g}if(!d)return Kc(i);const m=o[i],f=d[1].split(",").map(c2);return typeof m=="function"?m(f):f[m]}const u2=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return Qc(l,i)};function c2(a){return parseFloat(a.trim())}const Fi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wi=new Set(Fi),fy=a=>a===Pi||a===ve,d2=new Set(["x","y","z"]),f2=Fi.filter(a=>!d2.has(a));function m2(a){const i=[];return f2.forEach(l=>{const o=a.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const Wa={width:({x:a},{paddingLeft:i="0",paddingRight:l="0"})=>a.max-a.min-parseFloat(i)-parseFloat(l),height:({y:a},{paddingTop:i="0",paddingBottom:l="0"})=>a.max-a.min-parseFloat(i)-parseFloat(l),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>Qc(i,"x"),y:(a,{transform:i})=>Qc(i,"y")};Wa.translateX=Wa.x;Wa.translateY=Wa.y;const $a=new Set;let Zc=!1,Jc=!1,Pc=!1;function t0(){if(Jc){const a=Array.from($a).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),l=new Map;i.forEach(o=>{const d=m2(o);d.length&&(l.set(o,d),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const d=l.get(o);d&&d.forEach(([m,f])=>{o.getValue(m)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Jc=!1,Zc=!1,$a.forEach(a=>a.complete(Pc)),$a.clear()}function n0(){$a.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(Jc=!0)})}function h2(){Pc=!0,n0(),t0(),Pc=!1}class zd{constructor(i,l,o,d,m,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=o,this.motionValue=d,this.element=m,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?($a.add(this),Zc||(Zc=!0,Ze.read(n0),Ze.resolveKeyframes(t0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:o,motionValue:d}=this;if(i[0]===null){const m=d?.get(),f=i[i.length-1];if(m!==void 0)i[0]=m;else if(o&&l){const g=o.readValue(l,f);g!=null&&(i[0]=g)}i[0]===void 0&&(i[0]=f),d&&m===void 0&&d.set(i[0])}l2(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),$a.delete(this)}cancel(){this.state==="scheduled"&&($a.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const p2=a=>a.startsWith("--");function y2(a,i,l){p2(i)?a.style.setProperty(i,l):a.style[i]=l}const g2=xd(()=>window.ScrollTimeline!==void 0),b2={};function v2(a,i){const l=xd(a);return()=>b2[i]??l()}const a0=v2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$s=([a,i,l,o])=>`cubic-bezier(${a}, ${i}, ${l}, ${o})`,my={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function i0(a,i){if(a)return typeof a=="function"?a0()?$g(a,i):"ease-out":Gg(a)?$s(a):Array.isArray(a)?a.map(l=>i0(l,i)||my.easeOut):my[a]}function x2(a,i,l,{delay:o=0,duration:d=300,repeat:m=0,repeatType:f="loop",ease:g="easeOut",times:y}={},p=void 0){const b={[i]:l};y&&(b.offset=y);const x=i0(g,d);Array.isArray(x)&&(b.easing=x);const S={delay:o,duration:d,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:m+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),a.animate(b,S)}function s0(a){return typeof a=="function"&&"applyToOptions"in a}function S2({type:a,...i}){return s0(a)&&a0()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class C2 extends Dd{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:l,name:o,keyframes:d,pseudoElement:m,allowFlatten:f=!1,finalKeyframe:g,onComplete:y}=i;this.isPseudoElement=!!m,this.allowFlatten=f,this.options=i,vd(typeof i.type!="string");const p=S2(i);this.animation=x2(l,o,d,p,m),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!m){const b=Ed(d,this.options,g,this.speed);this.updateMotionValue?this.updateMotionValue(b):y2(l,o,b),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return sn(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+sn(i)}get time(){return sn(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=Cn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&g2()?(this.animation.timeline=i,ln):l(this)}}const l0={anticipate:Bg,backInOut:kg,circInOut:Ug};function w2(a){return a in l0}function j2(a){typeof a.ease=="string"&&w2(a.ease)&&(a.ease=l0[a.ease])}const hy=10;class T2 extends C2{constructor(i){j2(i),e0(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:o,onComplete:d,element:m,...f}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const g=new Rd({...f,autoplay:!1}),y=Cn(this.finishedTime??this.time);l.setWithVelocity(g.sample(y-hy).value,g.sample(y).value,hy),g.stop()}}const py=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(ja.test(a)||a==="0")&&!a.startsWith("url("));function N2(a){const i=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==i)return!0}function A2(a,i,l,o){const d=a[0];if(d===null)return!1;if(i==="display"||i==="visibility")return!0;const m=a[a.length-1],f=py(d,i),g=py(m,i);return!f||!g?!1:N2(a)||(l==="spring"||s0(l))&&o}function Fc(a){a.duration=0,a.type="keyframes"}const M2=new Set(["opacity","clipPath","filter","transform"]),E2=xd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function D2(a){const{motionValue:i,name:l,repeatDelay:o,repeatType:d,damping:m,type:f}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:p}=i.owner.getProps();return E2()&&l&&M2.has(l)&&(l!=="transform"||!p)&&!y&&!o&&d!=="mirror"&&m!==0&&f!=="inertia"}const R2=40;class z2 extends Dd{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:d=0,repeatDelay:m=0,repeatType:f="loop",keyframes:g,name:y,motionValue:p,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=_t.now();const S={autoplay:i,delay:l,type:o,repeat:d,repeatDelay:m,repeatType:f,name:y,motionValue:p,element:b,...x},N=b?.KeyframeResolver||zd;this.keyframeResolver=new N(g,(E,O,k)=>this.onKeyframesResolved(E,O,S,!k),y,p,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,d){this.keyframeResolver=void 0;const{name:m,type:f,velocity:g,delay:y,isHandoff:p,onUpdate:b}=o;this.resolvedAt=_t.now(),A2(i,m,f,g)||((Jn.instantAnimations||!y)&&b?.(Ed(i,o,l)),i[0]=i[i.length-1],Fc(o),o.repeat=0);const S={startTime:d?this.resolvedAt?this.resolvedAt-this.createdAt>R2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},N=!p&&D2(S)?new T2({...S,element:S.motionValue.owner.current}):new Rd(S);N.finished.then(()=>this.notifyFinished()).catch(ln),this.pendingTimeline&&(this.stopTimeline=N.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=N}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),h2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const O2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V2(a){const i=O2.exec(a);if(!i)return[,];const[,l,o,d]=i;return[`--${l??o}`,d]}function o0(a,i,l=1){const[o,d]=V2(a);if(!o)return;const m=window.getComputedStyle(i).getPropertyValue(o);if(m){const f=m.trim();return Mg(f)?parseFloat(f):f}return jd(d)?o0(d,i,l+1):d}function Od(a,i){return a?.[i]??a?.default??a}const r0=new Set(["width","height","top","left","right","bottom",...Fi]),_2={test:a=>a==="auto",parse:a=>a},u0=a=>i=>i.test(a),c0=[Pi,ve,wn,Sa,N1,T1,_2],yy=a=>c0.find(u0(a));function k2(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Dg(a):!0}const B2=new Set(["brightness","contrast","saturate","opacity"]);function L2(a){const[i,l]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=l.match(Td)||[];if(!o)return a;const d=l.replace(o,"");let m=B2.has(i)?1:0;return o!==l&&(m*=100),i+"("+m+d+")"}const U2=/\b([a-z-]*)\(.*?\)/gu,Wc={...ja,getAnimatableNone:a=>{const i=a.match(U2);return i?i.map(L2).join(" "):a}},gy={...Pi,transform:Math.round},H2={rotate:Sa,rotateX:Sa,rotateY:Sa,rotateZ:Sa,scale:zo,scaleX:zo,scaleY:zo,scaleZ:zo,skew:Sa,skewX:Sa,skewY:Sa,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:il,originX:iy,originY:iy,originZ:ve},Vd={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,radius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,backgroundPositionX:ve,backgroundPositionY:ve,...H2,zIndex:gy,fillOpacity:il,strokeOpacity:il,numOctaves:gy},G2={...Vd,color:it,backgroundColor:it,outlineColor:it,fill:it,stroke:it,borderColor:it,borderTopColor:it,borderRightColor:it,borderBottomColor:it,borderLeftColor:it,filter:Wc,WebkitFilter:Wc},d0=a=>G2[a];function f0(a,i){let l=d0(a);return l!==Wc&&(l=ja),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const Y2=new Set(["auto","none","0"]);function q2(a,i,l){let o=0,d;for(;o<a.length&&!d;){const m=a[o];typeof m=="string"&&!Y2.has(m)&&sl(m).values.length&&(d=a[o]),o++}if(d&&l)for(const m of i)a[m]=f0(l,d)}class X2 extends zd{constructor(i,l,o,d,m){super(i,l,o,d,m,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let y=0;y<i.length;y++){let p=i[y];if(typeof p=="string"&&(p=p.trim(),jd(p))){const b=o0(p,l.current);b!==void 0&&(i[y]=b),y===i.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!r0.has(o)||i.length!==2)return;const[d,m]=i,f=yy(d),g=yy(m);if(f!==g)if(fy(f)&&fy(g))for(let y=0;y<i.length;y++){const p=i[y];typeof p=="string"&&(i[y]=parseFloat(p))}else Wa[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let d=0;d<i.length;d++)(i[d]===null||k2(i[d]))&&o.push(d);o.length&&q2(i,o,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wa[o](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const d=l[l.length-1];d!==void 0&&i.getValue(o,d).jump(d,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const d=i.getValue(l);d&&d.jump(this.measuredOrigin,!1);const m=o.length-1,f=o[m];o[m]=Wa[l](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([g,y])=>{i.getValue(g).set(y)}),this.resolveNoneKeyframes()}}function K2(a,i,l){if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const d=l?.[a]??o.querySelectorAll(a);return d?Array.from(d):[]}return Array.from(a)}const m0=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function h0(a){return Eg(a)&&"offsetHeight"in a}const by=30,Q2=a=>!isNaN(parseFloat(a));class Z2{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const d=_t.now();if(this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=_t.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=Q2(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new Sd);const o=this.events[i].add(l);return i==="change"?()=>{o(),Ze.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=_t.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>by)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,by);return Rg(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Zi(a,i){return new Z2(a,i)}const{schedule:_d}=Yg(queueMicrotask,!1),pn={x:!1,y:!1};function p0(){return pn.x||pn.y}function J2(a){return a==="x"||a==="y"?pn[a]?null:(pn[a]=!0,()=>{pn[a]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function y0(a,i){const l=K2(a),o=new AbortController,d={passive:!0,...i,signal:o.signal};return[l,d,()=>o.abort()]}function vy(a){return!(a.pointerType==="touch"||p0())}function P2(a,i,l={}){const[o,d,m]=y0(a,l),f=g=>{if(!vy(g))return;const{target:y}=g,p=i(y,g);if(typeof p!="function"||!y)return;const b=x=>{vy(x)&&(p(x),y.removeEventListener("pointerleave",b))};y.addEventListener("pointerleave",b,d)};return o.forEach(g=>{g.addEventListener("pointerenter",f,d)}),m}const g0=(a,i)=>i?a===i?!0:g0(a,i.parentElement):!1,kd=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,F2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function W2(a){return F2.has(a.tagName)||a.tabIndex!==-1}const Uo=new WeakSet;function xy(a){return i=>{i.key==="Enter"&&a(i)}}function Tc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const $2=(a,i)=>{const l=a.currentTarget;if(!l)return;const o=xy(()=>{if(Uo.has(l))return;Tc(l,"down");const d=xy(()=>{Tc(l,"up")}),m=()=>Tc(l,"cancel");l.addEventListener("keyup",d,i),l.addEventListener("blur",m,i)});l.addEventListener("keydown",o,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),i)};function Sy(a){return kd(a)&&!p0()}function I2(a,i,l={}){const[o,d,m]=y0(a,l),f=g=>{const y=g.currentTarget;if(!Sy(g))return;Uo.add(y);const p=i(y,g),b=(N,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Uo.has(y)&&Uo.delete(y),Sy(N)&&typeof p=="function"&&p(N,{success:E})},x=N=>{b(N,y===window||y===document||l.useGlobalTarget||g0(y,N.target))},S=N=>{b(N,!1)};window.addEventListener("pointerup",x,d),window.addEventListener("pointercancel",S,d)};return o.forEach(g=>{(l.useGlobalTarget?window:g).addEventListener("pointerdown",f,d),h0(g)&&(g.addEventListener("focus",p=>$2(p,d)),!W2(g)&&!g.hasAttribute("tabindex")&&(g.tabIndex=0))}),m}function b0(a){return Eg(a)&&"ownerSVGElement"in a}function eS(a){return b0(a)&&a.tagName==="svg"}const wt=a=>!!(a&&a.getVelocity),tS=[...c0,it,ja],nS=a=>tS.find(u0(a)),Bd=T.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function Cy(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function aS(...a){return i=>{let l=!1;const o=a.map(d=>{const m=Cy(d,i);return!l&&typeof m=="function"&&(l=!0),m});if(l)return()=>{for(let d=0;d<o.length;d++){const m=o[d];typeof m=="function"?m():Cy(a[d],null)}}}}function iS(...a){return T.useCallback(aS(...a),a)}class sS extends T.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(l&&i.isPresent&&!this.props.isPresent){const o=l.offsetParent,d=h0(o)&&o.offsetWidth||0,m=this.props.sizeRef.current;m.height=l.offsetHeight||0,m.width=l.offsetWidth||0,m.top=l.offsetTop,m.left=l.offsetLeft,m.right=d-m.width-m.left}return null}componentDidUpdate(){}render(){return this.props.children}}function lS({children:a,isPresent:i,anchorX:l,root:o}){const d=T.useId(),m=T.useRef(null),f=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:g}=T.useContext(Bd),y=iS(m,a?.ref);return T.useInsertionEffect(()=>{const{width:p,height:b,top:x,left:S,right:N}=f.current;if(i||!m.current||!p||!b)return;const E=l==="left"?`left: ${S}`:`right: ${N}`;m.current.dataset.motionPopId=d;const O=document.createElement("style");g&&(O.nonce=g);const k=o??document.head;return k.appendChild(O),O.sheet&&O.sheet.insertRule(`
10
+ [data-motion-pop-id="${d}"] {
11
+ position: absolute !important;
12
+ width: ${p}px !important;
13
+ height: ${b}px !important;
14
+ ${E}px !important;
15
+ top: ${x}px !important;
16
+ }
17
+ `),()=>{k.contains(O)&&k.removeChild(O)}},[i]),c.jsx(sS,{isPresent:i,childRef:m,sizeRef:f,children:T.cloneElement(a,{ref:y})})}const oS=({children:a,initial:i,isPresent:l,onExitComplete:o,custom:d,presenceAffectsLayout:m,mode:f,anchorX:g,root:y})=>{const p=pd(rS),b=T.useId();let x=!0,S=T.useMemo(()=>(x=!1,{id:b,initial:i,isPresent:l,custom:d,onExitComplete:N=>{p.set(N,!0);for(const E of p.values())if(!E)return;o&&o()},register:N=>(p.set(N,!1),()=>p.delete(N))}),[l,p,o]);return m&&x&&(S={...S}),T.useMemo(()=>{p.forEach((N,E)=>p.set(E,!1))},[l]),T.useEffect(()=>{!l&&!p.size&&o&&o()},[l]),f==="popLayout"&&(a=c.jsx(lS,{isPresent:l,anchorX:g,root:y,children:a})),c.jsx(Wo.Provider,{value:S,children:a})};function rS(){return new Map}function v0(a=!0){const i=T.useContext(Wo);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:d}=i,m=T.useId();T.useEffect(()=>{if(a)return d(m)},[a]);const f=T.useCallback(()=>a&&o&&o(m),[m,o,a]);return!l&&o?[!1,f]:[!0]}const Oo=a=>a.key||"";function wy(a){const i=[];return T.Children.forEach(a,l=>{T.isValidElement(l)&&i.push(l)}),i}const rn=({children:a,custom:i,initial:l=!0,onExitComplete:o,presenceAffectsLayout:d=!0,mode:m="sync",propagate:f=!1,anchorX:g="left",root:y})=>{const[p,b]=v0(f),x=T.useMemo(()=>wy(a),[a]),S=f&&!p?[]:x.map(Oo),N=T.useRef(!0),E=T.useRef(x),O=pd(()=>new Map),[k,D]=T.useState(x),[q,G]=T.useState(x);Ag(()=>{N.current=!1,E.current=x;for(let P=0;P<q.length;P++){const X=Oo(q[P]);S.includes(X)?O.delete(X):O.get(X)!==!0&&O.set(X,!1)}},[q,S.length,S.join("-")]);const W=[];if(x!==k){let P=[...x];for(let X=0;X<q.length;X++){const z=q[X],ee=Oo(z);S.includes(ee)||(P.splice(X,0,z),W.push(z))}return m==="wait"&&W.length&&(P=W),G(wy(P)),D(x),null}const{forceRender:Q}=T.useContext(hd);return c.jsx(c.Fragment,{children:q.map(P=>{const X=Oo(P),z=f&&!p?!1:x===q||S.includes(X),ee=()=>{if(O.has(X))O.set(X,!0);else return;let F=!0;O.forEach(ne=>{ne||(F=!1)}),F&&(Q?.(),G(E.current),f&&b?.(),o&&o())};return c.jsx(oS,{isPresent:z,initial:!N.current||l?void 0:!1,custom:i,presenceAffectsLayout:d,mode:m,root:y,onExitComplete:z?void 0:ee,anchorX:g,children:P},X)})})},x0=T.createContext({strict:!1}),jy={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"]},Ji={};for(const a in jy)Ji[a]={isEnabled:i=>jy[a].some(l=>!!i[l])};function uS(a){for(const i in a)Ji[i]={...Ji[i],...a[i]}}const cS=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","ignoreStrict","viewport"]);function Qo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||cS.has(a)}let S0=a=>!Qo(a);function dS(a){typeof a=="function"&&(S0=i=>i.startsWith("on")?!Qo(i):a(i))}try{dS(require("@emotion/is-prop-valid").default)}catch{}function fS(a,i,l){const o={};for(const d in a)d==="values"&&typeof a.values=="object"||(S0(d)||l===!0&&Qo(d)||!i&&!Qo(d)||a.draggable&&d.startsWith("onDrag"))&&(o[d]=a[d]);return o}const $o=T.createContext({});function Io(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function ll(a){return typeof a=="string"||Array.isArray(a)}const Ld=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ud=["initial",...Ld];function er(a){return Io(a.animate)||Ud.some(i=>ll(a[i]))}function C0(a){return!!(er(a)||a.variants)}function mS(a,i){if(er(a)){const{initial:l,animate:o}=a;return{initial:l===!1||ll(l)?l:void 0,animate:ll(o)?o:void 0}}return a.inherit!==!1?i:{}}function hS(a){const{initial:i,animate:l}=mS(a,T.useContext($o));return T.useMemo(()=>({initial:i,animate:l}),[Ty(i),Ty(l)])}function Ty(a){return Array.isArray(a)?a.join(" "):a}function Ny(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const Ps={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(ve.test(a))a=parseFloat(a);else return a;const l=Ny(a,i.target.x),o=Ny(a,i.target.y);return`${l}% ${o}%`}},pS={correct:(a,{treeScale:i,projectionDelta:l})=>{const o=a,d=ja.parse(a);if(d.length>5)return o;const m=ja.createTransformer(a),f=typeof d[0]!="number"?1:0,g=l.x.scale*i.x,y=l.y.scale*i.y;d[0+f]/=g,d[1+f]/=y;const p=Je(g,y,.5);return typeof d[2+f]=="number"&&(d[2+f]/=p),typeof d[3+f]=="number"&&(d[3+f]/=p),m(d)}},$c={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:pS};function w0(a,{layout:i,layoutId:l}){return Wi.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!$c[a]||a==="opacity")}const yS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gS=Fi.length;function bS(a,i,l){let o="",d=!0;for(let m=0;m<gS;m++){const f=Fi[m],g=a[f];if(g===void 0)continue;let y=!0;if(typeof g=="number"?y=g===(f.startsWith("scale")?1:0):y=parseFloat(g)===0,!y||l){const p=m0(g,Vd[f]);if(!y){d=!1;const b=yS[f]||f;o+=`${b}(${p}) `}l&&(i[f]=p)}}return o=o.trim(),l?o=l(i,d?"":o):d&&(o="none"),o}function Hd(a,i,l){const{style:o,vars:d,transformOrigin:m}=a;let f=!1,g=!1;for(const y in i){const p=i[y];if(Wi.has(y)){f=!0;continue}else if(Xg(y)){d[y]=p;continue}else{const b=m0(p,Vd[y]);y.startsWith("origin")?(g=!0,m[y]=b):o[y]=b}}if(i.transform||(f||l?o.transform=bS(i,a.transform,l):o.transform&&(o.transform="none")),g){const{originX:y="50%",originY:p="50%",originZ:b=0}=m;o.transformOrigin=`${y} ${p} ${b}`}}const Gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function j0(a,i,l){for(const o in i)!wt(i[o])&&!w0(o,l)&&(a[o]=i[o])}function vS({transformTemplate:a},i){return T.useMemo(()=>{const l=Gd();return Hd(l,i,a),Object.assign({},l.vars,l.style)},[i])}function xS(a,i){const l=a.style||{},o={};return j0(o,l,a),Object.assign(o,vS(a,i)),o}function SS(a,i){const l={},o=xS(a,i);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,l}const CS={offset:"stroke-dashoffset",array:"stroke-dasharray"},wS={offset:"strokeDashoffset",array:"strokeDasharray"};function jS(a,i,l=1,o=0,d=!0){a.pathLength=1;const m=d?CS:wS;a[m.offset]=ve.transform(-o);const f=ve.transform(i),g=ve.transform(l);a[m.array]=`${f} ${g}`}function T0(a,{attrX:i,attrY:l,attrScale:o,pathLength:d,pathSpacing:m=1,pathOffset:f=0,...g},y,p,b){if(Hd(a,g,p),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=b?.transformBox??"fill-box",delete x.transformBox),i!==void 0&&(x.x=i),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),d!==void 0&&jS(x,d,m,f,!1)}const N0=()=>({...Gd(),attrs:{}}),A0=a=>typeof a=="string"&&a.toLowerCase()==="svg";function TS(a,i,l,o){const d=T.useMemo(()=>{const m=N0();return T0(m,i,A0(o),a.transformTemplate,a.style),{...m.attrs,style:{...m.style}}},[i]);if(a.style){const m={};j0(m,a.style,a),d.style={...m,...d.style}}return d}const NS=["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 Yd(a){return typeof a!="string"||a.includes("-")?!1:!!(NS.indexOf(a)>-1||/[A-Z]/u.test(a))}function AS(a,i,l,{latestValues:o},d,m=!1){const g=(Yd(a)?TS:SS)(i,o,d,a),y=fS(i,typeof a=="string",m),p=a!==T.Fragment?{...y,...g,ref:l}:{},{children:b}=i,x=T.useMemo(()=>wt(b)?b.get():b,[b]);return T.createElement(a,{...p,children:x})}function Ay(a){const i=[{},{}];return a?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function qd(a,i,l,o){if(typeof i=="function"){const[d,m]=Ay(o);i=i(l!==void 0?l:a.custom,d,m)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[d,m]=Ay(o);i=i(l!==void 0?l:a.custom,d,m)}return i}function Ho(a){return wt(a)?a.get():a}function MS({scrapeMotionValuesFromProps:a,createRenderState:i},l,o,d){return{latestValues:ES(l,o,d,a),renderState:i()}}function ES(a,i,l,o){const d={},m=o(a,{});for(const S in m)d[S]=Ho(m[S]);let{initial:f,animate:g}=a;const y=er(a),p=C0(a);i&&p&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),g===void 0&&(g=i.animate));let b=l?l.initial===!1:!1;b=b||f===!1;const x=b?g:f;if(x&&typeof x!="boolean"&&!Io(x)){const S=Array.isArray(x)?x:[x];for(let N=0;N<S.length;N++){const E=qd(a,S[N]);if(E){const{transitionEnd:O,transition:k,...D}=E;for(const q in D){let G=D[q];if(Array.isArray(G)){const W=b?G.length-1:0;G=G[W]}G!==null&&(d[q]=G)}for(const q in O)d[q]=O[q]}}}return d}const M0=a=>(i,l)=>{const o=T.useContext($o),d=T.useContext(Wo),m=()=>MS(a,i,o,d);return l?m():pd(m)};function Xd(a,i,l){const{style:o}=a,d={};for(const m in o)(wt(o[m])||i.style&&wt(i.style[m])||w0(m,a)||l?.getValue(m)?.liveStyle!==void 0)&&(d[m]=o[m]);return d}const DS=M0({scrapeMotionValuesFromProps:Xd,createRenderState:Gd});function E0(a,i,l){const o=Xd(a,i,l);for(const d in a)if(wt(a[d])||wt(i[d])){const m=Fi.indexOf(d)!==-1?"attr"+d.charAt(0).toUpperCase()+d.substring(1):d;o[m]=a[d]}return o}const RS=M0({scrapeMotionValuesFromProps:E0,createRenderState:N0}),zS=Symbol.for("motionComponentSymbol");function Yi(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function OS(a,i,l){return T.useCallback(o=>{o&&a.onMount&&a.onMount(o),i&&(o?i.mount(o):i.unmount()),l&&(typeof l=="function"?l(o):Yi(l)&&(l.current=o))},[i])}const Kd=a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),VS="framerAppearId",D0="data-"+Kd(VS),R0=T.createContext({});function _S(a,i,l,o,d){const{visualElement:m}=T.useContext($o),f=T.useContext(x0),g=T.useContext(Wo),y=T.useContext(Bd).reducedMotion,p=T.useRef(null);o=o||f.renderer,!p.current&&o&&(p.current=o(a,{visualState:i,parent:m,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y}));const b=p.current,x=T.useContext(R0);b&&!b.projection&&d&&(b.type==="html"||b.type==="svg")&&kS(p.current,l,d,x);const S=T.useRef(!1);T.useInsertionEffect(()=>{b&&S.current&&b.update(l,g)});const N=l[D0],E=T.useRef(!!N&&!window.MotionHandoffIsComplete?.(N)&&window.MotionHasOptimisedAnimation?.(N));return Ag(()=>{b&&(S.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),E.current&&b.animationState&&b.animationState.animateChanges())}),T.useEffect(()=>{b&&(!E.current&&b.animationState&&b.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(N)}),E.current=!1),b.enteringChildren=void 0)}),b}function kS(a,i,l,o){const{layoutId:d,layout:m,drag:f,dragConstraints:g,layoutScroll:y,layoutRoot:p,layoutCrossfade:b}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:z0(a.parent)),a.projection.setOptions({layoutId:d,layout:m,alwaysMeasureLayout:!!f||g&&Yi(g),visualElement:a,animationType:typeof m=="string"?m:"both",initialPromotionConfig:o,crossfade:b,layoutScroll:y,layoutRoot:p})}function z0(a){if(a)return a.options.allowProjection!==!1?a.projection:z0(a.parent)}function Nc(a,{forwardMotionProps:i=!1}={},l,o){l&&uS(l);const d=Yd(a)?RS:DS;function m(g,y){let p;const b={...T.useContext(Bd),...g,layoutId:BS(g)},{isStatic:x}=b,S=hS(g),N=d(g,x);if(!x&&yd){LS();const E=US(b);p=E.MeasureLayout,S.visualElement=_S(a,N,b,o,E.ProjectionNode)}return c.jsxs($o.Provider,{value:S,children:[p&&S.visualElement?c.jsx(p,{visualElement:S.visualElement,...b}):null,AS(a,g,OS(N,S.visualElement,y),N,x,i)]})}m.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const f=T.forwardRef(m);return f[zS]=a,f}function BS({layoutId:a}){const i=T.useContext(hd).id;return i&&a!==void 0?i+"-"+a:a}function LS(a,i){T.useContext(x0).strict}function US(a){const{drag:i,layout:l}=Ji;if(!i&&!l)return{};const o={...i,...l};return{MeasureLayout:i?.isEnabled(a)||l?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function HS(a,i){if(typeof Proxy>"u")return Nc;const l=new Map,o=(m,f)=>Nc(m,f,a,i),d=(m,f)=>o(m,f);return new Proxy(d,{get:(m,f)=>f==="create"?o:(l.has(f)||l.set(f,Nc(f,void 0,a,i)),l.get(f))})}function O0({top:a,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:a,max:o}}}function GS({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function YS(a,i){if(!i)return a;const l=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Ac(a){return a===void 0||a===1}function Ic({scale:a,scaleX:i,scaleY:l}){return!Ac(a)||!Ac(i)||!Ac(l)}function Za(a){return Ic(a)||V0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function V0(a){return My(a.x)||My(a.y)}function My(a){return a&&a!=="0%"}function Zo(a,i,l){const o=a-l,d=i*o;return l+d}function Ey(a,i,l,o,d){return d!==void 0&&(a=Zo(a,d,o)),Zo(a,l,o)+i}function ed(a,i=0,l=1,o,d){a.min=Ey(a.min,i,l,o,d),a.max=Ey(a.max,i,l,o,d)}function _0(a,{x:i,y:l}){ed(a.x,i.translate,i.scale,i.originPoint),ed(a.y,l.translate,l.scale,l.originPoint)}const Dy=.999999999999,Ry=1.0000000000001;function qS(a,i,l,o=!1){const d=l.length;if(!d)return;i.x=i.y=1;let m,f;for(let g=0;g<d;g++){m=l[g],f=m.projectionDelta;const{visualElement:y}=m.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Xi(a,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,_0(a,f)),o&&Za(m.latestValues)&&Xi(a,m.latestValues))}i.x<Ry&&i.x>Dy&&(i.x=1),i.y<Ry&&i.y>Dy&&(i.y=1)}function qi(a,i){a.min=a.min+i,a.max=a.max+i}function zy(a,i,l,o,d=.5){const m=Je(a.min,a.max,d);ed(a,i,l,m,o)}function Xi(a,i){zy(a.x,i.x,i.scaleX,i.scale,i.originX),zy(a.y,i.y,i.scaleY,i.scale,i.originY)}function k0(a,i){return O0(YS(a.getBoundingClientRect(),i))}function XS(a,i,l){const o=k0(a,l),{scroll:d}=i;return d&&(qi(o.x,d.offset.x),qi(o.y,d.offset.y)),o}const Oy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ki=()=>({x:Oy(),y:Oy()}),Vy=()=>({min:0,max:0}),rt=()=>({x:Vy(),y:Vy()}),td={current:null},B0={current:!1};function KS(){if(B0.current=!0,!!yd)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>td.current=a.matches;a.addEventListener("change",i),i()}else td.current=!1}const QS=new WeakMap;function ZS(a,i,l){for(const o in i){const d=i[o],m=l[o];if(wt(d))a.addValue(o,d);else if(wt(m))a.addValue(o,Zi(d,{owner:a}));else if(m!==d)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(d):f.hasAnimated||f.set(d)}else{const f=a.getStaticValue(o);a.addValue(o,Zi(f!==void 0?f:d,{owner:a}))}}for(const o in l)i[o]===void 0&&a.removeValue(o);return i}const _y=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class JS{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:d,blockInitialAnimation:m,visualState:f},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 S=_t.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Ze.render(this.render,!1,!0))};const{latestValues:y,renderState:p}=f;this.latestValues=y,this.baseTarget={...y},this.initialValues=l.initial?{...y}:{},this.renderState=p,this.parent=i,this.props=l,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=d,this.options=g,this.blockInitialAnimation=!!m,this.isControllingVariants=er(l),this.isVariantNode=C0(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(l,{},this);for(const S in x){const N=x[S];y[S]!==void 0&&wt(N)&&N.set(y[S])}}mount(i){this.current=i,QS.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),B0.current||KS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:td.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),wa(this.notifyUpdate),wa(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const o=Wi.has(i);o&&this.onBindTransform&&this.onBindTransform();const d=l.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ze.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let m;window.MotionCheckAppearSync&&(m=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{d(),m&&m(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Ji){const l=Ji[i];if(!l)continue;const{isEnabled:o,Feature:d}=l;if(!this.features[i]&&d&&o(this.props)&&(this.features[i]=new d(this)),this.features[i]){const m=this.features[i];m.isMounted?m.update():(m.mount(),m.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<_y.length;o++){const d=_y[o];this.propEventSubscriptions[d]&&(this.propEventSubscriptions[d](),delete this.propEventSubscriptions[d]);const m="on"+d,f=i[m];f&&(this.propEventSubscriptions[d]=this.on(d,f))}this.prevMotionValues=ZS(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]: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(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const o=this.values.get(i);l!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&l!==void 0&&(o=Zi(l===null?void 0:l,{owner:this}),this.addValue(i,o)),o}readValue(i,l){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(Mg(o)||Dg(o))?o=parseFloat(o):!nS(o)&&ja.test(l)&&(o=f0(i,l)),this.setBaseTarget(i,wt(o)?o.get():o)),wt(o)?o.get():o}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const m=qd(this.props,l,this.presenceContext?.custom);m&&(o=m[i])}if(l&&o!==void 0)return o;const d=this.getBaseTargetFromProps(this.props,i);return d!==void 0&&!wt(d)?d:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new Sd),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){_d.render(this.render)}}class L0 extends JS{constructor(){super(...arguments),this.KeyframeResolver=X2}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){return i.style?i.style[l]:void 0}removeValueFromRenderState(i,{vars:l,style:o}){delete l[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;wt(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}function U0(a,{style:i,vars:l},o,d){const m=a.style;let f;for(f in i)m[f]=i[f];d?.applyProjectionStyles(m,o);for(f in l)m.setProperty(f,l[f])}function PS(a){return window.getComputedStyle(a)}class FS extends L0{constructor(){super(...arguments),this.type="html",this.renderInstance=U0}readValueFromInstance(i,l){if(Wi.has(l))return this.projection?.isProjecting?Kc(l):u2(i,l);{const o=PS(i),d=(Xg(l)?o.getPropertyValue(l):o[l])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:l}){return k0(i,l)}build(i,l,o){Hd(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return Xd(i,l,o)}}const H0=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"]);function WS(a,i,l,o){U0(a,i,void 0,o);for(const d in i.attrs)a.setAttribute(H0.has(d)?d:Kd(d),i.attrs[d])}class $S extends L0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rt}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Wi.has(l)){const o=d0(l);return o&&o.default||0}return l=H0.has(l)?l:Kd(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return E0(i,l,o)}build(i,l,o){T0(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,d){WS(i,l,o,d)}mount(i){this.isSVGTag=A0(i.tagName),super.mount(i)}}const IS=(a,i)=>Yd(a)?new $S(i):new FS(i,{allowProjection:a!==T.Fragment});function Qi(a,i,l){const o=a.getProps();return qd(o,i,l!==void 0?l:o.custom,a)}const nd=a=>Array.isArray(a);function eC(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,Zi(l))}function tC(a){return nd(a)?a[a.length-1]||0:a}function nC(a,i){const l=Qi(a,i);let{transitionEnd:o={},transition:d={},...m}=l||{};m={...m,...o};for(const f in m){const g=tC(m[f]);eC(a,f,g)}}function aC(a){return!!(wt(a)&&a.add)}function ad(a,i){const l=a.getValue("willChange");if(aC(l))return l.add(i);if(!l&&Jn.WillChange){const o=new Jn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function G0(a){return a.props[D0]}const iC=a=>a!==null;function sC(a,{repeat:i,repeatType:l="loop"},o){const d=a.filter(iC),m=i&&l!=="loop"&&i%2===1?0:d.length-1;return d[m]}const lC={type:"spring",stiffness:500,damping:25,restSpeed:10},oC=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),rC={type:"keyframes",duration:.8},uC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cC=(a,{keyframes:i})=>i.length>2?rC:Wi.has(a)?a.startsWith("scale")?oC(i[1]):lC:uC;function dC({when:a,delay:i,delayChildren:l,staggerChildren:o,staggerDirection:d,repeat:m,repeatType:f,repeatDelay:g,from:y,elapsed:p,...b}){return!!Object.keys(b).length}const Qd=(a,i,l,o={},d,m)=>f=>{const g=Od(o,a)||{},y=g.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Cn(y);const b={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...g,delay:-p,onUpdate:S=>{i.set(S),g.onUpdate&&g.onUpdate(S)},onComplete:()=>{f(),g.onComplete&&g.onComplete()},name:a,motionValue:i,element:m?void 0:d};dC(g)||Object.assign(b,cC(a,b)),b.duration&&(b.duration=Cn(b.duration)),b.repeatDelay&&(b.repeatDelay=Cn(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(Fc(b),b.delay===0&&(x=!0)),(Jn.instantAnimations||Jn.skipAnimations)&&(x=!0,Fc(b),b.delay=0),b.allowFlatten=!g.type&&!g.ease,x&&!m&&i.get()!==void 0){const S=sC(b.keyframes,g);if(S!==void 0){Ze.update(()=>{b.onUpdate(S),b.onComplete()});return}}return g.isSync?new Rd(b):new z2(b)};function fC({protectedKeys:a,needsAnimating:i},l){const o=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function Y0(a,i,{delay:l=0,transitionOverride:o,type:d}={}){let{transition:m=a.getDefaultTransition(),transitionEnd:f,...g}=i;o&&(m=o);const y=[],p=d&&a.animationState&&a.animationState.getState()[d];for(const b in g){const x=a.getValue(b,a.latestValues[b]??null),S=g[b];if(S===void 0||p&&fC(p,b))continue;const N={delay:l,...Od(m||{},b)},E=x.get();if(E!==void 0&&!x.isAnimating&&!Array.isArray(S)&&S===E&&!N.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const D=G0(a);if(D){const q=window.MotionHandoffAnimation(D,b,Ze);q!==null&&(N.startTime=q,O=!0)}}ad(a,b),x.start(Qd(b,x,S,a.shouldReduceMotion&&r0.has(b)?{type:!1}:N,a,O));const k=x.animation;k&&y.push(k)}return f&&Promise.all(y).then(()=>{Ze.update(()=>{f&&nC(a,f)})}),y}function q0(a,i,l,o=0,d=1){const m=Array.from(a).sort((p,b)=>p.sortNodePosition(b)).indexOf(i),f=a.size,g=(f-1)*o;return typeof l=="function"?l(m,f):d===1?m*o:g-m*o}function id(a,i,l={}){const o=Qi(a,i,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:d=a.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(d=l.transitionOverride);const m=o?()=>Promise.all(Y0(a,o,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:b,staggerDirection:x}=d;return mC(a,i,y,p,b,x,l)}:()=>Promise.resolve(),{when:g}=d;if(g){const[y,p]=g==="beforeChildren"?[m,f]:[f,m];return y().then(()=>p())}else return Promise.all([m(),f(l.delay)])}function mC(a,i,l=0,o=0,d=0,m=1,f){const g=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),g.push(id(y,i,{...f,delay:l+(typeof o=="function"?0:o)+q0(a.variantChildren,y,o,d,m)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(g)}function hC(a,i,l={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const d=i.map(m=>id(a,m,l));o=Promise.all(d)}else if(typeof i=="string")o=id(a,i,l);else{const d=typeof i=="function"?Qi(a,i,l.custom):i;o=Promise.all(Y0(a,d,l))}return o.then(()=>{a.notify("AnimationComplete",i)})}function X0(a,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==a.length)return!1;for(let o=0;o<l;o++)if(i[o]!==a[o])return!1;return!0}const pC=Ud.length;function K0(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?K0(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<pC;l++){const o=Ud[l],d=a.props[o];(ll(d)||d===!1)&&(i[o]=d)}return i}const yC=[...Ld].reverse(),gC=Ld.length;function bC(a){return i=>Promise.all(i.map(({animation:l,options:o})=>hC(a,l,o)))}function vC(a){let i=bC(a),l=ky(),o=!0;const d=y=>(p,b)=>{const x=Qi(a,b,y==="exit"?a.presenceContext?.custom:void 0);if(x){const{transition:S,transitionEnd:N,...E}=x;p={...p,...E,...N}}return p};function m(y){i=y(a)}function f(y){const{props:p}=a,b=K0(a.parent)||{},x=[],S=new Set;let N={},E=1/0;for(let k=0;k<gC;k++){const D=yC[k],q=l[D],G=p[D]!==void 0?p[D]:b[D],W=ll(G),Q=D===y?q.isActive:null;Q===!1&&(E=k);let P=G===b[D]&&G!==p[D]&&W;if(P&&o&&a.manuallyAnimateOnMount&&(P=!1),q.protectedKeys={...N},!q.isActive&&Q===null||!G&&!q.prevProp||Io(G)||typeof G=="boolean")continue;const X=xC(q.prevProp,G);let z=X||D===y&&q.isActive&&!P&&W||k>E&&W,ee=!1;const F=Array.isArray(G)?G:[G];let ne=F.reduce(d(D),{});Q===!1&&(ne={});const{prevResolvedValues:ce={}}=q,Ee={...ce,...ne},ye=U=>{z=!0,S.has(U)&&(ee=!0,S.delete(U)),q.needsAnimating[U]=!0;const A=a.getValue(U);A&&(A.liveStyle=!1)};for(const U in Ee){const A=ne[U],ie=ce[U];if(N.hasOwnProperty(U))continue;let de=!1;nd(A)&&nd(ie)?de=!X0(A,ie):de=A!==ie,de?A!=null?ye(U):S.add(U):A!==void 0&&S.has(U)?ye(U):q.protectedKeys[U]=!0}q.prevProp=G,q.prevResolvedValues=ne,q.isActive&&(N={...N,...ne}),o&&a.blockInitialAnimation&&(z=!1);const te=P&&X;z&&(!te||ee)&&x.push(...F.map(U=>{const A={type:D};if(typeof U=="string"&&o&&!te&&a.manuallyAnimateOnMount&&a.parent){const{parent:ie}=a,de=Qi(ie,U);if(ie.enteringChildren&&de){const{delayChildren:w}=de.transition||{};A.delay=q0(ie.enteringChildren,a,w)}}return{animation:U,options:A}}))}if(S.size){const k={};if(typeof p.initial!="boolean"){const D=Qi(a,Array.isArray(p.initial)?p.initial[0]:p.initial);D&&D.transition&&(k.transition=D.transition)}S.forEach(D=>{const q=a.getBaseTarget(D),G=a.getValue(D);G&&(G.liveStyle=!0),k[D]=q??null}),x.push({animation:k})}let O=!!x.length;return o&&(p.initial===!1||p.initial===p.animate)&&!a.manuallyAnimateOnMount&&(O=!1),o=!1,O?i(x):Promise.resolve()}function g(y,p){if(l[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(x=>x.animationState?.setActive(y,p)),l[y].isActive=p;const b=f(y);for(const x in l)l[x].protectedKeys={};return b}return{animateChanges:f,setActive:g,setAnimateFunction:m,getState:()=>l,reset:()=>{l=ky()}}}function xC(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!X0(i,a):!1}function Xa(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ky(){return{animate:Xa(!0),whileInView:Xa(),whileHover:Xa(),whileTap:Xa(),whileDrag:Xa(),whileFocus:Xa(),exit:Xa()}}class Ta{constructor(i){this.isMounted=!1,this.node=i}update(){}}class SC extends Ta{constructor(i){super(i),i.animationState||(i.animationState=vC(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Io(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let CC=0;class wC extends Ta{constructor(){super(...arguments),this.id=CC++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const d=this.node.animationState.setActive("exit",!i);l&&!i&&d.then(()=>{l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const jC={animation:{Feature:SC},exit:{Feature:wC}};function ol(a,i,l,o={passive:!0}){return a.addEventListener(i,l,o),()=>a.removeEventListener(i,l)}function dl(a){return{point:{x:a.pageX,y:a.pageY}}}const TC=a=>i=>kd(i)&&a(i,dl(i));function tl(a,i,l,o){return ol(a,i,TC(l),o)}const Q0=1e-4,NC=1-Q0,AC=1+Q0,Z0=.01,MC=0-Z0,EC=0+Z0;function At(a){return a.max-a.min}function DC(a,i,l){return Math.abs(a-i)<=l}function By(a,i,l,o=.5){a.origin=o,a.originPoint=Je(i.min,i.max,a.origin),a.scale=At(l)/At(i),a.translate=Je(l.min,l.max,a.origin)-a.originPoint,(a.scale>=NC&&a.scale<=AC||isNaN(a.scale))&&(a.scale=1),(a.translate>=MC&&a.translate<=EC||isNaN(a.translate))&&(a.translate=0)}function nl(a,i,l,o){By(a.x,i.x,l.x,o?o.originX:void 0),By(a.y,i.y,l.y,o?o.originY:void 0)}function Ly(a,i,l){a.min=l.min+i.min,a.max=a.min+At(i)}function RC(a,i,l){Ly(a.x,i.x,l.x),Ly(a.y,i.y,l.y)}function Uy(a,i,l){a.min=i.min-l.min,a.max=a.min+At(i)}function Jo(a,i,l){Uy(a.x,i.x,l.x),Uy(a.y,i.y,l.y)}function an(a){return[a("x"),a("y")]}const J0=({current:a})=>a?a.ownerDocument.defaultView:null,Hy=(a,i)=>Math.abs(a-i);function zC(a,i){const l=Hy(a.x,i.x),o=Hy(a.y,i.y);return Math.sqrt(l**2+o**2)}class P0{constructor(i,l,{transformPagePoint:o,contextWindow:d=window,dragSnapToOrigin:m=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Ec(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,E=zC(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!E)return;const{point:O}=S,{timestamp:k}=St;this.history.push({...O,timestamp:k});const{onStart:D,onMove:q}=this.handlers;N||(D&&D(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),q&&q(this.lastMoveEvent,S)},this.handlePointerMove=(S,N)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=Mc(N,this.transformPagePoint),Ze.update(this.updatePoint,!0)},this.handlePointerUp=(S,N)=>{this.end();const{onEnd:E,onSessionEnd:O,resumeAnimation:k}=this.handlers;if(this.dragSnapToOrigin&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Ec(S.type==="pointercancel"?this.lastMoveEventInfo:Mc(N,this.transformPagePoint),this.history);this.startEvent&&E&&E(S,D),O&&O(S,D)},!kd(i))return;this.dragSnapToOrigin=m,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=d||window;const g=dl(i),y=Mc(g,this.transformPagePoint),{point:p}=y,{timestamp:b}=St;this.history=[{...p,timestamp:b}];const{onSessionStart:x}=l;x&&x(i,Ec(y,this.history)),this.removeListeners=rl(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),wa(this.updatePoint)}}function Mc(a,i){return i?{point:i(a.point)}:a}function Gy(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Ec({point:a},i){return{point:a,delta:Gy(a,F0(i)),offset:Gy(a,OC(i)),velocity:VC(i,.1)}}function OC(a){return a[0]}function F0(a){return a[a.length-1]}function VC(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const d=F0(a);for(;l>=0&&(o=a[l],!(d.timestamp-o.timestamp>Cn(i)));)l--;if(!o)return{x:0,y:0};const m=sn(d.timestamp-o.timestamp);if(m===0)return{x:0,y:0};const f={x:(d.x-o.x)/m,y:(d.y-o.y)/m};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function _C(a,{min:i,max:l},o){return i!==void 0&&a<i?a=o?Je(i,a,o.min):Math.max(a,i):l!==void 0&&a>l&&(a=o?Je(l,a,o.max):Math.min(a,l)),a}function Yy(a,i,l){return{min:i!==void 0?a.min+i:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function kC(a,{top:i,left:l,bottom:o,right:d}){return{x:Yy(a.x,l,d),y:Yy(a.y,i,o)}}function qy(a,i){let l=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([l,o]=[o,l]),{min:l,max:o}}function BC(a,i){return{x:qy(a.x,i.x),y:qy(a.y,i.y)}}function LC(a,i){let l=.5;const o=At(a),d=At(i);return d>o?l=al(i.min,i.max-o,a.min):o>d&&(l=al(a.min,a.max-d,i.min)),Zn(0,1,l)}function UC(a,i){const l={};return i.min!==void 0&&(l.min=i.min-a.min),i.max!==void 0&&(l.max=i.max-a.min),l}const sd=.35;function HC(a=sd){return a===!1?a=0:a===!0&&(a=sd),{x:Xy(a,"left","right"),y:Xy(a,"top","bottom")}}function Xy(a,i,l){return{min:Ky(a,i),max:Ky(a,l)}}function Ky(a,i){return typeof a=="number"?a:a[i]||0}const GC=new WeakMap;class YC{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:d}=this.visualElement;if(d&&d.isPresent===!1)return;const m=x=>{const{dragSnapToOrigin:S}=this.getProps();S?this.pauseAnimation():this.stopAnimation(),l&&this.snapToCursor(dl(x).point)},f=(x,S)=>{const{drag:N,dragPropagation:E,onDragStart:O}=this.getProps();if(N&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=J2(N),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),an(D=>{let q=this.getAxisMotionValue(D).get()||0;if(wn.test(q)){const{projection:G}=this.visualElement;if(G&&G.layout){const W=G.layout.layoutBox[D];W&&(q=At(W)*(parseFloat(q)/100))}}this.originPoint[D]=q}),O&&Ze.postRender(()=>O(x,S)),ad(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},g=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:N,dragDirectionLock:E,onDirectionLock:O,onDrag:k}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:D}=S;if(E&&this.currentDirection===null){this.currentDirection=qC(D),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,D),this.updateAxis("y",S.point,D),this.visualElement.render(),k&&k(x,S)},y=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>an(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:b}=this.getProps();this.panSession=new P0(i,{onSessionStart:m,onStart:f,onMove:g,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:o,contextWindow:J0(this.visualElement)})}stop(i,l){const o=i||this.latestPointerEvent,d=l||this.latestPanInfo,m=this.isDragging;if(this.cancel(),!m||!d||!o)return;const{velocity:f}=d;this.startAnimation(f);const{onDragEnd:g}=this.getProps();g&&Ze.postRender(()=>g(o,d))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}updateAxis(i,l,o){const{drag:d}=this.getProps();if(!o||!Vo(i,d,this.currentDirection))return;const m=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=_C(f,this.constraints[i],this.elastic[i])),m.set(f)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;i&&Yi(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=kC(o.layoutBox,i):this.constraints=!1,this.elastic=HC(l),d!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&an(m=>{this.constraints!==!1&&this.getAxisMotionValue(m)&&(this.constraints[m]=UC(o.layoutBox[m],this.constraints[m]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Yi(i))return!1;const o=i.current,{projection:d}=this.visualElement;if(!d||!d.layout)return!1;const m=XS(o,d.root,this.visualElement.getTransformPagePoint());let f=BC(d.layout.layoutBox,m);if(l){const g=l(GS(f));this.hasMutatedConstraints=!!g,g&&(f=O0(g))}return f}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:d,dragTransition:m,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),y=this.constraints||{},p=an(b=>{if(!Vo(b,l,this.currentDirection))return;let x=y&&y[b]||{};f&&(x={min:0,max:0});const S=d?200:1e6,N=d?40:1e7,E={type:"inertia",velocity:o?i[b]:0,bounceStiffness:S,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...m,...x};return this.startAxisValueAnimation(b,E)});return Promise.all(p).then(g)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return ad(this.visualElement,i),o.start(Qd(i,o,0,l,this.visualElement,!1))}stopAnimation(){an(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){an(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),d=o[l];return d||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){an(l=>{const{drag:o}=this.getProps();if(!Vo(l,o,this.currentDirection))return;const{projection:d}=this.visualElement,m=this.getAxisMotionValue(l);if(d&&d.layout){const{min:f,max:g}=d.layout.layoutBox[l];m.set(i[l]-Je(f,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Yi(l)||!o||!this.constraints)return;this.stopAnimation();const d={x:0,y:0};an(f=>{const g=this.getAxisMotionValue(f);if(g&&this.constraints!==!1){const y=g.get();d[f]=LC({min:y,max:y},this.constraints[f])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.current.style.transform=m?m({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),an(f=>{if(!Vo(f,i,null))return;const g=this.getAxisMotionValue(f),{min:y,max:p}=this.constraints[f];g.set(Je(y,p,d[f]))})}addListeners(){if(!this.visualElement.current)return;GC.set(this.visualElement,this);const i=this.visualElement.current,l=tl(i,"pointerdown",y=>{const{drag:p,dragListener:b=!0}=this.getProps();p&&b&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();Yi(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:d}=this.visualElement,m=d.addEventListener("measure",o);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ze.read(o);const f=ol(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:p})=>{this.isDragging&&p&&(an(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=y[b].translate,x.set(x.get()+y[b].translate))}),this.visualElement.render())}));return()=>{f(),l(),m(),g&&g()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:d=!1,dragConstraints:m=!1,dragElastic:f=sd,dragMomentum:g=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:d,dragConstraints:m,dragElastic:f,dragMomentum:g}}}function Vo(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function qC(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class XC extends Ta{constructor(i){super(i),this.removeGroupControls=ln,this.removeListeners=ln,this.controls=new YC(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ln}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qy=a=>(i,l)=>{a&&Ze.postRender(()=>a(i,l))};class KC extends Ta{constructor(){super(...arguments),this.removePointerDownListener=ln}onPointerDown(i){this.session=new P0(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J0(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:d}=this.node.getProps();return{onSessionStart:Qy(i),onStart:Qy(l),onMove:o,onEnd:(m,f)=>{delete this.session,d&&Ze.postRender(()=>d(m,f))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Dc=!1;class QC extends T.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o,layoutId:d}=this.props,{projection:m}=i;m&&(l.group&&l.group.add(m),o&&o.register&&d&&o.register(m),Dc&&m.root.didUpdate(),m.addEventListener("animationComplete",()=>{this.safeToRemove()}),m.setOptions({...m.options,onExitComplete:()=>this.safeToRemove()})),Go.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:o,drag:d,isPresent:m}=this.props,{projection:f}=o;return f&&(f.isPresent=m,Dc=!0,d||i.layoutDependency!==l||l===void 0||i.isPresent!==m?f.willUpdate():this.safeToRemove(),i.isPresent!==m&&(m?f.promote():f.relegate()||Ze.postRender(()=>{const g=f.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),_d.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:d}=i;Dc=!0,d&&(d.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(d),o&&o.deregister&&o.deregister(d))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function W0(a){const[i,l]=v0(),o=T.useContext(hd);return c.jsx(QC,{...a,layoutGroup:o,switchLayoutGroup:T.useContext(R0),isPresent:i,safeToRemove:l})}function ZC(a,i,l){const o=wt(a)?a:Zi(a);return o.start(Qd("",o,i,l)),o.animation}const JC=(a,i)=>a.depth-i.depth;class PC{constructor(){this.children=[],this.isDirty=!1}add(i){gd(this.children,i),this.isDirty=!0}remove(i){bd(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(JC),this.isDirty=!1,this.children.forEach(i)}}function FC(a,i){const l=_t.now(),o=({timestamp:d})=>{const m=d-l;m>=i&&(wa(o),a(m-i))};return Ze.setup(o,!0),()=>wa(o)}const $0=["TopLeft","TopRight","BottomLeft","BottomRight"],WC=$0.length,Zy=a=>typeof a=="string"?parseFloat(a):a,Jy=a=>typeof a=="number"||ve.test(a);function $C(a,i,l,o,d,m){d?(a.opacity=Je(0,l.opacity??1,IC(o)),a.opacityExit=Je(i.opacity??1,0,ew(o))):m&&(a.opacity=Je(i.opacity??1,l.opacity??1,o));for(let f=0;f<WC;f++){const g=`border${$0[f]}Radius`;let y=Py(i,g),p=Py(l,g);if(y===void 0&&p===void 0)continue;y||(y=0),p||(p=0),y===0||p===0||Jy(y)===Jy(p)?(a[g]=Math.max(Je(Zy(y),Zy(p),o),0),(wn.test(p)||wn.test(y))&&(a[g]+="%")):a[g]=p}(i.rotate||l.rotate)&&(a.rotate=Je(i.rotate||0,l.rotate||0,o))}function Py(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const IC=I0(0,.5,Lg),ew=I0(.5,.95,ln);function I0(a,i,l){return o=>o<a?0:o>i?1:l(al(a,i,o))}function Fy(a,i){a.min=i.min,a.max=i.max}function hn(a,i){Fy(a.x,i.x),Fy(a.y,i.y)}function Wy(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}function $y(a,i,l,o,d){return a-=i,a=Zo(a,1/l,o),d!==void 0&&(a=Zo(a,1/d,o)),a}function tw(a,i=0,l=1,o=.5,d,m=a,f=a){if(wn.test(i)&&(i=parseFloat(i),i=Je(f.min,f.max,i/100)-f.min),typeof i!="number")return;let g=Je(m.min,m.max,o);a===m&&(g-=i),a.min=$y(a.min,i,l,g,d),a.max=$y(a.max,i,l,g,d)}function Iy(a,i,[l,o,d],m,f){tw(a,i[l],i[o],i[d],i.scale,m,f)}const nw=["x","scaleX","originX"],aw=["y","scaleY","originY"];function eg(a,i,l,o){Iy(a.x,i,nw,l?l.x:void 0,o?o.x:void 0),Iy(a.y,i,aw,l?l.y:void 0,o?o.y:void 0)}function tg(a){return a.translate===0&&a.scale===1}function eb(a){return tg(a.x)&&tg(a.y)}function ng(a,i){return a.min===i.min&&a.max===i.max}function iw(a,i){return ng(a.x,i.x)&&ng(a.y,i.y)}function ag(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function tb(a,i){return ag(a.x,i.x)&&ag(a.y,i.y)}function ig(a){return At(a.x)/At(a.y)}function sg(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}class sw{constructor(){this.members=[]}add(i){gd(this.members,i),i.scheduleRender()}remove(i){if(bd(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){const l=this.members.findIndex(d=>i===d);if(l===0)return!1;let o;for(let d=l;d>=0;d--){const m=this.members[d];if(m.isPresent!==!1){o=m;break}}return o?(this.promote(o),!0):!1}promote(i,l){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.instance&&o.scheduleRender(),i.scheduleRender(),i.resumeFrom=o,l&&(i.resumeFrom.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:d}=i.options;d===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:l,resumingFrom:o}=i;l.onExitComplete&&l.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lw(a,i,l){let o="";const d=a.x.translate/i.x,m=a.y.translate/i.y,f=l?.z||0;if((d||m||f)&&(o=`translate3d(${d}px, ${m}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:b,rotateX:x,rotateY:S,skewX:N,skewY:E}=l;p&&(o=`perspective(${p}px) ${o}`),b&&(o+=`rotate(${b}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),N&&(o+=`skewX(${N}deg) `),E&&(o+=`skewY(${E}deg) `)}const g=a.x.scale*i.x,y=a.y.scale*i.y;return(g!==1||y!==1)&&(o+=`scale(${g}, ${y})`),o||"none"}const Rc=["","X","Y","Z"],ow=1e3;let rw=0;function zc(a,i,l,o){const{latestValues:d}=i;d[a]&&(l[a]=d[a],i.setStaticValue(a,0),o&&(o[a]=0))}function nb(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=G0(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:d,layoutId:m}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Ze,!(d||m))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&nb(o)}function ab({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:d}){return class{constructor(f={},g=i?.()){this.id=rw++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dw),this.nodes.forEach(pw),this.nodes.forEach(yw),this.nodes.forEach(fw)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new PC)}addEventListener(f,g){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Sd),this.eventHandlers.get(f).add(g)}notifyListeners(f,...g){const y=this.eventHandlers.get(f);y&&y.notify(...g)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=b0(f)&&!eS(f),this.instance=f;const{layoutId:g,layout:y,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||g)&&(this.isLayoutDirty=!0),a){let b,x=0;const S=()=>this.root.updateBlockedByResize=!1;Ze.read(()=>{x=window.innerWidth}),a(f,()=>{const N=window.innerWidth;N!==x&&(x=N,this.root.updateBlockedByResize=!0,b&&b(),b=FC(S,250),Go.hasAnimatedSinceResize&&(Go.hasAnimatedSinceResize=!1,this.nodes.forEach(rg)))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&p&&(g||y)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||p.getDefaultTransition()||Sw,{onLayoutAnimationStart:O,onLayoutAnimationComplete:k}=p.getProps(),D=!this.targetLayout||!tb(this.targetLayout,N),q=!x&&S;if(this.options.layoutRoot||this.resumeFrom||q||x&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Od(E,"layout"),onPlay:O,onComplete:k};(p.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(b,q)}else x||rg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wa(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(gw),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:g,layout:y}=this.options;if(g===void 0&&!y)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(og);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hw),this.nodes.forEach(uw),this.nodes.forEach(cw)):this.nodes.forEach(og),this.clearAllSnapshots();const g=_t.now();St.delta=Zn(0,1e3/60,g-St.timestamp),St.timestamp=g,St.isProcessing=!0,xc.update.process(St),xc.preRender.process(St),xc.render.process(St),St.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_d.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mw),this.sharedNodes.forEach(bw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!At(this.snapshot.measuredBox.x)&&!At(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let g=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(g=!1),g&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!d)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,g=this.projectionDelta&&!eb(this.projectionDelta),y=this.getTransformTemplate(),p=y?y(this.latestValues,""):void 0,b=p!==this.prevTransformTemplateValue;f&&this.instance&&(g||Za(this.latestValues)||b)&&(d(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const g=this.measurePageBox();let y=this.removeElementScroll(g);return f&&(y=this.removeTransform(y)),Cw(y),{animationId:this.root.animationId,measuredBox:g,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return rt();const g=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ww))){const{scroll:p}=this.root;p&&(qi(g.x,p.offset.x),qi(g.y,p.offset.y))}return g}removeElementScroll(f){const g=rt();if(hn(g,f),this.scroll?.wasRoot)return g;for(let y=0;y<this.path.length;y++){const p=this.path[y],{scroll:b,options:x}=p;p!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&hn(g,f),qi(g.x,b.offset.x),qi(g.y,b.offset.y))}return g}applyTransform(f,g=!1){const y=rt();hn(y,f);for(let p=0;p<this.path.length;p++){const b=this.path[p];!g&&b.options.layoutScroll&&b.scroll&&b!==b.root&&Xi(y,{x:-b.scroll.offset.x,y:-b.scroll.offset.y}),Za(b.latestValues)&&Xi(y,b.latestValues)}return Za(this.latestValues)&&Xi(y,this.latestValues),y}removeTransform(f){const g=rt();hn(g,f);for(let y=0;y<this.path.length;y++){const p=this.path[y];if(!p.instance||!Za(p.latestValues))continue;Ic(p.latestValues)&&p.updateSnapshot();const b=rt(),x=p.measurePageBox();hn(b,x),eg(g,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,b)}return Za(this.latestValues)&&eg(g,this.latestValues),g}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==g;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=St.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),RC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hn(this.target,this.layout.layoutBox),_0(this.target,this.targetDelta)):hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ic(this.parent.latestValues)||V0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,g,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),Jo(this.relativeTargetOrigin,g,y),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),g=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===St.timestamp&&(y=!1),y)return;const{layout:p,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||b))return;hn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;qS(this.layoutCorrected,this.treeScale,this.path,g),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=rt());const{target:N}=f;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wy(this.prevProjectionDelta.x,this.projectionDelta.x),Wy(this.prevProjectionDelta.y,this.projectionDelta.y)),nl(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!sg(this.projectionDelta.x,this.prevProjectionDelta.x)||!sg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ki(),this.projectionDelta=Ki(),this.projectionDeltaWithTransform=Ki()}setAnimationOrigin(f,g=!1){const y=this.snapshot,p=y?y.latestValues:{},b={...this.latestValues},x=Ki();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const S=rt(),N=y?y.source:void 0,E=this.layout?this.layout.source:void 0,O=N!==E,k=this.getStack(),D=!k||k.members.length<=1,q=!!(O&&!D&&this.options.crossfade===!0&&!this.path.some(xw));this.animationProgress=0;let G;this.mixTargetDelta=W=>{const Q=W/1e3;ug(x.x,f.x,Q),ug(x.y,f.y,Q),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vw(this.relativeTarget,this.relativeTargetOrigin,S,Q),G&&iw(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=rt()),hn(G,this.relativeTarget)),O&&(this.animationValues=b,$C(b,p,this.latestValues,Q,q,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ze.update(()=>{Go.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Zi(0)),this.currentAnimation=ZC(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ow),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:g,target:y,layout:p,latestValues:b}=f;if(!(!g||!y||!p)){if(this!==f&&this.layout&&p&&ib(this.options.animationType,this.layout.layoutBox,p.layoutBox)){y=this.target||rt();const x=At(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+x;const S=At(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}hn(g,y),Xi(g,b),nl(this.projectionDeltaWithTransform,this.layoutCorrected,g,b)}}registerSharedNode(f,g){this.sharedNodes.has(f)||this.sharedNodes.set(f,new sw),this.sharedNodes.get(f).add(g);const p=g.options.initialPromotionConfig;g.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(g):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:g,preserveFollowOpacity:y}={}){const p=this.getStack();p&&p.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let g=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(g=!0),!g)return;const p={};y.z&&zc("z",f,p,this.animationValues);for(let b=0;b<Rc.length;b++)zc(`rotate${Rc[b]}`,f,p,this.animationValues),zc(`skew${Rc[b]}`,f,p,this.animationValues);f.render();for(const b in p)f.setStaticValue(b,p[b]),this.animationValues&&(this.animationValues[b]=p[b]);f.scheduleRender()}applyProjectionStyles(f,g){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Ho(g?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Ho(g?.pointerEvents)||""),this.hasProjected&&!Za(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=lw(this.projectionDeltaWithTransform,this.treeScale,b);y&&(x=y(b,x)),f.transform=x;const{x:S,y:N}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${N.origin*100}% 0`,p.animationValues?f.opacity=p===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const E in $c){if(b[E]===void 0)continue;const{correct:O,applyTo:k,isCSSVariable:D}=$c[E],q=x==="none"?b[E]:O(b[E],p);if(k){const G=k.length;for(let W=0;W<G;W++)f[k[W]]=q}else D?this.options.visualElement.renderState.vars[E]=q:f[E]=q}this.options.layoutId&&(f.pointerEvents=p===this?Ho(g?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(lg),this.root.sharedNodes.clear()}}}function uw(a){a.updateLayout()}function cw(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=a.layout,{animationType:d}=a.options,m=i.source!==a.layout.source;d==="size"?an(b=>{const x=m?i.measuredBox[b]:i.layoutBox[b],S=At(x);x.min=l[b].min,x.max=x.min+S}):ib(d,i.layoutBox,l)&&an(b=>{const x=m?i.measuredBox[b]:i.layoutBox[b],S=At(l[b]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+S)});const f=Ki();nl(f,l,i.layoutBox);const g=Ki();m?nl(g,a.applyTransform(o,!0),i.measuredBox):nl(g,l,i.layoutBox);const y=!eb(f);let p=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const N=rt();Jo(N,i.layoutBox,x.layoutBox);const E=rt();Jo(E,l,S.layoutBox),tb(N,E)||(p=!0),b.options.layoutRoot&&(a.relativeTarget=E,a.relativeTargetOrigin=N,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:g,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function dw(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 fw(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function mw(a){a.clearSnapshot()}function lg(a){a.clearMeasurements()}function og(a){a.isLayoutDirty=!1}function hw(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function rg(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function pw(a){a.resolveTargetDelta()}function yw(a){a.calcProjection()}function gw(a){a.resetSkewAndRotation()}function bw(a){a.removeLeadSnapshot()}function ug(a,i,l){a.translate=Je(i.translate,0,l),a.scale=Je(i.scale,1,l),a.origin=i.origin,a.originPoint=i.originPoint}function cg(a,i,l,o){a.min=Je(i.min,l.min,o),a.max=Je(i.max,l.max,o)}function vw(a,i,l,o){cg(a.x,i.x,l.x,o),cg(a.y,i.y,l.y,o)}function xw(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const Sw={duration:.45,ease:[.4,0,.1,1]},dg=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fg=dg("applewebkit/")&&!dg("chrome/")?Math.round:ln;function mg(a){a.min=fg(a.min),a.max=fg(a.max)}function Cw(a){mg(a.x),mg(a.y)}function ib(a,i,l){return a==="position"||a==="preserve-aspect"&&!DC(ig(i),ig(l),.2)}function ww(a){return a!==a.root&&a.scroll?.wasRoot}const jw=ab({attachResizeListener:(a,i)=>ol(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oc={current:void 0},sb=ab({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Oc.current){const a=new jw({});a.mount(window),a.setOptions({layoutScroll:!0}),Oc.current=a}return Oc.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Tw={pan:{Feature:KC},drag:{Feature:XC,ProjectionNode:sb,MeasureLayout:W0}};function hg(a,i,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const d="onHover"+l,m=o[d];m&&Ze.postRender(()=>m(i,dl(i)))}class Nw extends Ta{mount(){const{current:i}=this.node;i&&(this.unmount=P2(i,(l,o)=>(hg(this.node,o,"Start"),d=>hg(this.node,d,"End"))))}unmount(){}}class Aw extends Ta{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=rl(ol(this.node.current,"focus",()=>this.onFocus()),ol(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pg(a,i,l){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",l==="Start");const d="onTap"+(l==="End"?"":l),m=o[d];m&&Ze.postRender(()=>m(i,dl(i)))}class Mw extends Ta{mount(){const{current:i}=this.node;i&&(this.unmount=I2(i,(l,o)=>(pg(this.node,o,"Start"),(d,{success:m})=>pg(this.node,d,m?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ld=new WeakMap,Vc=new WeakMap,Ew=a=>{const i=ld.get(a.target);i&&i(a)},Dw=a=>{a.forEach(Ew)};function Rw({root:a,...i}){const l=a||document;Vc.has(l)||Vc.set(l,{});const o=Vc.get(l),d=JSON.stringify(i);return o[d]||(o[d]=new IntersectionObserver(Dw,{root:a,...i})),o[d]}function zw(a,i,l){const o=Rw(i);return ld.set(a,l),o.observe(a),()=>{ld.delete(a),o.unobserve(a)}}const Ow={some:0,all:1};class Vw extends Ta{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:l,margin:o,amount:d="some",once:m}=i,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof d=="number"?d:Ow[d]},g=y=>{const{isIntersecting:p}=y;if(this.isInView===p||(this.isInView=p,m&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),S=p?b:x;S&&S(y)};return zw(this.node.current,f,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(_w(i,l))&&this.startObserver()}unmount(){}}function _w({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const kw={inView:{Feature:Vw},tap:{Feature:Mw},focus:{Feature:Aw},hover:{Feature:Nw}},Bw={layout:{ProjectionNode:sb,MeasureLayout:W0}},Lw={...jC,...kw,...Tw,...Bw},me=HS(Lw,IS);const Uw=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,o)=>o?o.toUpperCase():l.toLowerCase()),yg=a=>{const i=Hw(a);return i.charAt(0).toUpperCase()+i.slice(1)},lb=(...a)=>a.filter((i,l,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===l).join(" ").trim(),Gw=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};var Yw={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"};const qw=T.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:m,iconNode:f,...g},y)=>T.createElement("svg",{ref:y,...Yw,width:i,height:i,stroke:a,strokeWidth:o?Number(l)*24/Number(i):l,className:lb("lucide",d),...!m&&!Gw(g)&&{"aria-hidden":"true"},...g},[...f.map(([p,b])=>T.createElement(p,b)),...Array.isArray(m)?m:[m]]));const _e=(a,i)=>{const l=T.forwardRef(({className:o,...d},m)=>T.createElement(qw,{ref:m,iconNode:i,className:lb(`lucide-${Uw(yg(a))}`,`lucide-${a}`,o),...d}));return l.displayName=yg(a),l};const Xw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Kw=_e("arrow-down",Xw);const Qw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Zw=_e("arrow-up",Qw);const Jw=[["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"}]],Pw=_e("calendar",Jw);const Fw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ob=_e("check",Fw);const Ww=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kn=_e("chevron-down",Ww);const $w=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],od=_e("chevron-right",$w);const Iw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rd=_e("chevron-left",Iw);const ej=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tj=_e("chevrons-up-down",ej);const nj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aj=_e("circle-alert",nj);const ij=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],sj=_e("circle-check-big",ij);const lj=[["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"}]],oj=_e("eye-off",lj);const rj=[["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"}]],uj=_e("eye",rj);const cj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],_o=_e("globe",cj);const dj=[["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"}]],fj=_e("house",dj);const mj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rb=_e("info",mj);const hj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ub=_e("loader-circle",hj);const pj=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],yj=_e("lock",pj);const gj=[["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"}]],bj=_e("mail",gj);const vj=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],xj=_e("mic",vj);const Sj=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Cj=_e("pause",Sj);const wj=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],jj=_e("play",wj);const Tj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ud=_e("plus",Tj);const Nj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yn=_e("search",Nj);const Aj=[["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"}]],Mj=_e("settings",Aj);const Ej=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],gg=_e("square-pen",Ej);const Dj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Rj=_e("square",Dj);const zj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],cd=_e("trash-2",zj);const Oj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Vj=_e("triangle-alert",Oj);const _j=[["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"}]],Fs=_e("user",_j);const kj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kt=_e("x",kj);function cb(a){var i,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(i=0;i<d;i++)a[i]&&(l=cb(a[i]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Bj(){for(var a,i,l=0,o="",d=arguments.length;l<d;l++)(a=arguments[l])&&(i=cb(a))&&(o&&(o+=" "),o+=i);return o}const Lj=(a,i)=>{const l=new Array(a.length+i.length);for(let o=0;o<a.length;o++)l[o]=a[o];for(let o=0;o<i.length;o++)l[a.length+o]=i[o];return l},Uj=(a,i)=>({classGroupId:a,validator:i}),db=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),Po="-",bg=[],Hj="arbitrary..",Gj=a=>{const i=qj(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return Yj(f);const g=f.split(Po),y=g[0]===""&&g.length>1?1:0;return fb(g,y,i)},getConflictingClassGroupIds:(f,g)=>{if(g){const y=o[f],p=l[f];return y?p?Lj(p,y):y:p||bg}return l[f]||bg}}},fb=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const d=a[i],m=l.nextPart.get(d);if(m){const p=fb(a,i+1,m);if(p)return p}const f=l.validators;if(f===null)return;const g=i===0?a.join(Po):a.slice(i).join(Po),y=f.length;for(let p=0;p<y;p++){const b=f[p];if(b.validator(g))return b.classGroupId}},Yj=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),l=i.indexOf(":"),o=i.slice(0,l);return o?Hj+o:void 0})(),qj=a=>{const{theme:i,classGroups:l}=a;return Xj(l,i)},Xj=(a,i)=>{const l=db();for(const o in a){const d=a[o];Zd(d,l,o,i)}return l},Zd=(a,i,l,o)=>{const d=a.length;for(let m=0;m<d;m++){const f=a[m];Kj(f,i,l,o)}},Kj=(a,i,l,o)=>{if(typeof a=="string"){Qj(a,i,l);return}if(typeof a=="function"){Zj(a,i,l,o);return}Jj(a,i,l,o)},Qj=(a,i,l)=>{const o=a===""?i:mb(i,a);o.classGroupId=l},Zj=(a,i,l,o)=>{if(Pj(a)){Zd(a(o),i,l,o);return}i.validators===null&&(i.validators=[]),i.validators.push(Uj(l,a))},Jj=(a,i,l,o)=>{const d=Object.entries(a),m=d.length;for(let f=0;f<m;f++){const[g,y]=d[f];Zd(y,mb(i,g),l,o)}},mb=(a,i)=>{let l=a;const o=i.split(Po),d=o.length;for(let m=0;m<d;m++){const f=o[m];let g=l.nextPart.get(f);g||(g=db(),l.nextPart.set(f,g)),l=g}return l},Pj=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,Fj=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),o=Object.create(null);const d=(m,f)=>{l[m]=f,i++,i>a&&(i=0,o=l,l=Object.create(null))};return{get(m){let f=l[m];if(f!==void 0)return f;if((f=o[m])!==void 0)return d(m,f),f},set(m,f){m in l?l[m]=f:d(m,f)}}},dd="!",vg=":",Wj=[],xg=(a,i,l,o,d)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:o,isExternal:d}),$j=a=>{const{prefix:i,experimentalParseClassName:l}=a;let o=d=>{const m=[];let f=0,g=0,y=0,p;const b=d.length;for(let O=0;O<b;O++){const k=d[O];if(f===0&&g===0){if(k===vg){m.push(d.slice(y,O)),y=O+1;continue}if(k==="/"){p=O;continue}}k==="["?f++:k==="]"?f--:k==="("?g++:k===")"&&g--}const x=m.length===0?d:d.slice(y);let S=x,N=!1;x.endsWith(dd)?(S=x.slice(0,-1),N=!0):x.startsWith(dd)&&(S=x.slice(1),N=!0);const E=p&&p>y?p-y:void 0;return xg(m,N,S,E)};if(i){const d=i+vg,m=o;o=f=>f.startsWith(d)?m(f.slice(d.length)):xg(Wj,!1,f,void 0,!0)}if(l){const d=o;o=m=>l({className:m,parseClassName:d})}return o},Ij=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{i.set(l,1e6+o)}),l=>{const o=[];let d=[];for(let m=0;m<l.length;m++){const f=l[m],g=f[0]==="[",y=i.has(f);g||y?(d.length>0&&(d.sort(),o.push(...d),d=[]),o.push(f)):d.push(f)}return d.length>0&&(d.sort(),o.push(...d)),o}},eT=a=>({cache:Fj(a.cacheSize),parseClassName:$j(a),sortModifiers:Ij(a),...Gj(a)}),tT=/\s+/,nT=(a,i)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:d,sortModifiers:m}=i,f=[],g=a.trim().split(tT);let y="";for(let p=g.length-1;p>=0;p-=1){const b=g[p],{isExternal:x,modifiers:S,hasImportantModifier:N,baseClassName:E,maybePostfixModifierPosition:O}=l(b);if(x){y=b+(y.length>0?" "+y:y);continue}let k=!!O,D=o(k?E.substring(0,O):E);if(!D){if(!k){y=b+(y.length>0?" "+y:y);continue}if(D=o(E),!D){y=b+(y.length>0?" "+y:y);continue}k=!1}const q=S.length===0?"":S.length===1?S[0]:m(S).join(":"),G=N?q+dd:q,W=G+D;if(f.indexOf(W)>-1)continue;f.push(W);const Q=d(D,k);for(let P=0;P<Q.length;++P){const X=Q[P];f.push(G+X)}y=b+(y.length>0?" "+y:y)}return y},aT=(...a)=>{let i=0,l,o,d="";for(;i<a.length;)(l=a[i++])&&(o=hb(l))&&(d&&(d+=" "),d+=o);return d},hb=a=>{if(typeof a=="string")return a;let i,l="";for(let o=0;o<a.length;o++)a[o]&&(i=hb(a[o]))&&(l&&(l+=" "),l+=i);return l},iT=(a,...i)=>{let l,o,d,m;const f=y=>{const p=i.reduce((b,x)=>x(b),a());return l=eT(p),o=l.cache.get,d=l.cache.set,m=g,g(y)},g=y=>{const p=o(y);if(p)return p;const b=nT(y,l);return d(y,b),b};return m=f,(...y)=>m(aT(...y))},sT=[],ot=a=>{const i=l=>l[a]||sT;return i.isThemeGetter=!0,i},pb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,yb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lT=/^\d+\/\d+$/,oT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rT=/\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$/,uT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hi=a=>lT.test(a),we=a=>!!a&&!Number.isNaN(Number(a)),xa=a=>!!a&&Number.isInteger(Number(a)),_c=a=>a.endsWith("%")&&we(a.slice(0,-1)),Xn=a=>oT.test(a),fT=()=>!0,mT=a=>rT.test(a)&&!uT.test(a),gb=()=>!1,hT=a=>cT.test(a),pT=a=>dT.test(a),yT=a=>!oe(a)&&!re(a),gT=a=>$i(a,xb,gb),oe=a=>pb.test(a),Ka=a=>$i(a,Sb,mT),kc=a=>$i(a,CT,we),Sg=a=>$i(a,bb,gb),bT=a=>$i(a,vb,pT),ko=a=>$i(a,Cb,hT),re=a=>yb.test(a),Ws=a=>Ii(a,Sb),vT=a=>Ii(a,wT),Cg=a=>Ii(a,bb),xT=a=>Ii(a,xb),ST=a=>Ii(a,vb),Bo=a=>Ii(a,Cb,!0),$i=(a,i,l)=>{const o=pb.exec(a);return o?o[1]?i(o[1]):l(o[2]):!1},Ii=(a,i,l=!1)=>{const o=yb.exec(a);return o?o[1]?i(o[1]):l:!1},bb=a=>a==="position"||a==="percentage",vb=a=>a==="image"||a==="url",xb=a=>a==="length"||a==="size"||a==="bg-size",Sb=a=>a==="length",CT=a=>a==="number",wT=a=>a==="family-name",Cb=a=>a==="shadow",jT=()=>{const a=ot("color"),i=ot("font"),l=ot("text"),o=ot("font-weight"),d=ot("tracking"),m=ot("leading"),f=ot("breakpoint"),g=ot("container"),y=ot("spacing"),p=ot("radius"),b=ot("shadow"),x=ot("inset-shadow"),S=ot("text-shadow"),N=ot("drop-shadow"),E=ot("blur"),O=ot("perspective"),k=ot("aspect"),D=ot("ease"),q=ot("animate"),G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...W(),re,oe],P=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],z=()=>[re,oe,y],ee=()=>[Hi,"full","auto",...z()],F=()=>[xa,"none","subgrid",re,oe],ne=()=>["auto",{span:["full",xa,re,oe]},xa,re,oe],ce=()=>[xa,"auto",re,oe],Ee=()=>["auto","min","max","fr",re,oe],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...z()],U=()=>[Hi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],A=()=>[a,re,oe],ie=()=>[...W(),Cg,Sg,{position:[re,oe]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",xT,gT,{size:[re,oe]}],H=()=>[_c,Ws,Ka],$=()=>["","none","full",p,re,oe],ae=()=>["",we,Ws,Ka],fe=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[we,_c,Cg,Sg],Ke=()=>["","none",E,re,oe],Oe=()=>["none",we,re,oe],Qt=()=>["none",we,re,oe],un=()=>[we,re,oe],st=()=>[Hi,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[fT],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[yT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",we],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hi,oe,re,k]}],container:["container"],columns:[{columns:[we,oe,re,g]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:Q()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[xa,"auto",re,oe]}],basis:[{basis:[Hi,"full","auto",g,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Hi,"auto","initial","none",oe]}],grow:[{grow:["",we,re,oe]}],shrink:[{shrink:["",we,re,oe]}],order:[{order:[xa,"first","last","none",re,oe]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ee()}],"auto-rows":[{"auto-rows":Ee()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[g,"screen",...U()]}],"min-w":[{"min-w":[g,"screen","none",...U()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[f]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",l,Ws,Ka]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,re,kc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_c,oe]}],"font-family":[{font:[vT,oe,i]}],"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:[d,re,oe]}],"line-clamp":[{"line-clamp":[we,"none",re,kc]}],leading:[{leading:[m,...z()]}],"list-image":[{"list-image":["none",re,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",re,Ka]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[we,"auto",re,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,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",re,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:ie()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xa,re,oe],radial:["",re,oe],conic:[xa,re,oe]},ST,bT]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,re,oe]}],"outline-w":[{outline:["",we,Ws,Ka]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",b,Bo,ko]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",x,Bo,ko]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[we,Ka]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",S,Bo,ko]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[we,re,oe]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[re,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":W()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,oe]}],filter:[{filter:["","none",re,oe]}],blur:[{blur:Ke()}],brightness:[{brightness:[we,re,oe]}],contrast:[{contrast:[we,re,oe]}],"drop-shadow":[{"drop-shadow":["","none",N,Bo,ko]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",we,re,oe]}],"hue-rotate":[{"hue-rotate":[we,re,oe]}],invert:[{invert:["",we,re,oe]}],saturate:[{saturate:[we,re,oe]}],sepia:[{sepia:["",we,re,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",re,oe]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[we,re,oe]}],"backdrop-contrast":[{"backdrop-contrast":[we,re,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,re,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,re,oe]}],"backdrop-invert":[{"backdrop-invert":["",we,re,oe]}],"backdrop-opacity":[{"backdrop-opacity":[we,re,oe]}],"backdrop-saturate":[{"backdrop-saturate":[we,re,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",we,re,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",re,oe]}],ease:[{ease:["linear","initial",D,re,oe]}],delay:[{delay:[we,re,oe]}],animate:[{animate:["none",q,re,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,re,oe]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Qt()}],"scale-x":[{"scale-x":Qt()}],"scale-y":[{"scale-y":Qt()}],"scale-z":[{"scale-z":Qt()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[re,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:st()}],"translate-x":[{"translate-x":st()}],"translate-y":[{"translate-y":st()}],"translate-z":[{"translate-z":st()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",re,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":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",re,oe]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[we,Ws,Ka,kc]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},TT=iT(jT);function J(...a){return TT(Bj(a))}const Ye=md.forwardRef(({variant:a="primary",size:i="md",loading:l,icon:o,animate:d=!0,className:m,children:f,disabled:g,...y},p)=>{const b=d!==!1,x="inline-flex items-center justify-center gap-2 font-medium rounded-md transition-all duration-200 touch-target disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.98] flex-shrink-0 whitespace-nowrap",S={primary:"bg-primary text-white hover:bg-primary-dark active:bg-primary-dark/90 shadow-sm",secondary:"bg-secondary text-foreground hover:bg-border active:bg-border-dark",outline:"bg-transparent text-primary border-1 border-primary hover:bg-secondary active:bg-border",ghost:"bg-transparent text-primary hover:bg-secondary active:bg-border",danger:"bg-error text-white hover:bg-red-600 active:bg-red-700 shadow-sm"},N={sm:"px-3 py-2 text-sm min-h-[2.25rem]",md:"px-4 py-2.5 text-base min-h-[2.75rem]",lg:"px-6 py-3.5 text-lg min-h-[3.25rem]"};return c.jsxs(me.button,{ref:p,whileTap:b?{scale:g||l?1:.98}:void 0,className:J(x,S[a],N[i],m),disabled:g||l,...y,children:[l?c.jsx(ub,{className:J("h-5 w-5",b&&"animate-spin")}):o?c.jsx("span",{className:"shrink-0",children:o}):null,f]})});Ye.displayName="Button";var wb=Ng();const on=({open:a,anchorRef:i,placement:l,children:o,className:d,offset:m=8,matchWidth:f=!0})=>{const[g,y]=T.useState(!1),[p,b]=T.useState(null);T.useEffect(()=>(y(!0),()=>y(!1)),[]);const x=T.useCallback(()=>{if(!a||!i.current)return;const S=i.current.getBoundingClientRect();b({position:"fixed",top:l==="top"?S.top-m:S.bottom+m,left:S.left,width:f?S.width:void 0,zIndex:70})},[i,f,m,a,l]);return T.useEffect(()=>{if(a)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[a,x]),!g||!a||!p?null:wb.createPortal(c.jsx("div",{style:p,onMouseDown:S=>S.stopPropagation(),className:J(l==="top"&&"-translate-y-full",d),children:o}),document.body)},jb=({value:a,onChange:i,label:l,required:o,placeholder:d="Select date",error:m,hint:f,disabled:g,minDate:y,maxDate:p,className:b,animate:x=!0})=>{const S=x!==!1,[N,E]=T.useState(!1),[O,k]=T.useState("bottom"),[D,q]=T.useState(!1),[G,W]=T.useState("bottom"),[Q,P]=T.useState(!1),[X,z]=T.useState("bottom"),[ee,F]=T.useState(a||new Date),ne=T.useRef(null),ce=T.useRef(null),Ee=T.useRef(null),ye=T.useRef(null),te=T.useRef(null),R=T.useRef(null);T.useEffect(()=>{const I=be=>{ne.current&&!ne.current.contains(be.target)&&(E(!1),q(!1),P(!1))};return N&&document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}},[N]),T.useEffect(()=>{N||(q(!1),P(!1))},[N]),T.useEffect(()=>{if(!N)return;const I=()=>{if(!ce.current)return;const be=ce.current.getBoundingClientRect(),Ne=430,cn=window.innerHeight-be.bottom-8,jt=be.top-8;if(cn>=Ne){k("bottom");return}if(jt>=Ne){k("top");return}k("bottom")};return I(),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[N]),T.useEffect(()=>{if(!D)return;const I=ee.getMonth();ye.current?.querySelector(`button[data-month="${I}"]`)?.scrollIntoView({block:"center"})},[D,ee]),T.useEffect(()=>{if(!Q)return;const I=ee.getFullYear();R.current?.querySelector(`button[data-year="${I}"]`)?.scrollIntoView({block:"center"})},[Q,ee]);const U=["January","February","March","April","May","June","July","August","September","October","November","December"],A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ie=I=>{const be=I.getFullYear(),Ne=I.getMonth(),cn=new Date(be,Ne,1),Tt=new Date(be,Ne+1,0).getDate(),tr=cn.getDay(),ti=[];for(let Tn=0;Tn<tr;Tn++)ti.push(null);for(let Tn=1;Tn<=Tt;Tn++)ti.push(new Date(be,Ne,Tn));return ti},de=()=>{F(new Date(ee.getFullYear(),ee.getMonth()-1,1))},w=()=>{F(new Date(ee.getFullYear(),ee.getMonth()+1,1))},H=I=>{F(new Date(ee.getFullYear(),I,1)),q(!1)},$=I=>{F(new Date(I,ee.getMonth(),1)),P(!1)},ae=()=>{if(q(!1),!Q&&te.current){const I=te.current.getBoundingClientRect(),be=window.innerHeight-I.bottom,Ne=I.top;z(be<220&&Ne>be?"top":"bottom")}P(I=>!I)},fe=()=>{if(P(!1),!D&&Ee.current){const I=Ee.current.getBoundingClientRect(),be=window.innerHeight-I.bottom,Ne=I.top;W(be<220&&Ne>be?"top":"bottom")}q(I=>!I)},le=I=>{i(I),E(!1)},he=I=>!!(y&&I<y||p&&I>p),Ke=(I,be)=>!I||!be?!1:I.getDate()===be.getDate()&&I.getMonth()===be.getMonth()&&I.getFullYear()===be.getFullYear(),Oe=I=>I?Ke(I,new Date):!1,Qt=I=>I?I.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"",un=ie(ee),st=ee.getFullYear(),jn=ee.getMonth(),gn=y?y.getFullYear():st-100,es=p?p.getFullYear():st+20,Ia=Array.from({length:es-gn+1},(I,be)=>gn+be),fl=I=>{if(y){const be=y.getFullYear(),Ne=y.getMonth();if(st===be&&I<Ne)return!0}if(p){const be=p.getFullYear(),Ne=p.getMonth();if(st===be&&I>Ne)return!0}return!1},ei=O==="bottom"?{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}}:{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}};return c.jsxs("div",{ref:ne,className:J("relative w-full",b),children:[l&&c.jsxs("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:[l,o&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("button",{ref:ce,type:"button",onClick:()=>!g&&E(!N),disabled:g,"aria-required":o,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",m&&"border-error",!m&&"border-border",N&&"ring-2 ring-primary"),children:[c.jsx("span",{className:J("truncate",!a&&"text-foreground/50"),children:a?Qt(a):d}),c.jsx(Pw,{className:"w-5 h-5 text-primary shrink-0"})]}),S?c.jsx(rn,{children:N?c.jsx(on,{open:N,anchorRef:ce,placement:O,matchWidth:!1,children:c.jsxs(me.div,{initial:ei.initial,animate:ei.animate,exit:ei.exit,transition:{duration:.2},className:"z-50 w-80 bg-background rounded-md border border-border shadow-lg p-3",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 border-border mb-3",children:[c.jsx("button",{type:"button",onClick:de,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(rd,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:Ee,type:"button",onClick:fe,className:"h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":D,children:[c.jsx("span",{className:"truncate",children:U[jn]}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",D&&"rotate-180")})]}),D&&c.jsx("div",{ref:ye,role:"listbox",className:J("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",G==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:U.map((I,be)=>{const Ne=fl(be);return c.jsx("button",{type:"button",role:"option","data-month":be,"aria-selected":be===jn,onClick:()=>!Ne&&H(be),disabled:Ne,className:J("w-full px-3 py-2 text-sm text-left transition-colors",!Ne&&"hover:bg-secondary",be===jn&&"bg-border text-foreground font-medium",Ne&&"text-border-dark cursor-not-allowed"),children:I},I)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:te,type:"button",onClick:ae,className:"h-8 min-w-20 max-w-24 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Q,children:[c.jsx("span",{children:st}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",Q&&"rotate-180")})]}),Q&&c.jsx("div",{ref:R,role:"listbox",className:J("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",X==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Ia.map(I=>c.jsx("button",{type:"button",role:"option","data-year":I,"aria-selected":I===st,onClick:()=>$(I),className:J("w-full px-3 py-2 text-sm text-left hover:bg-secondary transition-colors",I===st&&"bg-border text-foreground font-medium"),children:I},I))})]})]}),c.jsx("button",{type:"button",onClick:w,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(od,{className:"w-5 h-5 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border",children:A.map(I=>c.jsx("div",{className:"text-center text-[11px] font-medium text-foreground/70 py-1",children:I},I))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:un.map((I,be)=>{if(!I)return c.jsx("div",{className:"aspect-square"},`empty-${be}`);const Ne=Ke(I,a||null),cn=Oe(I),jt=he(I);return c.jsx(me.button,{type:"button",whileTap:S?{scale:jt?1:.95}:void 0,onClick:()=>!jt&&le(I),disabled:jt,className:J("aspect-square cursor-pointer rounded-lg flex items-center justify-center","text-[11px] font-medium transition-all duration-200","hover:bg-secondary",Ne&&"bg-primary text-white hover:bg-primary-dark",cn&&!Ne&&"border-2 border-primary text-primary",jt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Ne&&!cn&&!jt&&"text-foreground"),children:I.getDate()},I.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-border",children:c.jsx("button",{type:"button",onClick:()=>le(new Date),className:"w-full py-1.5 text-xs font-medium text-primary cursor-pointer hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}):null}):N&&c.jsx(on,{open:N,anchorRef:ce,placement:O,matchWidth:!1,children:c.jsxs("div",{className:"z-50 w-80 bg-background rounded-md border border-border shadow-lg p-3",children:[c.jsxs("div",{className:"grid grid-cols-[auto_1fr_auto] items-center gap-1.5 mb-3",children:[c.jsx("button",{type:"button",onClick:de,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(rd,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{className:"flex items-center justify-center gap-1 min-w-0",children:[c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:Ee,type:"button",onClick:fe,className:"h-8 min-w-24 max-w-28 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select month","aria-haspopup":"listbox","aria-expanded":D,children:[c.jsx("span",{className:"truncate",children:U[jn]}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",D&&"rotate-180")})]}),D&&c.jsx("div",{ref:ye,role:"listbox",className:J("absolute z-60 w-36 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",G==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:U.map((I,be)=>{const Ne=fl(be);return c.jsx("button",{type:"button",role:"option","data-month":be,"aria-selected":be===jn,onClick:()=>!Ne&&H(be),disabled:Ne,className:J("w-full px-3 py-2 text-sm text-left transition-colors",!Ne&&"hover:bg-secondary",be===jn&&"bg-border text-foreground font-medium",Ne&&"text-border-dark cursor-not-allowed"),children:I},I)})})]}),c.jsxs("div",{className:"relative",children:[c.jsxs("button",{ref:te,type:"button",onClick:ae,className:"h-8 min-w-20 max-w-24 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground focus:outline-none focus:ring-2 focus:ring-primary flex items-center justify-between gap-1","aria-label":"Select year","aria-haspopup":"listbox","aria-expanded":Q,children:[c.jsx("span",{children:st}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",Q&&"rotate-180")})]}),Q&&c.jsx("div",{ref:R,role:"listbox",className:J("absolute z-60 w-28 rounded-md border border-border bg-background shadow-lg py-1 max-h-56 overflow-y-auto",X==="bottom"?"top-full mt-1":"bottom-full mb-1"),children:Ia.map(I=>c.jsx("button",{type:"button",role:"option","data-year":I,"aria-selected":I===st,onClick:()=>$(I),className:J("w-full px-3 py-2 text-sm text-left hover:bg-secondary transition-colors",I===st&&"bg-border text-foreground font-medium"),children:I},I))})]})]}),c.jsx("button",{type:"button",onClick:w,className:"h-8 w-8 inline-flex items-center justify-center hover:bg-secondary rounded-lg transition-colors",children:c.jsx(od,{className:"w-5 h-5 text-primary"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-1 mb-1 pb-1 border-b border-border",children:A.map(I=>c.jsx("div",{className:"text-center text-[11px] font-medium text-primary/70 py-1",children:I},I))}),c.jsx("div",{className:"grid grid-cols-7 gap-1",children:un.map((I,be)=>{if(!I)return c.jsx("div",{className:"aspect-square"},`empty-${be}`);const Ne=Ke(I,a||null),cn=Oe(I),jt=he(I);return c.jsx("button",{type:"button",onClick:()=>!jt&&le(I),disabled:jt,className:J("aspect-square rounded-lg flex items-center justify-center","text-[11px] font-medium transition-all duration-200","hover:bg-secondary",Ne&&"bg-primary text-white hover:bg-primary-dark",cn&&!Ne&&"border-2 border-primary text-primary",jt&&"text-border-dark cursor-not-allowed hover:bg-transparent",!Ne&&!cn&&!jt&&"text-foreground"),children:I.getDate()},I.toISOString())})}),c.jsx("div",{className:"mt-1.5 pt-1.5 border-t border-border",children:c.jsx("button",{type:"button",onClick:()=>le(new Date),className:"w-full py-1.5 text-xs font-medium text-primary hover:bg-secondary rounded-lg transition-colors",children:"Today"})})]})}),m&&c.jsx(me.p,{...S?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"mt-1.5 text-sm text-primary/70",children:f})]})},Qn=[{iso2:"AF",name:"Afghanistan",dialCode:"+93"},{iso2:"AL",name:"Albania",dialCode:"+355"},{iso2:"DZ",name:"Algeria",dialCode:"+213"},{iso2:"AS",name:"American Samoa",dialCode:"+1-684"},{iso2:"AD",name:"Andorra",dialCode:"+376"},{iso2:"AO",name:"Angola",dialCode:"+244"},{iso2:"AI",name:"Anguilla",dialCode:"+1-264"},{iso2:"AQ",name:"Antarctica",dialCode:"+672"},{iso2:"AG",name:"Antigua and Barbuda",dialCode:"+1-268"},{iso2:"AR",name:"Argentina",dialCode:"+54"},{iso2:"AM",name:"Armenia",dialCode:"+374"},{iso2:"AW",name:"Aruba",dialCode:"+297"},{iso2:"AU",name:"Australia",dialCode:"+61"},{iso2:"AT",name:"Austria",dialCode:"+43"},{iso2:"AZ",name:"Azerbaijan",dialCode:"+994"},{iso2:"BS",name:"Bahamas",dialCode:"+1-242"},{iso2:"BH",name:"Bahrain",dialCode:"+973"},{iso2:"BD",name:"Bangladesh",dialCode:"+880"},{iso2:"BB",name:"Barbados",dialCode:"+1-246"},{iso2:"BY",name:"Belarus",dialCode:"+375"},{iso2:"BE",name:"Belgium",dialCode:"+32"},{iso2:"BZ",name:"Belize",dialCode:"+501"},{iso2:"BJ",name:"Benin",dialCode:"+229"},{iso2:"BM",name:"Bermuda",dialCode:"+1-441"},{iso2:"BT",name:"Bhutan",dialCode:"+975"},{iso2:"BO",name:"Bolivia",dialCode:"+591"},{iso2:"BA",name:"Bosnia and Herzegovina",dialCode:"+387"},{iso2:"BW",name:"Botswana",dialCode:"+267"},{iso2:"BR",name:"Brazil",dialCode:"+55"},{iso2:"IO",name:"British Indian Ocean Territory",dialCode:"+246"},{iso2:"BN",name:"Brunei",dialCode:"+673"},{iso2:"BG",name:"Bulgaria",dialCode:"+359"},{iso2:"BF",name:"Burkina Faso",dialCode:"+226"},{iso2:"BI",name:"Burundi",dialCode:"+257"},{iso2:"KH",name:"Cambodia",dialCode:"+855"},{iso2:"CM",name:"Cameroon",dialCode:"+237"},{iso2:"CA",name:"Canada",dialCode:"+1"},{iso2:"CV",name:"Cape Verde",dialCode:"+238"},{iso2:"KY",name:"Cayman Islands",dialCode:"+1-345"},{iso2:"CF",name:"Central African Republic",dialCode:"+236"},{iso2:"TD",name:"Chad",dialCode:"+235"},{iso2:"CL",name:"Chile",dialCode:"+56"},{iso2:"CN",name:"China",dialCode:"+86"},{iso2:"CX",name:"Christmas Island",dialCode:"+61"},{iso2:"CC",name:"Cocos (Keeling) Islands",dialCode:"+61"},{iso2:"CO",name:"Colombia",dialCode:"+57"},{iso2:"KM",name:"Comoros",dialCode:"+269"},{iso2:"CG",name:"Congo",dialCode:"+242"},{iso2:"CD",name:"Congo, Democratic Republic",dialCode:"+243"},{iso2:"CK",name:"Cook Islands",dialCode:"+682"},{iso2:"CR",name:"Costa Rica",dialCode:"+506"},{iso2:"CI",name:"Cote d'Ivoire",dialCode:"+225"},{iso2:"HR",name:"Croatia",dialCode:"+385"},{iso2:"CU",name:"Cuba",dialCode:"+53"},{iso2:"CY",name:"Cyprus",dialCode:"+357"},{iso2:"CZ",name:"Czech Republic",dialCode:"+420"},{iso2:"DK",name:"Denmark",dialCode:"+45"},{iso2:"DJ",name:"Djibouti",dialCode:"+253"},{iso2:"DM",name:"Dominica",dialCode:"+1-767"},{iso2:"DO",name:"Dominican Republic",dialCode:"+1-809"},{iso2:"EC",name:"Ecuador",dialCode:"+593"},{iso2:"EG",name:"Egypt",dialCode:"+20"},{iso2:"SV",name:"El Salvador",dialCode:"+503"},{iso2:"GQ",name:"Equatorial Guinea",dialCode:"+240"},{iso2:"ER",name:"Eritrea",dialCode:"+291"},{iso2:"EE",name:"Estonia",dialCode:"+372"},{iso2:"ET",name:"Ethiopia",dialCode:"+251"},{iso2:"FK",name:"Falkland Islands",dialCode:"+500"},{iso2:"FO",name:"Faroe Islands",dialCode:"+298"},{iso2:"FJ",name:"Fiji",dialCode:"+679"},{iso2:"FI",name:"Finland",dialCode:"+358"},{iso2:"FR",name:"France",dialCode:"+33"},{iso2:"GF",name:"French Guiana",dialCode:"+594"},{iso2:"PF",name:"French Polynesia",dialCode:"+689"},{iso2:"GA",name:"Gabon",dialCode:"+241"},{iso2:"GM",name:"Gambia",dialCode:"+220"},{iso2:"GE",name:"Georgia",dialCode:"+995"},{iso2:"DE",name:"Germany",dialCode:"+49"},{iso2:"GH",name:"Ghana",dialCode:"+233"},{iso2:"GI",name:"Gibraltar",dialCode:"+350"},{iso2:"GR",name:"Greece",dialCode:"+30"},{iso2:"GL",name:"Greenland",dialCode:"+299"},{iso2:"GD",name:"Grenada",dialCode:"+1-473"},{iso2:"GP",name:"Guadeloupe",dialCode:"+590"},{iso2:"GU",name:"Guam",dialCode:"+1-671"},{iso2:"GT",name:"Guatemala",dialCode:"+502"},{iso2:"GG",name:"Guernsey",dialCode:"+44-1481"},{iso2:"GN",name:"Guinea",dialCode:"+224"},{iso2:"GW",name:"Guinea-Bissau",dialCode:"+245"},{iso2:"GY",name:"Guyana",dialCode:"+592"},{iso2:"HT",name:"Haiti",dialCode:"+509"},{iso2:"HN",name:"Honduras",dialCode:"+504"},{iso2:"HK",name:"Hong Kong",dialCode:"+852"},{iso2:"HU",name:"Hungary",dialCode:"+36"},{iso2:"IS",name:"Iceland",dialCode:"+354"},{iso2:"IN",name:"India",dialCode:"+91"},{iso2:"ID",name:"Indonesia",dialCode:"+62"},{iso2:"IR",name:"Iran",dialCode:"+98"},{iso2:"IQ",name:"Iraq",dialCode:"+964"},{iso2:"IE",name:"Ireland",dialCode:"+353"},{iso2:"IM",name:"Isle of Man",dialCode:"+44-1624"},{iso2:"IL",name:"Israel",dialCode:"+972"},{iso2:"IT",name:"Italy",dialCode:"+39"},{iso2:"JM",name:"Jamaica",dialCode:"+1-876"},{iso2:"JP",name:"Japan",dialCode:"+81"},{iso2:"JE",name:"Jersey",dialCode:"+44-1534"},{iso2:"JO",name:"Jordan",dialCode:"+962"},{iso2:"KZ",name:"Kazakhstan",dialCode:"+7"},{iso2:"KE",name:"Kenya",dialCode:"+254"},{iso2:"KI",name:"Kiribati",dialCode:"+686"},{iso2:"KP",name:"Korea, North",dialCode:"+850"},{iso2:"KR",name:"Korea, South",dialCode:"+82"},{iso2:"KW",name:"Kuwait",dialCode:"+965"},{iso2:"KG",name:"Kyrgyzstan",dialCode:"+996"},{iso2:"LA",name:"Laos",dialCode:"+856"},{iso2:"LV",name:"Latvia",dialCode:"+371"},{iso2:"LB",name:"Lebanon",dialCode:"+961"},{iso2:"LS",name:"Lesotho",dialCode:"+266"},{iso2:"LR",name:"Liberia",dialCode:"+231"},{iso2:"LY",name:"Libya",dialCode:"+218"},{iso2:"LI",name:"Liechtenstein",dialCode:"+423"},{iso2:"LT",name:"Lithuania",dialCode:"+370"},{iso2:"LU",name:"Luxembourg",dialCode:"+352"},{iso2:"MO",name:"Macau",dialCode:"+853"},{iso2:"MK",name:"North Macedonia",dialCode:"+389"},{iso2:"MG",name:"Madagascar",dialCode:"+261"},{iso2:"MW",name:"Malawi",dialCode:"+265"},{iso2:"MY",name:"Malaysia",dialCode:"+60"},{iso2:"MV",name:"Maldives",dialCode:"+960"},{iso2:"ML",name:"Mali",dialCode:"+223"},{iso2:"MT",name:"Malta",dialCode:"+356"},{iso2:"MH",name:"Marshall Islands",dialCode:"+692"},{iso2:"MQ",name:"Martinique",dialCode:"+596"},{iso2:"MR",name:"Mauritania",dialCode:"+222"},{iso2:"MU",name:"Mauritius",dialCode:"+230"},{iso2:"YT",name:"Mayotte",dialCode:"+262"},{iso2:"MX",name:"Mexico",dialCode:"+52"},{iso2:"FM",name:"Micronesia",dialCode:"+691"},{iso2:"MD",name:"Moldova",dialCode:"+373"},{iso2:"MC",name:"Monaco",dialCode:"+377"},{iso2:"MN",name:"Mongolia",dialCode:"+976"},{iso2:"ME",name:"Montenegro",dialCode:"+382"},{iso2:"MS",name:"Montserrat",dialCode:"+1-664"},{iso2:"MA",name:"Morocco",dialCode:"+212"},{iso2:"MZ",name:"Mozambique",dialCode:"+258"},{iso2:"MM",name:"Myanmar",dialCode:"+95"},{iso2:"NA",name:"Namibia",dialCode:"+264"},{iso2:"NR",name:"Nauru",dialCode:"+674"},{iso2:"NP",name:"Nepal",dialCode:"+977"},{iso2:"NL",name:"Netherlands",dialCode:"+31"},{iso2:"NC",name:"New Caledonia",dialCode:"+687"},{iso2:"NZ",name:"New Zealand",dialCode:"+64"},{iso2:"NI",name:"Nicaragua",dialCode:"+505"},{iso2:"NE",name:"Niger",dialCode:"+227"},{iso2:"NG",name:"Nigeria",dialCode:"+234"},{iso2:"NU",name:"Niue",dialCode:"+683"},{iso2:"NF",name:"Norfolk Island",dialCode:"+672"},{iso2:"MP",name:"Northern Mariana Islands",dialCode:"+1-670"},{iso2:"NO",name:"Norway",dialCode:"+47"},{iso2:"OM",name:"Oman",dialCode:"+968"},{iso2:"PK",name:"Pakistan",dialCode:"+92"},{iso2:"PW",name:"Palau",dialCode:"+680"},{iso2:"PS",name:"Palestine",dialCode:"+970"},{iso2:"PA",name:"Panama",dialCode:"+507"},{iso2:"PG",name:"Papua New Guinea",dialCode:"+675"},{iso2:"PY",name:"Paraguay",dialCode:"+595"},{iso2:"PE",name:"Peru",dialCode:"+51"},{iso2:"PH",name:"Philippines",dialCode:"+63"},{iso2:"PN",name:"Pitcairn",dialCode:"+64"},{iso2:"PL",name:"Poland",dialCode:"+48"},{iso2:"PT",name:"Portugal",dialCode:"+351"},{iso2:"PR",name:"Puerto Rico",dialCode:"+1-787"},{iso2:"QA",name:"Qatar",dialCode:"+974"},{iso2:"RE",name:"Reunion",dialCode:"+262"},{iso2:"RO",name:"Romania",dialCode:"+40"},{iso2:"RU",name:"Russia",dialCode:"+7"},{iso2:"RW",name:"Rwanda",dialCode:"+250"},{iso2:"BL",name:"Saint Barthelemy",dialCode:"+590"},{iso2:"SH",name:"Saint Helena",dialCode:"+290"},{iso2:"KN",name:"Saint Kitts and Nevis",dialCode:"+1-869"},{iso2:"LC",name:"Saint Lucia",dialCode:"+1-758"},{iso2:"MF",name:"Saint Martin",dialCode:"+590"},{iso2:"PM",name:"Saint Pierre and Miquelon",dialCode:"+508"},{iso2:"VC",name:"Saint Vincent and the Grenadines",dialCode:"+1-784"},{iso2:"WS",name:"Samoa",dialCode:"+685"},{iso2:"SM",name:"San Marino",dialCode:"+378"},{iso2:"ST",name:"Sao Tome and Principe",dialCode:"+239"},{iso2:"SA",name:"Saudi Arabia",dialCode:"+966"},{iso2:"SN",name:"Senegal",dialCode:"+221"},{iso2:"RS",name:"Serbia",dialCode:"+381"},{iso2:"SC",name:"Seychelles",dialCode:"+248"},{iso2:"SL",name:"Sierra Leone",dialCode:"+232"},{iso2:"SG",name:"Singapore",dialCode:"+65"},{iso2:"SX",name:"Sint Maarten",dialCode:"+1-721"},{iso2:"SK",name:"Slovakia",dialCode:"+421"},{iso2:"SI",name:"Slovenia",dialCode:"+386"},{iso2:"SB",name:"Solomon Islands",dialCode:"+677"},{iso2:"SO",name:"Somalia",dialCode:"+252"},{iso2:"ZA",name:"South Africa",dialCode:"+27"},{iso2:"GS",name:"South Georgia and the South Sandwich Islands",dialCode:"+500"},{iso2:"SS",name:"South Sudan",dialCode:"+211"},{iso2:"ES",name:"Spain",dialCode:"+34"},{iso2:"LK",name:"Sri Lanka",dialCode:"+94"},{iso2:"SD",name:"Sudan",dialCode:"+249"},{iso2:"SR",name:"Suriname",dialCode:"+597"},{iso2:"SJ",name:"Svalbard and Jan Mayen",dialCode:"+47"},{iso2:"SZ",name:"Swaziland",dialCode:"+268"},{iso2:"SE",name:"Sweden",dialCode:"+46"},{iso2:"CH",name:"Switzerland",dialCode:"+41"},{iso2:"SY",name:"Syria",dialCode:"+963"},{iso2:"TW",name:"Taiwan",dialCode:"+886"},{iso2:"TJ",name:"Tajikistan",dialCode:"+992"},{iso2:"TZ",name:"Tanzania",dialCode:"+255"},{iso2:"TH",name:"Thailand",dialCode:"+66"},{iso2:"TL",name:"Timor-Leste",dialCode:"+670"},{iso2:"TG",name:"Togo",dialCode:"+228"},{iso2:"TK",name:"Tokelau",dialCode:"+690"},{iso2:"TO",name:"Tonga",dialCode:"+676"},{iso2:"TT",name:"Trinidad and Tobago",dialCode:"+1-868"},{iso2:"TN",name:"Tunisia",dialCode:"+216"},{iso2:"TR",name:"Turkey",dialCode:"+90"},{iso2:"TM",name:"Turkmenistan",dialCode:"+993"},{iso2:"TC",name:"Turks and Caicos Islands",dialCode:"+1-649"},{iso2:"TV",name:"Tuvalu",dialCode:"+688"},{iso2:"UG",name:"Uganda",dialCode:"+256"},{iso2:"UA",name:"Ukraine",dialCode:"+380"},{iso2:"AE",name:"United Arab Emirates",dialCode:"+971"},{iso2:"GB",name:"United Kingdom",dialCode:"+44"},{iso2:"US",name:"United States",dialCode:"+1"},{iso2:"UY",name:"Uruguay",dialCode:"+598"},{iso2:"UZ",name:"Uzbekistan",dialCode:"+998"},{iso2:"VU",name:"Vanuatu",dialCode:"+678"},{iso2:"VA",name:"Vatican City",dialCode:"+379"},{iso2:"VE",name:"Venezuela",dialCode:"+58"},{iso2:"VN",name:"Vietnam",dialCode:"+84"},{iso2:"VG",name:"British Virgin Islands",dialCode:"+1-284"},{iso2:"VI",name:"US Virgin Islands",dialCode:"+1-340"},{iso2:"WF",name:"Wallis and Futuna",dialCode:"+681"},{iso2:"EH",name:"Western Sahara",dialCode:"+212"},{iso2:"YE",name:"Yemen",dialCode:"+967"},{iso2:"ZM",name:"Zambia",dialCode:"+260"},{iso2:"ZW",name:"Zimbabwe",dialCode:"+263"}],Bc=a=>{const i=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...i)},Jd=({value:a,onChange:i,onCountryChange:l,label:o="Country",required:d,placeholder:m="Select country",error:f,hint:g,searchable:y=!0,clearable:p=!0,showFlags:b=!0,disabled:x,animate:S=!0,className:N})=>{const E=S!==!1,[O,k]=T.useState(!1),[D,q]=T.useState(""),[G,W]=T.useState("bottom"),Q=T.useRef(null),P=T.useRef(null),X=T.useMemo(()=>Qn.find(ne=>ne.iso2===a),[a]),z=T.useMemo(()=>{if(!y||!D.trim())return Qn;const ne=D.toLowerCase();return Qn.filter(ce=>ce.name.toLowerCase().includes(ne)||ce.iso2.toLowerCase().includes(ne)||ce.dialCode.replace(/\s/g,"").includes(ne.replace(/\s/g,"")))},[D,y]);T.useEffect(()=>{const ne=ce=>{Q.current&&!Q.current.contains(ce.target)&&(k(!1),q(""))};return document.addEventListener("mousedown",ne),()=>document.removeEventListener("mousedown",ne)},[]),T.useEffect(()=>{if(!O)return;const ne=()=>{if(!P.current)return;const ce=P.current.getBoundingClientRect(),Ee=y?360:300,ye=window.innerHeight-ce.bottom-8,te=ce.top-8;if(ye>=Ee){W("bottom");return}if(te>=Ee){W("top");return}W("bottom")};return ne(),window.addEventListener("resize",ne),window.addEventListener("scroll",ne,!0),()=>{window.removeEventListener("resize",ne),window.removeEventListener("scroll",ne,!0)}},[O,y]);const ee=ne=>{i?.(ne);const ce=Qn.find(Ee=>Ee.iso2===ne);ce&&l?.(ce),k(!1),q("")},F=G==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:Q,className:J("w-full space-y-1.5",N),children:[o&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[o,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:P,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!x&&k(!O),disabled:x,"aria-haspopup":"listbox","aria-expanded":O,"aria-required":d,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",f&&"border-error focus:ring-error",O&&"ring-2 ring-primary",!f&&(x?"opacity-50":"border-border"),f&&x&&"opacity-50"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[b&&X&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(X.iso2)}),c.jsx("span",{className:J("truncate",!X&&"text-foreground/50"),children:X?X.name:m})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",O&&"rotate-180")})]}),E?c.jsx(rn,{children:O?c.jsx(on,{open:O,anchorRef:P,placement:G,children:c.jsxs(me.div,{initial:F.initial,animate:F.animate,exit:F.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:D,onChange:ne=>q(ne.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),D&&c.jsx("button",{type:"button",onClick:()=>q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>ee(""),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),z.map(ne=>c.jsxs("button",{type:"button",role:"option","aria-selected":ne.iso2===X?.iso2,onClick:()=>ee(ne.iso2),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",ne.iso2===X?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(ne.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:ne.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:ne.dialCode})]},ne.iso2))]})]})}):null}):O&&c.jsx(on,{open:O,anchorRef:P,placement:G,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[y&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:D,onChange:ne=>q(ne.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),D&&c.jsx("button",{type:"button",onClick:()=>q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[p&&c.jsx("button",{type:"button",role:"option","aria-selected":!a,onClick:()=>ee(""),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!a&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),z.map(ne=>c.jsxs("button",{type:"button",role:"option","aria-selected":ne.iso2===X?.iso2,onClick:()=>ee(ne.iso2),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",ne.iso2===X?.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Bc(ne.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:ne.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:ne.dialCode})]},ne.iso2))]})]})})]}),f&&c.jsx(me.p,{...E?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:f}),g&&!f&&c.jsx("p",{className:"text-sm text-primary/70",children:g})]})};Jd.displayName="CountrySelect";const Lc=a=>{const i=a.toUpperCase().split("").map(l=>127397+l.charCodeAt(0));return String.fromCodePoint(...i)},NT=()=>{if(typeof navigator>"u")return null;const i=(navigator.language||"").match(/[-_](\w{2})$/);return i?i[1].toUpperCase():null},Yo=a=>a.replace(/\s/g,""),wg=a=>{const i=a.replace(/\s/g,"");return i.startsWith("+")?[...Qn].sort((o,d)=>Yo(d.dialCode).length-Yo(o.dialCode).length).find(o=>{const d=Yo(o.dialCode);return i.startsWith(d)}):void 0},Tb=({value:a,onChange:i,country:l,defaultCountry:o="US",autoDetect:d=!0,onCountryChange:m,label:f,error:g,hint:y,searchable:p=!0,showFlags:b=!0,animate:x=!0,disabled:S,required:N,className:E,placeholder:O,...k})=>{const D=x!==!1,[q,G]=T.useState(!1),[W,Q]=T.useState(""),[P,X]=T.useState(o),[z,ee]=T.useState("bottom"),F=T.useRef(null),ne=T.useRef(null),ce=T.useRef(null),Ee=T.useRef(!1);T.useEffect(()=>{l&&X(l.toUpperCase())},[l]),T.useEffect(()=>{if(!l&&d){const A=NT();A&&X(A)}},[d,l]),T.useEffect(()=>{const A=ie=>{F.current&&!F.current.contains(ie.target)&&(G(!1),Q(""))};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]);const ye=T.useMemo(()=>{const A=a?wg(a):void 0,ie=(l||P||o).toUpperCase();return Qn.find(de=>de.iso2===ie)||A||Qn[0]},[l,P,o,a]);T.useEffect(()=>{ye&&ce.current!==ye.iso2&&(ce.current=ye.iso2,m?.(ye))},[ye,m]),T.useEffect(()=>{Ee.current||i&&(a??"").trim()===""&&(Ee.current=!0,i(ye.dialCode))},[i,ye.dialCode,a]),T.useEffect(()=>{if(!q)return;const A=()=>{if(!ne.current)return;const ie=ne.current.getBoundingClientRect(),de=p?360:300,w=window.innerHeight-ie.bottom-8,H=ie.top-8;if(w>=de){ee("bottom");return}if(H>=de){ee("top");return}ee("bottom")};return A(),window.addEventListener("resize",A),window.addEventListener("scroll",A,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",A,!0)}},[q,p]);const te=T.useMemo(()=>{if(!p||!W.trim())return Qn;const A=W.toLowerCase();return Qn.filter(ie=>ie.name.toLowerCase().includes(A)||ie.iso2.toLowerCase().includes(A)||ie.dialCode.replace(/\s/g,"").includes(A.replace(/\s/g,"")))},[W,p]),R=A=>{l||X(A.iso2),m?.(A);const ie=(a??"").replace(/\s/g,""),de=wg(ie),w=de?Yo(de.dialCode):"";let H=A.dialCode;ie&&(w&&ie.startsWith(w)?H=`${A.dialCode}${ie.slice(w.length)}`:ie.startsWith("+")?H=`${A.dialCode}${ie.replace(/^\+[\d-]*/,"")}`:H=`${A.dialCode}${ie}`),i?.(H),G(!1),Q("")},U=z==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:F,className:J("w-full space-y-1.5",E),children:[f&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[f,N&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:ne,className:"relative",children:[c.jsxs("div",{className:J("flex items-stretch rounded-md border transition-all duration-200 bg-background overflow-hidden","focus-within:ring-2 focus-within:ring-primary focus-within:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed",g?"border-error":"border-border"),children:[c.jsxs("button",{type:"button",onClick:()=>!S&&G(!q),disabled:S,className:J("flex items-center gap-2 px-3 py-2 text-left","border-r border-border/70","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),"aria-haspopup":"listbox","aria-expanded":q,children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(ye.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground",children:ye.iso2}),c.jsx(Kn,{className:J("w-4 h-4 text-primary transition-transform",q&&"rotate-180")})]}),c.jsx("input",{type:"tel",inputMode:"tel",value:a??"",onChange:A=>i?.(A.target.value),placeholder:O||`${ye.dialCode} Phone number`,disabled:S,required:N,className:J("flex-1 px-4 py-2.5 text-base bg-transparent text-foreground","placeholder:text-foreground/50 focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"),...k})]}),D?c.jsx(rn,{children:q?c.jsx(on,{open:q,anchorRef:ne,placement:z,children:c.jsxs(me.div,{initial:U.initial,animate:U.animate,exit:U.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:W,onChange:A=>Q(A.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),W&&c.jsx("button",{type:"button",onClick:()=>Q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:te.map(A=>c.jsxs("button",{type:"button",role:"option","aria-selected":A.iso2===ye.iso2,onClick:()=>R(A),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",A.iso2===ye.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(A.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:A.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:A.dialCode})]},A.iso2))})]})}):null}):q&&c.jsx(on,{open:q,anchorRef:ne,placement:z,children:c.jsxs("div",{role:"listbox",className:"z-50 w-full max-w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden overflow-x-hidden",children:[p&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search country or code",value:W,onChange:A=>Q(A.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary"}),W&&c.jsx("button",{type:"button",onClick:()=>Q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsx("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:te.map(A=>c.jsxs("button",{type:"button",role:"option","aria-selected":A.iso2===ye.iso2,onClick:()=>R(A),className:J("w-full px-3 py-2 text-left flex items-start gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",A.iso2===ye.iso2&&"bg-border text-foreground"),children:[b&&c.jsx("span",{className:"text-base","aria-hidden":!0,children:Lc(A.iso2)}),c.jsx("span",{className:"text-sm font-medium text-foreground wrap-break-word whitespace-normal",children:A.name}),c.jsx("span",{className:"ml-auto text-xs text-primary/70",children:A.dialCode})]},A.iso2))})]})})]}),g&&c.jsx(me.p,{...D?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:g}),y&&!g&&c.jsx("p",{className:"text-sm text-primary/70",children:y})]})};Tb.displayName="PhoneInput";const Ca=T.forwardRef(({label:a,error:i,hint:l,leftIcon:o,rightIcon:d,animate:m=!0,className:f,type:g,value:y,placeholder:p,disabled:b,required:x,onChange:S,onValueChange:N,...E},O)=>{const k=m!==!1,[D,q]=T.useState(!1),G=P=>{S?.(P),N?.(P)};if(g==="phone")return c.jsx(Tb,{label:a,error:i,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:typeof y=="string"?y:"",onChange:P=>G(P),className:f});if(g==="country")return c.jsx(Jd,{label:a,error:i,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:typeof y=="string"?y:"",onChange:P=>G(P),className:f});if(g==="date")return c.jsx(jb,{label:a,error:i,hint:l,placeholder:p,disabled:b,required:x,animate:m,value:y instanceof Date?y:void 0,onChange:P=>G(P),className:f});const W=g==="password",Q=W&&D?"text":g;return c.jsxs("div",{className:"w-full space-y-1.5",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[a,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{className:"relative",children:[o&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{left:"14px",top:"50%",transform:"translateY(-50%)"},children:o}),c.jsx("input",{ref:O,type:Q,className:J("w-full rounded-md border transition-all duration-200","bg-background text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",i&&"border-error focus:ring-error",!i&&"border-border",f),style:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:o?"44px":"16px",paddingRight:d||W?"44px":"16px"},value:y,onChange:P=>G(P.target.value),placeholder:p,disabled:b,required:x,...E}),W&&c.jsx(me.button,{type:"button",onClick:()=>q(!D),className:"absolute text-primary hover:text-primary-dark transition-colors",style:{right:"14px",top:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-label":D?"Hide password":"Show password",whileTap:k?{scale:.9,y:"-50%"}:void 0,animate:{y:"-50%"},transition:k?{duration:.1}:{duration:0},children:D?c.jsx(oj,{className:"w-5 h-5"}):c.jsx(uj,{className:"w-5 h-5"})}),d&&!W&&c.jsx("div",{className:"absolute flex items-center pointer-events-none text-primary",style:{right:"14px",top:"50%",transform:"translateY(-50%)"},children:d})]}),i&&c.jsx(me.p,{...k?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:i}),l&&!i&&c.jsx("p",{className:"text-sm text-primary/70",children:l})]})});Ca.displayName="Input";const Nb=T.forwardRef(({label:a,error:i,helperText:l,className:o,required:d,animate:m=!0,...f},g)=>{const y=m!==!1;return c.jsxs(me.div,{...y?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"w-full",children:[a&&c.jsxs("label",{className:"block text-sm font-medium text-foreground mb-1.5",children:[a,d&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsx("textarea",{ref:g,className:J("w-full px-4 py-3 bg-background border border-border rounded-md","text-foreground placeholder:text-foreground/50","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 resize-vertical","text-base touch-target",i&&"border-error focus:ring-error",o),...f}),i&&c.jsx(me.p,{...y?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1 text-sm text-error",children:i}),l&&!i&&c.jsx("p",{className:"mt-1 text-sm text-primary/70",children:l})]})});Nb.displayName="Textarea";const Fo=T.forwardRef(({label:a,description:i,className:l,checked:o,defaultChecked:d,onChange:m,animate:f=!0,...g},y)=>{const p=f!==!1,[b,x]=T.useState(d||!1),S=o!==void 0?o:b,N=E=>{o===void 0&&x(E.target.checked),m?.(E.target.checked)};return c.jsxs("label",{className:"flex items-start gap-3 cursor-pointer group",children:[c.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[c.jsx("input",{ref:y,type:"checkbox",className:"sr-only peer",checked:S,onChange:N,...g}),c.jsx(me.div,{className:J("w-6 h-6 rounded-md border-2 transition-all duration-200","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed","flex items-center justify-center",S?"bg-primary border-primary":"border-border bg-secondary",l),whileTap:p?{scale:.95}:void 0,children:c.jsx(ob,{className:J("w-4 h-4 text-white transition-opacity duration-200",S?"opacity-100":"opacity-0")})})]}),(a||i)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground group-hover:text-primary transition-colors",children:a}),i&&c.jsx("div",{className:"text-sm text-primary/70",children:i})]})]})});Fo.displayName="Checkbox";const AT=({options:a,value:i,onChange:l,name:o,disabled:d,className:m,animate:f=!0})=>{const g=f!==!1;return c.jsx("div",{className:J("flex flex-wrap gap-2",m),children:a.map(y=>{const p=i===y.value;return c.jsxs("label",{className:"relative cursor-pointer",children:[c.jsx("input",{type:"radio",name:o,value:y.value,checked:p,onChange:b=>l?.(b.target.value),disabled:d,className:"sr-only peer"}),c.jsxs(me.div,{"data-ripple":"true",whileTap:g?{scale:d?1:.95}:void 0,className:J("px-4 py-2.5 rounded-full border-2 transition-all duration-200","flex items-center gap-2 min-h-11","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",p?"bg-primary border-primary text-white":"bg-background border-border text-primary hover:border-border-dark"),children:[y.icon&&c.jsx("span",{className:"shrink-0",children:y.icon}),c.jsx("span",{className:"font-medium text-base",children:y.label})]})]},y.value)})})},Ab=T.forwardRef(({label:a,description:i,className:l,checked:o,onChange:d,animate:m=!0,...f},g)=>{const y=m!==!1,p=b=>{d?.(b.target.checked)};return c.jsxs("label",{className:"flex items-center justify-between gap-4 cursor-pointer group",children:[(a||i)&&c.jsxs("div",{className:"flex-1 space-y-0.5",children:[a&&c.jsx("div",{className:"text-base font-medium text-foreground",children:a}),i&&c.jsx("div",{className:"text-sm text-primary/70",children:i})]}),c.jsxs("div",{className:"relative flex-shrink-0",children:[c.jsx("input",{ref:g,type:"checkbox",onChange:p,className:"sr-only peer",checked:o,...f}),c.jsx("div",{className:J("w-12 h-7 rounded-full transition-all duration-200 relative","peer-focus:ring-2 peer-focus:ring-primary peer-focus:ring-offset-2","peer-disabled:opacity-50 peer-disabled:cursor-not-allowed",o?"bg-primary":"bg-border-dark",l),children:c.jsx(me.div,{className:"absolute top-1 w-5 h-5 bg-white rounded-full shadow-sm",style:{left:o?"24px":"4px"},animate:y?{left:o?"24px":"4px"}:void 0,transition:y?{type:"spring",stiffness:500,damping:30}:{duration:0}})})]})]})});Ab.displayName="Toggle";const MT=({value:a,onChange:i,min:l=0,max:o=100,step:d=1,label:m,showValue:f=!0,unit:g="%",disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,N]=T.useState(!1),E=(a-l)/(o-l)*100;return c.jsxs("div",{className:J("w-full space-y-2",p),children:[(m||f)&&c.jsxs("div",{className:"flex items-center justify-between",children:[m&&c.jsx("label",{className:"text-sm font-medium text-primary",children:m}),f&&c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,g]})]}),c.jsxs("div",{className:"relative h-12 flex items-center",children:[c.jsx("div",{className:"relative w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(me.div,{className:"absolute left-0 top-0 h-full bg-primary rounded-full",style:{width:`${E}%`},initial:!1,animate:x?{width:`${E}%`}:void 0,transition:x?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:l,max:o,step:d,value:a,onChange:O=>i(Number(O.target.value)),onMouseDown:()=>N(!0),onMouseUp:()=>N(!1),onTouchStart:()=>N(!0),onTouchEnd:()=>N(!1),disabled:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer disabled:cursor-not-allowed",style:{zIndex:10}}),c.jsx(me.div,{className:J("absolute w-6 h-6 bg-background border-2 border-primary rounded-full shadow-md","pointer-events-none",y&&"opacity-50"),style:{left:`calc(${E}% - 12px)`},animate:x?{scale:S?1.2:1}:void 0,transition:x?{type:"spring",stiffness:300,damping:20}:{duration:0}})]})]})},ET=({value1:a,value2:i,onChange:l,label1:o,label2:d,min:m=0,max:f=100,step:g=1,unit:y="%",disabled:p,className:b,animate:x=!0})=>{const S=x!==!1,N=a+i,E=N>0?a/N*100:50,O=N>0?i/N*100:50,k=D=>{const q=f-D;l(D,Math.max(m,Math.min(f,q)))};return c.jsxs("div",{className:J("w-full space-y-3",b),children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:o}),c.jsxs("span",{className:"text-sm font-semibold text-primary",children:[a,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(me.div,{className:"h-full bg-primary",initial:!1,animate:S?{width:`${E}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:m,max:f,step:g,value:a,onChange:D=>k(Number(D.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("label",{className:"text-sm font-medium text-primary",children:d}),c.jsxs("span",{className:"text-sm font-semibold text-success",children:[i,y]})]}),c.jsxs("div",{className:"relative h-10 flex items-center",children:[c.jsx("div",{className:"w-full h-2 bg-border rounded-full overflow-hidden",children:c.jsx(me.div,{className:"h-full bg-success",initial:!1,animate:S?{width:`${O}%`}:void 0,transition:S?{type:"spring",stiffness:300,damping:30}:{duration:0}})}),c.jsx("input",{type:"range",min:m,max:f,step:g,value:i,onChange:D=>k(f-Number(D.target.value)),disabled:p,className:"absolute inset-0 w-full opacity-0 cursor-pointer disabled:cursor-not-allowed"})]})]}),c.jsxs("div",{className:"text-xs text-primary/70 text-center",children:["Total: ",N,y]})]})},DT=({options:a,value:i,onChange:l,placeholder:o="Select an option",label:d,error:m,searchable:f=!1,clearable:g=!0,disabled:y,className:p,animate:b=!0})=>{const x=b!==!1,[S,N]=T.useState(!1),[E,O]=T.useState(""),[k,D]=T.useState("bottom"),q=T.useRef(null),G=T.useRef(null),W=a.find(z=>z.value===i),Q=f?a.filter(z=>z.label.toLowerCase().includes(E.toLowerCase())):a;T.useEffect(()=>{const z=ee=>{q.current&&!q.current.contains(ee.target)&&(N(!1),O(""))};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]),T.useEffect(()=>{if(!S)return;const z=()=>{if(!G.current)return;const ee=G.current.getBoundingClientRect(),F=f?360:300,ne=window.innerHeight-ee.bottom-8,ce=ee.top-8;if(ne>=F){D("bottom");return}if(ce>=F){D("top");return}D("bottom")};return z(),window.addEventListener("resize",z),window.addEventListener("scroll",z,!0),()=>{window.removeEventListener("resize",z),window.removeEventListener("scroll",z,!0)}},[S,f]);const P=z=>{l(z),N(!1),O("")},X=k==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:q,className:J("relative w-full",p),children:[d&&c.jsx("label",{className:"block mb-1.5 text-sm font-medium text-foreground",children:d}),c.jsxs("button",{ref:G,type:"button",onClick:()=>!y&&N(!S),disabled:y,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary","disabled:bg-secondary disabled:cursor-not-allowed","touch-target",m&&"border-error",!m&&"border-border",S&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[W?.icon&&c.jsx("span",{className:"shrink-0",children:W.icon}),c.jsx("span",{className:J("truncate",!W&&"text-foreground/50"),children:W?.label||o})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",S&&"rotate-180")})]}),x?c.jsx(rn,{children:S?c.jsx(on,{open:S,anchorRef:G,placement:k,children:c.jsxs(me.div,{initial:X.initial,animate:X.animate,exit:X.exit,transition:{duration:.2},className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:E,onChange:z=>O(z.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),E&&c.jsx("button",{onClick:()=>O(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>P(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(z=>c.jsxs("button",{onClick:()=>P(z.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",z.value===i&&"bg-border text-foreground"),children:[z.icon&&c.jsx("span",{className:"shrink-0",children:z.icon}),c.jsx("span",{children:z.label})]},z.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):S&&c.jsx(on,{open:S,anchorRef:G,placement:k,children:c.jsxs(me.div,{className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[f&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:E,onChange:z=>O(z.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-primary"}),E&&c.jsx("button",{onClick:()=>O(""),className:"absolute right-2 top-1/2 -translate-y-1/2",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[g&&c.jsx("button",{type:"button",onClick:()=>P(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground"),children:c.jsx("span",{children:"None"})}),Q.length>0?Q.map(z=>c.jsxs("button",{onClick:()=>P(z.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors",z.value===i&&"bg-border text-foreground"),children:[z.icon&&c.jsx("span",{className:"shrink-0",children:z.icon}),c.jsx("span",{children:z.label})]},z.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}),m&&c.jsx(me.p,{...x?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"mt-1.5 text-sm text-error",children:m})]})},Mb=T.forwardRef(({options:a,value:i,onChange:l,placeholder:o="Select an option",label:d,error:m,hint:f,searchable:g=!1,clearable:y=!0,disabled:p,required:b,className:x,animate:S=!0},N)=>{const E=S!==!1,[O,k]=T.useState(!1),[D,q]=T.useState(""),[G,W]=T.useState("bottom"),Q=T.useRef(null),P=a.find(F=>F.value===i),X=g?a.filter(F=>F.label.toLowerCase().includes(D.toLowerCase())):a;T.useEffect(()=>{const F=ne=>{Q.current&&!Q.current.contains(ne.target)&&(k(!1),q(""))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),T.useEffect(()=>{if(!O)return;const F=()=>{if(!Q.current)return;const ne=Q.current.getBoundingClientRect(),ce=g?360:300,Ee=window.innerHeight-ne.bottom-8,ye=ne.top-8;if(Ee>=ce){W("bottom");return}if(ye>=ce){W("top");return}W("bottom")};return F(),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[O,g]);const z=F=>{l(F),k(!1),q("")},ee=G==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:N,className:J("w-full space-y-1.5",x),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,b&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:Q,className:"relative",children:[c.jsxs("button",{type:"button",onClick:()=>!p&&k(!O),disabled:p,"aria-haspopup":"listbox","aria-expanded":O,"aria-required":b,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-center justify-between gap-2","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:bg-secondary disabled:cursor-not-allowed","touch-target text-base",m&&"border-error focus:ring-error",!m&&"border-border",O&&"ring-2 ring-primary"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[P?.icon&&c.jsx("span",{className:"shrink-0",children:P.icon}),c.jsx("span",{className:J("truncate",!P&&"text-foreground/50"),children:P?.label||o})]}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0",O&&"rotate-180")})]}),E?c.jsx(rn,{children:O?c.jsx(on,{open:O,anchorRef:Q,placement:G,children:c.jsxs(me.div,{initial:ee.initial,animate:ee.animate,exit:ee.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:D,onChange:F=>q(F.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),D&&c.jsx("button",{type:"button",onClick:()=>q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!i,onClick:()=>z(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),X.length>0?X.map(F=>c.jsxs("button",{type:"button",role:"option","aria-selected":F.value===i,onClick:()=>!F.disabled&&z(F.value),disabled:F.disabled,className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",F.value===i&&"bg-border text-foreground font-medium"),children:[F.icon&&c.jsx("span",{className:"shrink-0",children:F.icon}),c.jsx("span",{children:F.label})]},F.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):O&&c.jsx(on,{open:O,anchorRef:Q,placement:G,children:c.jsxs(me.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:D,onChange:F=>q(F.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),D&&c.jsx("button",{type:"button",onClick:()=>q(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&c.jsx("button",{type:"button",role:"option","aria-selected":!i,onClick:()=>z(""),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic",!i&&"bg-border text-foreground font-medium"),children:c.jsx("span",{children:"None"})}),X.length>0?X.map(F=>c.jsxs("button",{type:"button",role:"option","aria-selected":F.value===i,onClick:()=>!F.disabled&&z(F.value),disabled:F.disabled,className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",F.value===i&&"bg-border text-foreground font-medium"),children:[F.icon&&c.jsx("span",{className:"shrink-0",children:F.icon}),c.jsx("span",{children:F.label})]},F.value)):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),m&&c.jsx(me.p,{...E?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Mb.displayName="Select";const Eb=T.forwardRef(({options:a,value:i=[],onChange:l,placeholder:o="Select options...",label:d,error:m,hint:f,searchable:g=!1,clearable:y=!0,maxItems:p,disabled:b,required:x,className:S,animate:N=!0,chipVariant:E="primary"},O)=>{const k=N!==!1,[D,q]=T.useState(!1),[G,W]=T.useState(""),[Q,P]=T.useState("bottom"),X=T.useRef(null),z=a.filter(te=>i.includes(te.value)),ee=g?a.filter(te=>te.label.toLowerCase().includes(G.toLowerCase())):a;T.useEffect(()=>{const te=R=>{X.current&&!X.current.contains(R.target)&&(q(!1),W(""))};return document.addEventListener("mousedown",te),()=>document.removeEventListener("mousedown",te)},[]),T.useEffect(()=>{if(!D)return;const te=()=>{if(!X.current)return;const R=X.current.getBoundingClientRect(),U=g?360:300,A=window.innerHeight-R.bottom-8,ie=R.top-8;if(A>=U){P("bottom");return}if(ie>=U){P("top");return}P("bottom")};return te(),window.addEventListener("resize",te),window.addEventListener("scroll",te,!0),()=>{window.removeEventListener("resize",te),window.removeEventListener("scroll",te,!0)}},[D,g]);const F=te=>{const R=i.includes(te)?i.filter(U=>U!==te):p&&i.length>=p?i:[...i,te];l(R)},ne=te=>{const R=i.filter(U=>U!==te);l(R)},ce=()=>{l([])},Ee={default:"bg-secondary text-primary border border-border hover:bg-border",primary:"bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",success:"bg-success/10 text-success border border-success/20 hover:bg-success/20",warning:"bg-warning/10 text-warning border border-warning/20 hover:bg-warning/20",danger:"bg-error/10 text-error border border-error/20 hover:bg-error/20",info:"bg-info/10 text-info border border-info/20 hover:bg-info/20"},ye=Q==="top"?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10}}:{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10}};return c.jsxs("div",{ref:O,className:J("w-full space-y-1.5",S),children:[d&&c.jsxs("label",{className:"block text-sm font-medium text-foreground",children:[d,x&&c.jsx("span",{className:"text-error ml-1",children:"*"})]}),c.jsxs("div",{ref:X,className:"relative",children:[c.jsxs("div",{role:"button",tabIndex:b?-1:0,onClick:()=>!b&&q(!D),onKeyDown:te=>{b||(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),q(R=>!R))},"aria-haspopup":"listbox","aria-expanded":D,"aria-required":x,"aria-disabled":b,className:J("w-full px-4 py-3 rounded-md border transition-all duration-200","bg-background text-left flex items-start justify-between gap-2 flex-wrap","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",b&&"bg-secondary cursor-not-allowed","touch-target text-base min-h-12",m&&"border-error focus:ring-error",!m&&"border-border",D&&"ring-2 ring-primary"),children:[i.length>0?c.jsx("div",{className:"flex flex-wrap gap-2 w-full",children:z.map(te=>c.jsxs(me.div,{layout:!0,initial:k?{opacity:0,scale:.8}:{},animate:k?{opacity:1,scale:1}:{},exit:k?{opacity:0,scale:.8}:{},className:J("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-sm font-medium",Ee[E]),children:[te.icon&&c.jsx("span",{className:"shrink-0",children:te.icon}),c.jsx("span",{className:"truncate",children:te.label}),c.jsx("button",{type:"button",onClick:R=>{R.stopPropagation(),ne(te.value)},className:"shrink-0 ml-0.5 hover:opacity-70 transition-opacity","aria-label":`Remove ${te.label}`,children:c.jsx(Kt,{className:"w-4 h-4"})})]},te.value))}):c.jsx("span",{className:J("truncate","text-foreground/50"),children:o}),c.jsx(Kn,{className:J("w-5 h-5 text-primary transition-transform shrink-0 ml-auto",D&&"rotate-180")})]}),k?c.jsx(rn,{children:D?c.jsx(on,{open:D,anchorRef:X,placement:Q,children:c.jsxs(me.div,{initial:ye.initial,animate:ye.animate,exit:ye.exit,transition:{duration:.2},role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:G,onChange:te=>W(te.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),G&&c.jsx("button",{type:"button",onClick:()=>W(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&i.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ce(),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),ee.length>0?ee.map(te=>{const R=i.includes(te.value),U=te.disabled||p!==void 0&&i.length>=p&&!R;return c.jsxs("div",{role:"option","aria-selected":R,"aria-disabled":U,onClick:()=>!U&&F(te.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",U&&"opacity-50 cursor-not-allowed",R&&"bg-border text-foreground font-medium"),children:[c.jsx(Fo,{checked:R,disabled:U,onChange:()=>!U&&F(te.value),onClick:A=>A.stopPropagation(),animate:k,className:"w-5 h-5","aria-label":te.label}),te.icon&&c.jsx("span",{className:"shrink-0",children:te.icon}),c.jsx("span",{children:te.label})]},te.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})}):null}):D&&c.jsx(on,{open:D,anchorRef:X,placement:Q,children:c.jsxs(me.div,{role:"listbox",className:"z-50 w-full bg-background rounded-md border border-border shadow-lg max-h-80 overflow-hidden",children:[g&&c.jsx("div",{className:"p-2 border-b border-border",children:c.jsxs("div",{className:"relative",children:[c.jsx(yn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-primary/50"}),c.jsx("input",{type:"text",placeholder:"Search...",value:G,onChange:te=>W(te.target.value),className:"w-full pl-10 pr-8 py-2 text-sm border border-border rounded-md bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search options"}),G&&c.jsx("button",{type:"button",onClick:()=>W(""),className:"absolute right-2 top-1/2 -translate-y-1/2","aria-label":"Clear search",children:c.jsx(Kt,{className:"w-4 h-4 text-primary/50 hover:text-primary"})})]})}),c.jsxs("div",{className:"overflow-y-auto max-h-64 p-2 space-y-1",children:[y&&i.length>0&&c.jsx("button",{type:"button",role:"option",onClick:()=>ce(),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","text-foreground/70 italic text-sm"),children:c.jsx("span",{children:"Clear all"})}),ee.length>0?ee.map(te=>{const R=i.includes(te.value),U=te.disabled||p!==void 0&&i.length>=p&&!R;return c.jsxs("div",{role:"option","aria-selected":R,"aria-disabled":U,onClick:()=>!U&&F(te.value),className:J("w-full px-4 py-3 text-left flex items-center gap-2 rounded-sm cursor-pointer","hover:bg-secondary transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",U&&"opacity-50 cursor-not-allowed",R&&"bg-border text-foreground font-medium"),children:[c.jsx(Fo,{checked:R,disabled:U,onChange:()=>!U&&F(te.value),onClick:A=>A.stopPropagation(),animate:k,className:"w-5 h-5","aria-label":te.label}),te.icon&&c.jsx("span",{className:"shrink-0",children:te.icon}),c.jsx("span",{children:te.label})]},te.value)}):c.jsx("div",{className:"px-4 py-6 text-center text-primary/70 text-sm",children:"No options found"})]})]})})]}),m&&c.jsx(me.p,{...k?{initial:{opacity:0,y:-5},animate:{opacity:1,y:0}}:{},className:"text-sm text-error",children:m}),f&&!m&&c.jsx("p",{className:"text-sm text-primary/70",children:f})]})});Eb.displayName="MultiSelect";const jg=({children:a,content:i,side:l="right",offset:o=10,delay:d=120,disabled:m=!1,open:f,defaultOpen:g=!1,onOpenChange:y,className:p,showArrow:b=!0,arrowSize:x=10,arrowClassName:S})=>{const[N,E]=T.useState(!1),[O,k]=T.useState(g),[D,q]=T.useState(l),[G,W]=T.useState(null),Q=T.useRef(null),P=T.useRef(null),X=T.useRef(null),z=f!==void 0,ee=z?!!f:O,F=T.useCallback(A=>{z||k(A),y?.(A)},[z,y]),ne=T.useCallback(()=>{X.current!==null&&(window.clearTimeout(X.current),X.current=null)},[]),ce=T.useCallback(()=>{m||(ne(),X.current=window.setTimeout(()=>{F(!0)},Math.max(0,d)))},[ne,d,m,F]),Ee=T.useCallback(()=>{ne(),F(!1)},[ne,F]),ye=T.useCallback(()=>{if(!ee||!Q.current||!P.current)return;const A=Q.current.getBoundingClientRect(),ie=P.current.getBoundingClientRect(),de=8,w=window.innerWidth-A.right-de,H=A.left-de,$=l,fe=($==="right"?w>=ie.width+o:H>=ie.width+o)?$:w>=H?"right":"left",le=fe==="right"?A.right+o:A.left-ie.width-o,he=A.top+A.height/2-ie.height/2,Ke=Math.min(Math.max(le,de),window.innerWidth-ie.width-de),Oe=Math.min(Math.max(he,de),window.innerHeight-ie.height-de);q(fe),W({left:Ke,top:Oe})},[ee,o,l]);T.useEffect(()=>(E(!0),()=>{E(!1)}),[]),T.useEffect(()=>()=>ne(),[ne]),T.useEffect(()=>{if(ee)return ye(),window.addEventListener("resize",ye),window.addEventListener("scroll",ye,!0),()=>{window.removeEventListener("resize",ye),window.removeEventListener("scroll",ye,!0)}},[ee,ye]),T.useEffect(()=>{if(!ee)return;const A=window.requestAnimationFrame(ye);return()=>window.cancelAnimationFrame(A)},[i,ee,ye]);const te=T.useMemo(()=>({position:"fixed",zIndex:80,left:G?.left??-9999,top:G?.top??-9999,pointerEvents:"none"}),[G]),R=T.useMemo(()=>({width:x,height:x}),[x]),U=T.useMemo(()=>({[D==="right"?"left":"right"]:-(x/2)}),[x,D]);return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:Q,className:"inline-flex",onMouseEnter:ce,onMouseLeave:Ee,onFocus:ce,onBlur:Ee,onKeyDown:A=>{A.key==="Escape"&&Ee()},children:a}),N&&ee&&!m&&wb.createPortal(c.jsx("div",{style:te,role:"tooltip","aria-hidden":!ee,children:c.jsxs("div",{ref:P,className:J("relative max-w-xs rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground shadow-lg",p),children:[b&&c.jsx("span",{style:{...R,...U},className:J("absolute top-1/2 -translate-y-1/2 rotate-45 bg-background border-border",D==="right"?"border-l border-b":"border-r border-t",S)}),i]})}),document.body)]})},yt=({children:a,variant:i="default",padding:l="md",className:o,onClick:d,hover:m=!1,animate:f=!0})=>{const g=f!==!1,y={default:"bg-background border border-border",outlined:"bg-transparent border-2 border-border-dark",elevated:"bg-background border-2 border-border shadow-card"},p={none:"p-0",sm:"p-3",md:"p-4 sm:p-6",lg:"p-6 sm:p-8"},b=d?me.button:me.div;return c.jsx(b,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},whileHover:g&&(m||d)?{y:-2,boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1)"}:void 0,whileTap:g&&d?{scale:.98}:void 0,className:J("rounded-lg transition-all duration-200",y[i],p[l],d&&"cursor-pointer w-full text-left",o),onClick:d,children:a})},gt=({children:a,className:i})=>c.jsx("div",{className:J("mb-4",i),children:a}),bt=({children:a,className:i})=>c.jsx("h3",{className:J("text-lg font-semibold text-foreground",i),children:a}),vt=({children:a,className:i})=>c.jsx("p",{className:J("text-sm text-foreground/70 mt-1",i),children:a}),xt=({children:a,className:i})=>c.jsx("div",{className:i,children:a}),RT=({isOpen:a,onClose:i,children:l,title:o,position:d="right",className:m,animate:f=!0})=>{const g=f!==!1;T.useEffect(()=>{const p=b=>{b.key==="Escape"&&i()};return a&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,i]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(me.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}}:{},className:"fixed inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:i}),c.jsxs(me.div,{...g?{initial:{x:d==="left"?"-100%":"100%"},animate:{x:0},exit:{x:d==="left"?"-100%":"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:J("fixed top-0 z-50 h-full w-[400px] sm:w-[480px] bg-background shadow-xl",d==="left"?"left-0 border-r":"right-0 border-l","border-border",m),children:[o&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close drawer",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto h-[calc(100%-5rem)] p-6",children:l})]})]}):null;return g?c.jsx(rn,{children:y}):y},zT=({isOpen:a,onClose:i,children:l,title:o,size:d="md",className:m,animate:f=!0})=>{const g=f!==!1,y=T.useRef(null);T.useEffect(()=>{const x=S=>{S.key==="Escape"&&i()};return a&&(document.addEventListener("keydown",x),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",x),document.body.style.overflow="unset"}},[a,i]);const p={sm:"max-w-lg",md:"max-w-2xl",lg:"max-w-4xl",xl:"max-w-6xl",full:"max-w-full mx-4"},b=a?c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:x=>{x.target===x.currentTarget&&i()},children:c.jsxs(me.div,{ref:y,...g?{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2}}:{},className:J("bg-background border border-border rounded-lg shadow-2xl w-full max-h-[90vh] overflow-hidden flex flex-col",p[d],m),children:[o&&c.jsxs("div",{className:"px-6 py-4 border-b border-border flex items-center justify-between",children:[c.jsx("h2",{className:"text-xl font-semibold text-foreground",children:o}),c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close modal",children:"Esc"})]}),c.jsx("div",{className:"overflow-y-auto flex-1",children:l})]})}):null;return g?c.jsx(rn,{children:b}):b},OT=({children:a,className:i})=>c.jsx("div",{className:J("px-6 py-4",i),children:a}),VT=({children:a,className:i})=>c.jsx("div",{className:J("px-6 py-4 border-t border-border flex items-center justify-end gap-3 bg-background sticky bottom-0",i),children:a}),_T=({isOpen:a,onClose:i,title:l,children:o,showCloseButton:d=!1,className:m,animate:f=!0})=>{const g=f!==!1;T.useEffect(()=>{const p=b=>{b.key==="Escape"&&i()};return a?(document.addEventListener("keydown",p),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",p),document.body.style.overflow="unset"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[a,i]);const y=a?c.jsxs(c.Fragment,{children:[c.jsx(me.div,{...g?{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}:{},onClick:i,className:"fixed inset-0 bg-black/50 z-40"}),c.jsxs(me.div,{...g?{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:300}}:{},className:J("fixed bottom-0 left-0 right-0 z-50","bg-white rounded-t-3xl shadow-2xl","max-h-[90vh] flex flex-col",m),children:[c.jsx("div",{className:"flex justify-center pt-3 pb-2",children:c.jsx("div",{className:"w-12 h-1.5 bg-border-dark rounded-full"})}),(l||d)&&c.jsxs("div",{className:"flex items-center justify-between px-6 py-4 ",children:[l&&c.jsx("h2",{className:"text-lg font-semibold text-foreground",children:l}),d&&c.jsx("button",{onClick:i,className:"px-3 py-1.5 rounded-md border border-border text-sm font-medium text-foreground hover:bg-secondary transition-colors","aria-label":"Close bottom sheet",children:"Esc"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:o})]})]}):null;return g?c.jsx(rn,{children:y}):y};function kT({data:a,columns:i,loading:l=!1,onRowClick:o,keyExtractor:d,className:m,animate:f=!0}){const g=f!==!1,[y,p]=T.useState(null),[b,x]=T.useState("asc"),S=E=>{y===E?x(b==="asc"?"desc":"asc"):(p(E),x("asc"))},N=y?[...a].sort((E,O)=>{const k=E[y],D=O[y];return k<D?b==="asc"?-1:1:k>D?b==="asc"?1:-1:0}):a;return l?c.jsx("div",{className:J("border border-border rounded-lg overflow-hidden",m),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsx("tr",{children:i.map((E,O)=>c.jsx("th",{className:"px-6 py-4 text-left",children:c.jsx("div",{className:J("h-4 bg-border rounded w-24",g&&"animate-pulse")})},O))})}),c.jsx("tbody",{children:[...Array(5)].map((E,O)=>c.jsx("tr",{className:"border-b border-border",children:i.map((k,D)=>c.jsx("td",{className:"px-6 py-4",children:c.jsx("div",{className:J("h-4 bg-secondary rounded",g&&"animate-pulse")})},D))},O))})]})})}):c.jsx(me.div,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:J("border border-border rounded-lg overflow-hidden",m),children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{className:"border-b border-border",children:c.jsx("tr",{children:i.map((E,O)=>c.jsx("th",{className:J("px-6 py-4 text-left text-sm font-semibold text-foreground",E.width,E.sortable&&"cursor-pointer transition-colors"),onClick:()=>E.sortable&&S(E.key),children:c.jsxs("div",{className:"flex items-center gap-2",children:[E.header,E.sortable&&c.jsx("span",{className:"text-primary/50 hover:text-primary transition-colors",children:y===E.key?b==="asc"?c.jsx(Zw,{className:"w-4 h-4"}):c.jsx(Kw,{className:"w-4 h-4"}):c.jsx(tj,{className:"w-4 h-4"})})]})},O))})}),c.jsx("tbody",{children:N.map((E,O)=>c.jsx(me.tr,{...g?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,delay:O*.05}}:{},onClick:()=>o&&o(E),className:J("border-b border-border transition-colors",o&&"cursor-pointer hover:bg-secondary"),children:i.map((k,D)=>c.jsx("td",{className:J("px-6 py-4 text-sm text-foreground/70",k.width),style:k.width?{width:k.width}:void 0,title:k.truncate&&!k.render?String(E[k.key]??""):void 0,children:k.truncate&&!k.render?c.jsx("div",{className:"truncate",children:String(E[k.key]??"")}):k.render?k.render(E):String(E[k.key]??"")},D))},d(E)))})]})})})}const BT=({currentPage:a,totalPages:i,onPageChange:l,totalItems:o,itemsPerPage:d,className:m,animate:f=!0})=>{const g=f!==!1,y=md.useMemo(()=>{if(i<=5)return Array.from({length:i},(E,O)=>O+1);const x=Math.floor(5/2);let S=Math.max(1,a-x),N=S+5-1;return N>i&&(N=i,S=Math.max(1,N-5+1)),Array.from({length:N-S+1},(E,O)=>S+O)},[a,i]),p=b=>{const x=Math.max(1,Math.min(i,b));x!==a&&l(x)};return c.jsxs(me.div,{...g?{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:J("flex items-center justify-between gap-4 flex-wrap",m),children:[c.jsx("div",{className:"text-sm text-foreground/70",children:o&&d&&c.jsxs("span",{children:["Showing ",Math.min((a-1)*d+1,o)," to"," ",Math.min(a*d,o)," of ",o," results"]})}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ye,{variant:"secondary",size:"sm",disabled:a===1,onClick:()=>p(a-1),icon:c.jsx(rd,{className:"w-4 h-4"}),animate:f,children:"Previous"}),!y.includes(1)&&c.jsx(Ye,{variant:"secondary",size:"sm",onClick:()=>p(1),icon:c.jsx(fj,{className:"w-4 h-4 text-primary"}),animate:f,"aria-label":"Go to first page"}),c.jsx(me.div,{layout:!0,className:"flex items-center justify-center gap-1 min-w-56",children:c.jsx(rn,{initial:!1,mode:"popLayout",children:y.map(b=>{const x=b===a;return c.jsx(me.button,{layout:!0,whileHover:g?{y:-1}:void 0,whileTap:g?{scale:.96}:void 0,onClick:()=>p(b),className:J("w-10 h-10 rounded-md border text-sm font-medium tabular-nums leading-none inline-flex items-center justify-center transition-all duration-200",x?"bg-primary text-white border-primary shadow-sm":"hover:bg-secondary border-border text-foreground"),"aria-current":x?"page":void 0,children:b},b)})})}),c.jsx(Ye,{variant:"secondary",size:"sm",disabled:a===i,onClick:()=>p(a+1),icon:c.jsx(od,{className:"w-4 h-4"}),animate:f,children:"Next"})]})]})},LT=({icon:a,onClick:i,label:l,actions:o,variant:d="primary",position:m="bottom-right",disabled:f,className:g,animate:y=!0})=>{const p=y!==!1,[b,x]=T.useState(!1),S={"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2"},N={primary:"bg-primary text-white hover:bg-primary-dark shadow-lg",secondary:"bg-background text-primary border-2 border-primary hover:bg-secondary shadow-md"},E={primary:"bg-primary text-white",success:"bg-success text-white",danger:"bg-error text-white",warning:"bg-warning text-white"},O=()=>{o&&o.length>0?x(!b):i&&i()};return c.jsxs("div",{className:J(S[m],"z-50",g),children:[p?c.jsx(rn,{children:b&&o?c.jsx(me.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((k,D)=>c.jsxs(me.div,{initial:{opacity:0,y:20,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.8},transition:{delay:D*.05},className:"flex items-center gap-3",children:[c.jsx("span",{className:J("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",k.labelClassName),style:k.labelStyle,children:k.label}),c.jsx(me.button,{whileHover:p?{scale:1.1}:void 0,whileTap:p?{scale:.9}:void 0,onClick:()=>{k.onClick(),x(!1)},className:J("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",E[k.variant||"primary"]),children:k.icon})]},D))}):null}):b&&o&&c.jsx("div",{className:"absolute bottom-20 right-0 flex flex-col gap-3 mb-2",children:o.map((k,D)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:J("bg-background border border-border rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap shadow-lg",k.labelClassName),style:k.labelStyle,children:k.label}),c.jsx("button",{onClick:()=>{k.onClick(),x(!1)},className:J("w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition-all",E[k.variant||"primary"]),children:k.icon})]},D))}),c.jsxs(me.button,{whileTap:p?{scale:f?1:.9}:void 0,whileHover:p?{scale:f?1:1.05}:void 0,onClick:O,disabled:f,className:J("z-30 rounded-full p-4 transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2",N[d],l?"px-6":"w-16 h-16 justify-center",b&&"rotate-45"),children:[c.jsx("span",{className:"flex-shrink-0",children:a||(b?c.jsx(Kt,{className:"w-6 h-6"}):c.jsx(ud,{className:"w-6 h-6"}))}),l&&c.jsx("span",{className:"font-medium",children:l})]})]})},UT=({steps:a,currentStep:i,className:l,animate:o=!0})=>{const d=o!==!1,m=a[i];return c.jsxs("div",{className:J("w-full",l),children:[c.jsx("div",{className:"hidden md:block",children:c.jsx("div",{className:"relative flex items-center mb-2",children:a.map((f,g)=>{const y=g<i,p=g===i,b=g>i;return c.jsxs(md.Fragment,{children:[c.jsxs("div",{className:"flex flex-col items-center relative z-10",children:[c.jsx(me.div,{initial:!1,animate:d?{scale:p?1.05:1}:void 0,className:J("w-12 h-12 rounded-full flex items-center justify-center","font-semibold text-base transition-all duration-300","ring-4 ring-white",(y||p)&&"bg-primary text-white shadow-lg",b&&"bg-border text-muted-foreground"),children:y?c.jsx(ob,{className:"w-6 h-6 stroke-[3]"}):c.jsx("span",{children:g+1})}),c.jsxs("div",{className:"mt-3 text-center max-w-[120px]",children:[c.jsx("span",{className:J("text-sm font-semibold block",p&&"text-primary",y&&"text-primary",b&&"text-primary/50"),children:f.label}),f.description&&c.jsx("p",{className:J("text-xs mt-1 leading-tight",p&&"text-primary",y&&"text-primary/70",b&&"text-primary/50"),children:f.description})]})]}),g<a.length-1&&c.jsx("div",{className:"flex-1 relative",style:{marginTop:"-48px",marginLeft:"4px",marginRight:"4px"},children:c.jsx("div",{className:"h-1.5 bg-border rounded-full overflow-hidden",children:c.jsx(me.div,{initial:!1,style:{width:g<i?"100%":"0%"},animate:d?{width:g<i?"100%":"0%"}:void 0,transition:d?{duration:.4,ease:"easeInOut"}:{duration:0},className:"h-full bg-primary rounded-full"})})})]},g)})})}),c.jsxs("div",{className:"md:hidden",children:[c.jsx("div",{className:"flex items-center justify-center gap-2 mb-3",children:a.map((f,g)=>{const y=g<i,p=g===i;return c.jsx(me.div,{initial:!1,style:{backgroundColor:y||p?"var(--color-primary)":"var(--color-border-dark)"},animate:d?{scale:p?1.2:1}:void 0,className:J("rounded-full transition-all duration-300",p?"w-3 h-3":"w-2 h-2",(y||p)&&"shadow-sm")},g)})}),c.jsx(me.div,{...d?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3}}:{},className:"text-center",children:c.jsx("p",{className:"text-sm font-semibold text-foreground",children:m?.label})},i)]})]})},Qa=({children:a,variant:i="default",size:l="md",className:o,dot:d=!1,animate:m=!0})=>{const f=m!==!1,g={default:"bg-secondary text-primary border border-border",primary:"bg-primary/10 text-primary border border-primary/20",success:"bg-success/10 text-success border border-success/20",warning:"bg-warning/10 text-warning border border-warning/20",danger:"bg-error/10 text-error border border-error/20",info:"bg-info/10 text-info border border-info/20"},y={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},p={default:"bg-primary",primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-error",info:"bg-info"};return c.jsxs(me.span,{...f?{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2}}:{},className:J("inline-flex items-center gap-1.5 rounded-lg font-medium",g[i],y[l],o),children:[d&&c.jsx("span",{className:J("w-1.5 h-1.5 rounded-full",p[i])}),a]})},HT={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-2",lg:"w-12 h-12 border-3",xl:"w-16 h-16 border-4"},GT={primary:"border-primary border-t-transparent",secondary:"border-secondary border-t-transparent",white:"border-white border-t-transparent"},Ja=({size:a="md",variant:i="primary",className:l,label:o,animate:d=!0})=>{const m=d!==!1,f=m?me.div:"div";return c.jsxs("div",{className:J("inline-flex flex-col items-center gap-2",l),children:[c.jsx(f,{className:J("rounded-full",HT[a],GT[i]),...m?{animate:{rotate:360},transition:{duration:.8,repeat:1/0,ease:"linear"}}:{},role:"status","aria-label":o||"Loading"}),o&&c.jsx("span",{className:"text-sm text-foreground/70",children:o})]})};Ja.displayName="Spinner";const Db=T.createContext(void 0),YT=()=>{const a=T.useContext(Db);if(!a)throw new Error("useToast must be used within ToastProvider");return a},qT={success:"bg-success text-white border-success",error:"bg-error text-white border-error",warning:"bg-warning text-white border-warning",info:"bg-info text-white border-info",loading:"bg-primary text-white border-primary",default:"bg-background text-foreground border-border"},XT={success:sj,error:aj,warning:Vj,info:rb,loading:ub,default:null},KT={"top-left":"top-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","top-right":"top-4 right-4","bottom-left":"bottom-4 left-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4"},Tg=({toast:a,onRemove:i,animate:l=!0})=>{const o=l!==!1,d=a.variant||"default",m=XT[d],f=d==="loading",g=typeof a.message=="string"?a.message:String(a.message),y=o?me.div:"div";return c.jsxs(y,{...o?{layout:!0,initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,x:100,scale:.95},transition:{duration:.2}}:{},className:J("flex items-start gap-3 p-4 rounded-md border shadow-lg min-w-80 max-w-md",qT[d]),children:[m&&c.jsx(m,{className:J("w-5 h-5 shrink-0 mt-0.5",f&&"animate-spin")}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium leading-relaxed",children:g}),a.action&&c.jsx("div",{className:"mt-3 flex justify-end",children:c.jsx("button",{onClick:a.action.onClick,className:"inline-flex h-8 items-center rounded-sm border border-current/30 px-3 text-xs font-semibold transition-colors hover:bg-current/10",children:a.action.label})})]}),c.jsx("button",{onClick:()=>i(a.id),className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Close notification",children:c.jsx(Kt,{className:"w-4 h-4"})})]})},Rb=({children:a,position:i="top-right",maxToasts:l=5,animate:o=!0})=>{const d=o!==!1,[m,f]=T.useState([]),g=T.useCallback(p=>{f(b=>b.filter(x=>x.id!==p))},[]),y=T.useCallback(p=>{if(typeof p.message!="string"){console.error("Toast message must be a string, received:",p.message);return}const b=Math.random().toString(36).substring(2,9),x=p.duration??5e3;f(S=>[...S,{...p,id:b}].slice(-l)),x>0&&setTimeout(()=>{g(b)},x)},[l,g]);return c.jsxs(Db.Provider,{value:{toasts:m,addToast:y,removeToast:g},children:[a,c.jsx("div",{className:J("fixed z-100 flex flex-col gap-2",KT[i]),children:d?c.jsx(rn,{mode:"popLayout",children:m.map(p=>c.jsx(Tg,{toast:p,onRemove:g,animate:d},p.id))}):m.map(p=>c.jsx(Tg,{toast:p,onRemove:g,animate:d},p.id))})]})};Rb.displayName="ToastProvider";const QT=({onRecordingComplete:a,label:i="Record Audio",maxDuration:l=300,disabled:o,className:d,animate:m=!0})=>{const f=m!==!1,[g,y]=T.useState(!1),[p,b]=T.useState(!1),[x,S]=T.useState(0),[N,E]=T.useState(null),O=T.useRef(null),k=T.useRef([]),D=T.useRef(null),q=async()=>{try{const z=await navigator.mediaDevices.getUserMedia({audio:!0}),ee=new MediaRecorder(z);O.current=ee,k.current=[],ee.ondataavailable=F=>{F.data.size>0&&k.current.push(F.data)},ee.onstop=()=>{const F=new Blob(k.current,{type:"audio/webm"}),ne=URL.createObjectURL(F);E(ne),a(F),z.getTracks().forEach(ce=>ce.stop())},ee.start(),y(!0),S(0),D.current=setInterval(()=>{S(F=>F>=l?(Q(),F):F+1)},1e3)}catch(z){console.error("Error accessing microphone:",z)}},G=()=>{O.current?.state==="recording"&&(O.current.pause(),b(!0),D.current&&clearInterval(D.current))},W=()=>{O.current?.state==="paused"&&(O.current.resume(),b(!1),D.current=setInterval(()=>{S(z=>Math.min(z+1,l))},1e3))},Q=()=>{O.current&&(O.current.stop(),y(!1),b(!1),D.current&&(clearInterval(D.current),D.current=null))},P=()=>{E(null),S(0)},X=z=>{const ee=Math.floor(z/60),F=z%60;return`${ee.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};return c.jsxs("div",{className:J("w-full",d),children:[i&&c.jsx("label",{className:"block mb-2 text-sm font-medium text-primary",children:i}),c.jsxs("div",{className:"p-4 md:p-6 bg-background rounded-lg border-2 border-border space-y-4",children:[!N&&c.jsxs("div",{className:"flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(me.button,{type:"button",whileTap:f?{scale:o?1:.95}:void 0,onClick:g?p?W:G:q,disabled:o,className:J("w-16 h-16 md:w-20 md:h-20 rounded-full flex items-center justify-center","transition-all duration-200","disabled:opacity-50 disabled:cursor-not-allowed",g?J("bg-warning text-white",f&&"animate-pulse"):"bg-primary text-white hover:bg-primary-dark"),children:g?p?c.jsx(jj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(Cj,{className:"w-6 h-6 md:w-8 md:h-8"}):c.jsx(xj,{className:"w-6 h-6 md:w-8 md:h-8"})}),g&&!p&&c.jsx(me.div,{className:"absolute top-0 right-0 w-4 h-4 bg-error rounded-full border-2 border-white",animate:f?{scale:[1,1.2,1]}:void 0,transition:f?{repeat:1/0,duration:1.5}:{duration:0}})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-xl md:text-2xl font-mono font-semibold text-foreground",children:X(x)}),c.jsx("p",{className:"text-xs md:text-sm text-primary/70 mt-1",children:g?p?"Paused":"Recording...":"Tap to record"})]}),g&&c.jsxs(me.button,{...f?{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1}}:{},type:"button",onClick:Q,className:"px-4 py-2 text-sm bg-error text-white rounded-full font-medium hover:bg-red-600 flex items-center gap-2",children:[c.jsx(Rj,{className:"w-4 h-4"}),"Stop"]})]}),N&&c.jsxs(me.div,{...f?{initial:{opacity:0},animate:{opacity:1}}:{},className:"space-y-3",children:[c.jsx("audio",{src:N,controls:!0,className:"w-full"}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-sm text-primary/70",children:["Duration: ",X(x)]}),c.jsxs("button",{type:"button",onClick:P,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-error hover:bg-red-50 rounded-lg transition-colors",children:[c.jsx(cd,{className:"w-4 h-4"}),"Delete"]})]})]})]})]})},ZT=({text:a="Built by StackLoop",showHeart:i=!0,href:l,position:o="fixed",backgroundColor:d="bg-gray-900",textColor:m="text-gray-400",className:f=""})=>{const g=i?c.jsxs(c.Fragment,{children:["Built with ",c.jsx("span",{className:"text-red-500 mx-1",children:"❤️"})," by ",a.replace(/^Built by /,"")]}):a,y=l?c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:`${m} hover:text-white transition-colors duration-200 text-sm`,children:g}):c.jsx("span",{className:`${m} text-sm`,children:g});return c.jsx("div",{className:`${o} bottom-0 left-0 right-0 ${d} ${f}`,style:{zIndex:40},children:c.jsx("div",{className:"flex items-center justify-center py-2 px-4",children:y})})},JT='button, a, [role="button"], [data-ripple="true"]';function PT(a){return a.getAttribute("aria-disabled")==="true"?!0:a instanceof HTMLButtonElement?a.disabled:!1}function FT(a){return a.getAttribute("data-ripple")==="false"}function WT(){if(typeof window>"u"||window.__uiRippleInitialized)return;const a=(l,o)=>{o.remove(),l.dataset.ripplePositioned==="true"&&!l.querySelector(".button-ripple")&&(l.style.position="",delete l.dataset.ripplePositioned),l.dataset.rippleOverflow==="true"&&!l.querySelector(".button-ripple")&&(l.style.overflow="",delete l.dataset.rippleOverflow)},i=l=>{const o=l.target;if(!o)return;const d=o.closest(JT);if(!d||PT(d)||FT(d))return;const m=d.getBoundingClientRect(),f=Math.max(m.width,m.height)*2,g=l.clientX-m.left-f/2,y=l.clientY-m.top-f/2,p=document.createElement("span");p.className="button-ripple",p.style.left=`${g}px`,p.style.top=`${y}px`,p.style.width=`${f}px`,p.style.height=`${f}px`,getComputedStyle(d).position==="static"&&(d.dataset.ripplePositioned="true",d.style.position="relative"),getComputedStyle(d).overflow==="visible"&&(d.dataset.rippleOverflow="true",d.style.overflow="hidden"),d.appendChild(p);const b=window.setTimeout(()=>{a(d,p)},700);p.addEventListener("animationend",()=>{window.clearTimeout(b),a(d,p)},{once:!0})};document.addEventListener("pointerdown",i),window.__uiRippleInitialized=!0}function $T(){const{addToast:a}=YT(),[i,l]=T.useState(!1),[o,d]=T.useState(!1),[m,f]=T.useState(!1),[g,y]=T.useState(50),[p,b]=T.useState([20,80]),[x,S]=T.useState(!1),[N,E]=T.useState(!1),[O,k]=T.useState("option1"),[D,q]=T.useState(1),[G,W]=T.useState(void 0),[Q,P]=T.useState(""),[X,z]=T.useState(""),[ee,F]=T.useState([]),[ne,ce]=T.useState(""),[Ee,ye]=T.useState(""),[te,R]=T.useState(1),[U,A]=T.useState(!1),ie=[{label:"Option 1",value:"opt1"},{label:"Option 2",value:"opt2"},{label:"Option 3",value:"opt3"}],de=[{label:"United States",value:"us",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"United Kingdom",value:"uk",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"Canada",value:"ca",icon:c.jsx(_o,{className:"w-4 h-4"})},{label:"Australia",value:"au",icon:c.jsx(_o,{className:"w-4 h-4"}),disabled:!0}],w=[{label:"John Doe",value:"john",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Jane Smith",value:"jane",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Bob Johnson",value:"bob",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Alice Williams",value:"alice",icon:c.jsx(Fs,{className:"w-4 h-4"})},{label:"Charlie Brown",value:"charlie",icon:c.jsx(Fs,{className:"w-4 h-4"})}],H=[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}],$=[{id:1,name:"John Doe",email:"john@example.com",role:"Admin"},{id:2,name:"Jane Smith",email:"jane@example.com",role:"User"},{id:3,name:"Bob Johnson",email:"bob@example.com",role:"User"}],ae=[{key:"name",header:"Name",sortable:!0},{key:"email",header:"Email",sortable:!0},{key:"role",header:"Role",sortable:!1}],fe=[{label:"Account",description:"Create your account"},{label:"Profile",description:"Complete your profile"},{label:"Settings",description:"Configure settings"},{label:"Done",description:"All set!"}];return c.jsxs("div",{className:"min-h-screen bg-secondary p-4 sm:p-8",children:[c.jsxs("div",{className:"max-w-7xl w-full mx-auto space-y-12",children:[c.jsxs(me.header,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center space-y-4",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-foreground",children:"UI Components Library"}),c.jsx("p",{className:"text-lg text-primary/70",children:"A consistent, animated component library built with Framer Motion & Lucide Icons"})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Buttons"}),c.jsx(vt,{children:"Various button variants and sizes"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ye,{variant:"primary",size:"lg",icon:c.jsx(ud,{}),children:"Primary Large"}),c.jsx(Ye,{variant:"primary",size:"md",icon:c.jsx(Mj,{}),children:"Primary Medium"}),c.jsx(Ye,{variant:"secondary",size:"sm",icon:c.jsx(gg,{}),children:"Secondary Small"}),c.jsx(Ye,{variant:"ghost",children:"Ghost Button"}),c.jsx(Ye,{variant:"danger",icon:c.jsx(cd,{}),children:"Delete"}),c.jsx(Ye,{variant:"primary",loading:!0,children:"Loading..."})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Form Inputs"}),c.jsx(vt,{children:"Input fields with icons and validation"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"space-y-4 w-full",children:[c.jsx(Ca,{label:"Email",type:"email",placeholder:"Enter your email",leftIcon:c.jsx(bj,{className:"w-5 h-5"})}),c.jsx(Ca,{label:"Search",placeholder:"Search...",leftIcon:c.jsx(yn,{className:"w-5 h-5"})}),c.jsx(Ca,{label:"With Error",error:"This field is required",placeholder:"Error state"}),c.jsx(Ca,{label:"Password",type:"password",placeholder:"Enter password",rightIcon:c.jsx(yj,{className:"w-5 h-5"}),hint:"Must be at least 8 characters"}),c.jsx(Ca,{label:"Phone",type:"phone",value:ne,onChange:le=>ce(String(le))}),c.jsx(Ca,{label:"Country",type:"country",value:Ee,onChange:le=>ye(String(le))}),c.jsx(Ca,{label:"Date",type:"date",value:G,onChange:le=>{le instanceof Date&&W(le)}}),c.jsx(Nb,{label:"Message",placeholder:"Enter your message",rows:4})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Badges & Spinner"}),c.jsx(vt,{children:"Status indicators and loading states"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Badges"}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Qa,{variant:"default",children:"Default"}),c.jsx(Qa,{variant:"primary",children:"Primary"}),c.jsx(Qa,{variant:"success",dot:!0,children:"Success"}),c.jsx(Qa,{variant:"warning",dot:!0,children:"Warning"}),c.jsx(Qa,{variant:"danger",dot:!0,children:"Danger"}),c.jsx(Qa,{variant:"info",children:"Info"}),c.jsx(Qa,{variant:"primary",size:"lg",children:"Large Badge"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Spinners"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-8",children:[c.jsx(Ja,{size:"sm"}),c.jsx(Ja,{size:"md"}),c.jsx(Ja,{size:"lg"}),c.jsx(Ja,{size:"xl"}),c.jsx(Ja,{label:"Loading..."})]})]})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Toast Notifications"}),c.jsx(vt,{children:"Trigger toast notifications with different variants"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx(Ye,{variant:"primary",onClick:()=>{a({message:"Successfully saved your changes!",variant:"success",duration:3e3})},children:"Show Success"}),c.jsx(Ye,{variant:"secondary",onClick:()=>{a({message:"Failed to connect to server",variant:"error",duration:4e3})},children:"Show Error"}),c.jsx(Ye,{variant:"outline",onClick:()=>{a({message:"Your session will expire in 5 minutes",variant:"warning"})},children:"Show Warning"}),c.jsx(Ye,{variant:"ghost",onClick:()=>{a({message:"New message received from John",variant:"info",duration:0,action:{label:"View",onClick:()=>alert("Viewing message")}})},children:"Show Info with Action"}),c.jsx(Ye,{onClick:()=>{A(!0),a({message:"Processing your request...",variant:"loading",duration:2e3}),setTimeout(()=>{A(!1),a({message:"Request completed successfully!",variant:"success"})},2e3)},disabled:U,children:U?c.jsx(Ja,{size:"sm",variant:"white"}):"Simulate Process"})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Toggle & Checkbox"}),c.jsx(vt,{children:"Interactive switches and checkboxes"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(Ab,{label:"Enable Notifications",description:"Receive email notifications",checked:x,onChange:le=>S(le)}),c.jsx(Fo,{label:"I agree to the terms and conditions",checked:N,onChange:le=>E(le)})]})})]}),c.jsx(QT,{onRecordingComplete:le=>console.log(le)}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Sliders"}),c.jsx(vt,{children:"Range controls with animations"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"space-y-8",children:[c.jsx(MT,{label:"Volume",value:g,onChange:y,showValue:!0}),c.jsx(ET,{label1:"Price Range",label2:"Units",value1:0,value2:60,onChange:(le,he)=>b([le,he]),min:0,max:100,unit:"$"})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Radio Pills"}),c.jsx(vt,{children:"Stylized radio button group"})]}),c.jsx(xt,{children:c.jsx(AT,{name:"demo-radio",options:H,value:O,onChange:k})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Dropdown & Select"}),c.jsx(vt,{children:"Selection controls for forms and general use"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[c.jsx(DT,{label:"Dropdown (General)",options:ie,value:Q,onChange:P,searchable:!0,placeholder:"Choose an option"}),c.jsx(Mb,{label:"Country",options:de,value:X,onChange:z,placeholder:"Select your country",hint:"Choose your country of residence",required:!0}),c.jsx(Eb,{label:"Select Staff Members",options:w,value:ee,onChange:F,placeholder:"Choose team members...",hint:"You can select multiple staff members",searchable:!0}),c.jsx(Jd,{})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Tooltip"}),c.jsx(vt,{children:"Hover or focus a trigger to show a portal-based tooltip with auto left/right placement"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[c.jsx(jg,{content:"This tooltip prefers right, but flips when space is limited.",children:c.jsx(Ye,{variant:"outline",icon:c.jsx(rb,{className:"w-4 h-4"}),children:"Hover me"})}),c.jsx(jg,{side:"left",offset:14,arrowSize:12,content:"Custom side, offset and arrow size.",children:c.jsx(Ye,{variant:"ghost",children:"Left preferred"})})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"DatePicker"}),c.jsx(vt,{children:"Date selection control"})]}),c.jsx(xt,{children:c.jsx(jb,{label:"Select Date",value:G,onChange:W})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Step Progress"}),c.jsx(vt,{children:"Multi-step flow indicator"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"space-y-6",children:[c.jsx(UT,{steps:fe,currentStep:te}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Ye,{variant:"secondary",onClick:()=>R(Math.max(1,te-1)),disabled:te===1,children:"Previous"}),c.jsx(Ye,{onClick:()=>R(Math.min(fe.length,te+1)),disabled:te===fe.length,children:"Next"})]})]})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Data Table"}),c.jsx(vt,{children:"Sortable data display"})]}),c.jsx(xt,{children:c.jsx(kT,{data:$,columns:ae,keyExtractor:le=>le.id.toString()})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Pagination"}),c.jsx(vt,{children:"Page navigation controls"})]}),c.jsx(xt,{children:c.jsx(BT,{currentPage:D,totalPages:10,onPageChange:q,totalItems:100,itemsPerPage:10})})]}),c.jsxs(yt,{children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Overlays"}),c.jsx(vt,{children:"Modal, Drawer, and Bottom Sheet components"})]}),c.jsx(xt,{children:c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsx(Ye,{onClick:()=>d(!0),children:"Open Modal"}),c.jsx(Ye,{onClick:()=>l(!0),children:"Open Drawer"}),c.jsx(Ye,{onClick:()=>f(!0),children:"Open Bottom Sheet"})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[c.jsxs(yt,{variant:"elevated",hover:!0,children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Elevated Card"}),c.jsx(vt,{children:"With shadow effect"})]}),c.jsx(xt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an elevated appearance with a shadow."})})]}),c.jsxs(yt,{variant:"outlined",hover:!0,children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Outlined Card"}),c.jsx(vt,{children:"With border"})]}),c.jsx(xt,{children:c.jsx("p",{className:"text-primary/70",children:"This card has an outlined style with a border."})})]}),c.jsxs(yt,{hover:!0,onClick:()=>alert("Card clicked!"),children:[c.jsxs(gt,{children:[c.jsx(bt,{children:"Clickable Card"}),c.jsx(vt,{children:"Interactive"})]}),c.jsx(xt,{children:c.jsx("p",{className:"text-primary/70",children:"This card is clickable!"})})]})]})]}),c.jsx(LT,{actions:[{label:"Create",icon:c.jsx(ud,{className:"w-5 h-5"}),onClick:()=>alert("Create clicked"),variant:"primary",labelClassName:"bg-primary/10 text-primary"},{label:"Edit",icon:c.jsx(gg,{className:"w-5 h-5"}),onClick:()=>alert("Edit clicked"),variant:"success"},{label:"Delete",icon:c.jsx(cd,{className:"w-5 h-5"}),onClick:()=>alert("Delete clicked"),variant:"danger"}]}),c.jsxs(zT,{isOpen:o,onClose:()=>d(!1),title:"Example Modal",children:[c.jsx(OT,{children:c.jsx("p",{className:"text-primary/70",children:"This is a modal dialog with animations and backdrop blur."})}),c.jsxs(VT,{children:[c.jsx(Ye,{variant:"secondary",onClick:()=>d(!1),children:"Cancel"}),c.jsx(Ye,{onClick:()=>d(!1),children:"Confirm"})]})]}),c.jsx(RT,{isOpen:i,onClose:()=>l(!1),title:"Side Drawer",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a drawer that slides in from the side."}),c.jsx(Ye,{onClick:()=>l(!1),children:"Close Drawer"})]})}),c.jsx(_T,{isOpen:m,onClose:()=>f(!1),title:"Bottom Sheet",children:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-primary/70",children:"This is a bottom sheet that slides up from the bottom."}),c.jsx(Ye,{onClick:()=>f(!1),children:"Close Sheet"})]})}),c.jsx(ZT,{})]})}function IT(){return c.jsx(Rb,{position:"top-right",maxToasts:5,children:c.jsx($T,{})})}WT();l1.createRoot(document.getElementById("root")).render(c.jsx(T.StrictMode,{children:c.jsx(IT,{})}));